A Survey of Learning-based Method Name Prediction
The choice of method names significantly influences code comprehension and maintenance, posing a considerable challenge, especially for novice developers. Automating the prediction of appropriate method names based on the method code body has emerged as a promising approach to address this challenge. In recent years, numerous machine/deep learning (ML/DL)-based method name prediction (MNP) techniques have been proposed. However, a systematic review of these techniques is currently lacking, hindering future researchers from understanding the research status, development trends, challenges, and opportunities in this field. To fill this gap, in this paper, we conduct a systematic literature review on learning-based MNP studies. Specifically, we first perform a thorough review of the literature concerning publication venue, publication year, and contribution types. This analysis enables us to discern trends in studies related to MNP. Second, we depict the general workflow of learning-based MNP techniques, which involves three consecutive subprocesses: context extraction, context preprocessing, and context-based prediction. Subsequently, we investigate contemporary techniques/solutions applied in the three subprocesses. Third, we scrutinize the widely used experimental databases, evaluation metrics, and replication packages utilized in MNP studies. Moreover, we summarize existing empirical studies on MNP to facilitate a quick understanding of their focus and findings for subsequent researchers. Finally, based on a systematic review and summary of existing work, we outline several open challenges and opportunities in MNP that remain to be addressed in future work.
Authors
- Tingyang Xu (ORCID: https://orcid.org/0009-0002-0106-8376)
- Weisong Sun (ORCID: https://orcid.org/0000-0001-9236-8264)
- Jie Yin (ORCID: https://orcid.org/0000-0002-2913-1982)
- Jianlong Li (ORCID: https://orcid.org/0009-0002-8267-8968)
- Hanwei Qian (ORCID: https://orcid.org/0009-0007-9524-1411)
- Chunrong Fang (ORCID: https://orcid.org/0000-0002-9930-7111)
- Jianhua Zhao (ORCID: https://orcid.org/0009-0007-7011-7027)
- Yuchen Chen (ORCID: https://orcid.org/0000-0002-3380-5564)
- Xia Feng (ORCID: https://orcid.org/0000-0003-3677-6823)
- Ziqi Ding (ORCID: https://orcid.org/0009-0008-8336-7516)
- Yun Miao
- Wei Cheng Liu
Institutions
- Nanyang Technological University (SG)
- Nanjing University of Information Science and Technology (CN)
- Hainan University (CN)
- UNSW Sydney (AU)
- Soochow University (CN)
- Technical Data Analysis (United States) (US)
- City University of Macau (MO)
- Nanjing University (CN)
Publication Details
- Journal
- ACM Transactions on Software Engineering and Methodology
- Published
- 2025-10-22
- DOI
- https://doi.org/10.1145/3771999
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00