LSTM Attention-Driven Similarity Learning for Effective Bug Localization

计算机科学 相似性(几何) 人工智能 图像(数学)
作者
Geunseok Yang,Jinfeng Ji,E. J. Kim
出处
期刊:Applied sciences [Multidisciplinary Digital Publishing Institute]
卷期号:15 (3): 1582-1582
标识
DOI:10.3390/app15031582
摘要

Objective: The complexity of software systems, with their multifaceted functionalities and intricate source code structures, poses significant challenges for developers in identifying and resolving bugs. This study aims to address these challenges by proposing an efficient bug localization method that improves the accuracy and effectiveness of identifying faulty code based on bug reports. Method: We introduce a novel bug localization approach that integrates a Long Short-Term Memory (LSTM) attention mechanism with top-K code similarity learning. The proposed method preprocesses bug reports and source code files, calculates top-K code similarities using the BM25 algorithm, and trains an LSTM-Attention model to predict the most relevant buggy source code files. Results: The model was evaluated on six open-source projects (Tomcat, AspectJ, Birt, Eclipse, JDT, SWT) and demonstrated significant improvements over the baseline method, DNNLoc. Notably, the proposed approach improved accuracy across all projects, with average gains of 18% in prediction accuracy compared to the baseline. Conclusion: This study highlights the efficacy of combining similarity learning with attention mechanisms for bug localization. By streamlining debugging workflows and enhancing predictive accuracy, the proposed method offers a practical solution for improving software quality and reducing development costs.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
小李完成签到 ,获得积分10
1秒前
沉默的不言完成签到 ,获得积分10
3秒前
3秒前
4秒前
yuaner发布了新的文献求助10
4秒前
4秒前
巴拉巴拉巴拉拉应助然子采纳,获得50
5秒前
Ava应助zhouleiwang采纳,获得10
5秒前
6秒前
Jasper应助yuaner采纳,获得10
7秒前
Duan完成签到,获得积分10
7秒前
彩色诗云完成签到 ,获得积分10
8秒前
Hello应助研友_LjDyNZ采纳,获得10
8秒前
健忘外套发布了新的文献求助10
8秒前
药药55发布了新的文献求助30
10秒前
Akim应助张秋雨采纳,获得10
10秒前
11秒前
QZ完成签到,获得积分10
12秒前
迷路的水彤完成签到 ,获得积分10
12秒前
李爱国应助大鱼儿采纳,获得10
12秒前
CodeCraft应助闪闪的向梦采纳,获得10
15秒前
等都到发布了新的文献求助10
16秒前
17秒前
Steven发布了新的文献求助10
18秒前
无辜的蜗牛完成签到 ,获得积分10
19秒前
隐形曼青应助asdf采纳,获得10
19秒前
20秒前
21秒前
你好CDY完成签到,获得积分10
21秒前
22秒前
mkljl发布了新的文献求助10
23秒前
Diana发布了新的文献求助20
23秒前
23秒前
张秋雨发布了新的文献求助10
24秒前
26秒前
深情安青应助wangxin采纳,获得10
27秒前
liiy发布了新的文献求助10
27秒前
28秒前
彩色诗云发布了新的文献求助20
30秒前
Beatrice完成签到,获得积分10
30秒前
高分求助中
【此为提示信息,请勿应助】请按要求发布求助,避免被关 20000
Continuum Thermodynamics and Material Modelling 2000
Encyclopedia of Geology (2nd Edition) 2000
105th Edition CRC Handbook of Chemistry and Physics 1600
Maneuvering of a Damaged Navy Combatant 650
Периодизация спортивной тренировки. Общая теория и её практическое применение 310
Mixing the elements of mass customisation 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3778910
求助须知:如何正确求助?哪些是违规求助? 3324505
关于积分的说明 10218641
捐赠科研通 3039496
什么是DOI,文献DOI怎么找? 1668258
邀请新用户注册赠送积分活动 798634
科研通“疑难数据库(出版商)”最低求助积分说明 758440