Automatically Recommend Code Updates: Are We There Yet?

计算机科学 编码(集合论) 软件工程 程序设计语言 集合(抽象数据类型)
作者
Yue Liu,Chakkrit Tantithamthavorn,Yonghui Liu,Patanamon Thongtanunam,Li Li
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
被引量:7
标识
DOI:10.1145/3678167
摘要

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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
罗二狗发布了新的文献求助10
1秒前
1秒前
认真绾绾完成签到,获得积分10
1秒前
1秒前
搜集达人的应助被开心德地采纳,获得10
2秒前
科研通AI65的应助被zhang采纳,获得10
2秒前
罗二狗发布了新的文献求助10
2秒前
2秒前
2秒前
2秒前
2秒前
搞怪灯泡发布了新的文献求助50
2秒前
3秒前
Liu Luke关注了科研通微信公众号
3秒前
4秒前
Li完成签到,获得积分10
4秒前
杨德凯完成签到,获得积分20
4秒前
4秒前
深情安青的应助被开心德地采纳,获得10
5秒前
Hanniewei发布了新的文献求助50
5秒前
陈昭琼完成签到 ,获得积分10
5秒前
周思发布了新的文献求助10
5秒前
dimension完成签到,获得积分10
6秒前
坚定寒松发布了新的文献求助10
6秒前
6秒前
自觉德天完成签到 ,获得积分10
7秒前
罗二狗发布了新的文献求助10
7秒前
7Wen发布了新的文献求助10
7秒前
7秒前
罗二狗发布了新的文献求助10
7秒前
Lucas的应助被要减肥的青荷采纳,获得10
8秒前
大模型的应助被开心德地采纳,获得10
8秒前
聪明的寒梅完成签到 ,获得积分10
8秒前
罗二狗发布了新的文献求助10
8秒前
罗二狗发布了新的文献求助10
8秒前
9秒前
10秒前
10秒前
科研通AI6.4的应助被zxy采纳,获得10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1700
The World Atlas of Wine 9th edition 1000
Sex, Aging, and Death in a Medieval Medical Compendium: Trinity College Cambridge MS R.14.52, Its Texts, Language, and Scribe 500
高分子基功能界面水蒸发材料与应用研究 500
外场增强的水汽发电研究 500
基于结构调控的功能化水诱导发电材料与器件研究 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8189382
求助须知:如何正确求助?哪些是违规求助? 9576691
关于积分的说明 21849410
捐赠科研通 7787318
什么是DOI,文献DOI怎么找? 3435538
关于科研通互助平台的介绍 2559748
邀请新用户注册赠送积分活动 2482509