arrow
Return

Automatically Recommend Code Updates: Are We There Yet?

delete2024-12-03
delete0
delete
OA
AI
Y
Yue Liu
C
Chakkrit Tantithamthavorn *
Y
Yonghui Liu
P
Patanamon Thongtanunam
L
Li Li
DOI:10.1145/3678167delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 article, 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.
Keywords:
Code updates
neural machine translation

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

M
Monash University
Scholars:
5.4W
Papers: 5.4W
Citations: 79
B
Beihang University
Scholars:
5.2W
Papers: 4.1W
Citations: 37
U
university of melbourne
Scholars:
5.7W
Papers: 5.4W
Citations: 69
researcher View more organizations
Cited Papers

Cited Papers

Matrix Effects in the Detection of Pb and Ba in Soils Using Laser-Induced Breakdown Spectroscopy
err1996-09-01
err0
PREAI
errAaron S. Eppler; David A. Cremers; Donald D. Hickmott; Monty J. Ferris; Aaron C. Koskelo
errShare
errSave
Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues
err2024-06-04
err8
errOAAI
errLiu, Yue; Le-Cong, Thanh; Widyasari, Ratnadira; Tantithamthavorn, Chakkrit; Li, Li; Le, Xuan-Bach D.; Lo, David
errShare
errSave
Impact of Metformin Use on Lactate Kinetics in Patients with Severe Sepsis and Septic Shock
err2017-05-01
err0
PREAI
errJoongmin Park; Sung Yeon Hwang; Ik Joon Jo; Kyeongman Jeon; Gee Young Suh; Tae Rim Lee; Hee Yoon; Won Chul Cha; Min Seob Sim; Keumhee Chough Carriere; Seungmin Yeon; Tae Gun Shin
errShare
errSave
Deep Learning-based Text Classification: A Comprehensive Review
err2021-04-17
err587
PREAI
errMinaee, Shervin; Kalchbrenner, Nal; Cambria, Erik; Nikzad, Narjes; Chenaghlu, Meysam; Gao, Jianfeng
errShare
errSave
researcher View more