引用本文:刘浩,杜军威,李玉莹,房敏营,贾学海.基于图Transformer的变更集错误定位方法.软件学报,2026,37(5):2085-2102
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 626次   下载 1878 本文二维码信息
码上扫一扫!
分享到: 微信 更多
基于图Transformer的变更集错误定位方法
刘浩1, 杜军威1, 李玉莹1, 房敏营1, 贾学海2
1.青岛科技大学 数据科学学院, 山东 青岛 266061;2.青岛科技大学 信息科学技术学院, 山东 青岛 266061
摘要:
错误定位是软件维护过程中的关键环节, 如何提升自动化故障定位的有效性和效率是软件工程领域的研究焦点之一. 随着开源软件数量激增且软件热更新需求增多, 面向变更集的自动化错误定位成为软件质量保障的重要手段. 传统基于信息检索的错误定位方法只能表征自身文本信息, 未能充分考虑变更集中的结构和语义变化, 无法直接应用于变更集的错误定位任务. 因此, 提出一种基于图Transformer的变更集错误定位方法, 使用基于变更信息抽象语法树表征代码结构变化信息, 并从局部和全局角度表征变更代码和错误报告的语义信息, 进而实现变更集中错误信息的匹配和定位. 对来自6个错误诱发变更集的错误报告和变更进行测试, 与最先进模型相比, MAPMRR指标分别提升11.4%和12.9%, 证明了该方法的有效性.
关键词:  错误定位  图表示  错误诱发变更集  抽象语法树  错误报告
DOI:10.13328/j.cnki.jos.007458
分类号:TP311
基金项目:国家自然科学基金 (62202253, 6217072142); 山东省自然科学基金 (ZR2024QF199, ZR2021MF092, ZR2022MF326, ZR2021QF074)
Change Set Bug Localization Method Based on Graph Transformer
LIU Hao1, DU Jun-Wei1, LI Yu-Ying1, FANG Min-Ying1, JIA Xue-Hai2
1.College of Data Science, Qingdao University of Science & Technology, Qingdao 266061, China;2.College of Information Science and Technology, Qingdao University of Science & Technology, Qingdao 266061, China
Abstract:
Bug localization is a critical aspect of software maintenance, and improving the effectiveness and efficiency of automated fault localization has become a central research focus in software engineering. With the surge in open-source software and the increasing demand for software hot updates, automated bug localization focused on change sets has become a key tool for software quality assurance. Traditional bug localization methods based on information retrieval can only represent textual information and fail to fully account for structural and semantic changes within change sets, making them unsuitable for direct application in change set bug localization tasks. Therefore, this study proposes a method for change set bug localization based on graph Transformer, which uses an abstract syntax tree to represent change information and capture code structure changes. The method represents both local and global semantic information of the changed code and bug reports, enabling the matching and localization of bug information within change sets. It is tested on bug reports and changes from six sets of bug-inducing change sets. Compared to the state-of-the-art models, the proposed method demonstrates improvements of 11.4% and 12.9% in MAP and MRR metrics, respectively, validating the efficacy of the proposed approach.
Key words:  bug localization  graph representation  bug-inducing change set  abstract syntax tree (AST)  bug report

引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览次   下载  
分享到: 微信 更多
摘要:
关键词:  
DOI:
分类号:
基金项目:
Abstract:
Key words: