Affiliation:
1. Monash University, Australia
2. The University of Melbourne, Australia
3. Beihang University, China
Abstract
In recent years, large pre-trained Language Models of Code (CodeLMs) have shown promising results on various software engineering tasks. One such task is automatic code update recommendation, which transforms outdated code snippets into their approved and revised counterparts. Although many CodeLM-based approaches have been proposed, claiming high accuracy, their effectiveness and reliability on real-world code update tasks remain questionable. In this paper, we present the first extensive evaluation of state-of-the-art CodeLMs for automatically recommending code updates. We assess their performance on two diverse datasets of paired updated methods, considering factors such as temporal evolution, project specificity, method size, and update complexity. Our results reveal that while CodeLMs exhibit higher performance in settings that ignore temporal information, they struggle in more realistic time-wise scenarios and generalize poorly to new projects. Furthermore, CodeLM performance decreases significantly for larger methods and more complex updates. Furthermore, we observe that many CodeLM-generated “updates” are actually null, especially in time-wise settings, and meaningful edits remain challenging. Our findings highlight the significant gap between the perceived and actual effectiveness of CodeLMs for real-world code update recommendation and emphasize the need for more research on improving their practicality, robustness, and generalizability.
Publisher
Association for Computing Machinery (ACM)
Reference102 articles.
1. (2021) Google bigquery. [Online]. Available: https://console.cloud.google.com/marketplace/details/github/github-repos
2. (2022) Gerrit code review. [Online]. Available: https://www.gerritcodereview.com/
3. Kotlin 2022. [Online]. Available: https://kotlinlang.org/
4. (2024) Android’s gerrit code review repositories. [Online]. Available: https://android-review.googlesource.com/
5. (2024) Google’s gerrit code review repositories. [Online]. Available: https://gerrit-review.googlesource.com/