GraphLocator: 图引导的因果推理用于问题定位
GraphLocator: Graph-guided Causal Reasoning for Issue Localization
AI总结:
GraphLocator通过因果图发现和动态解构解决软件问题定位中的因果不匹配和一对一不匹配问题,提升定位准确性和下游任务性能。
摘要:
问题定位任务旨在根据自然语言的问题描述确定软件仓库中需要修改的位置。这一任务在自动化软件工程中是基础但具有挑战性的,因为问题描述与源代码实现之间存在语义鸿沟。这种鸿沟表现为两种不匹配:(1)症状到原因的不匹配,其中描述并未明确揭示潜在的根本原因;(2)一对一的不匹配,即一个问题对应多个相互依赖的代码实体。为了解决这两种不匹配,我们提出了GraphLocator,一种通过发现因果结构来缓解症状到原因不匹配的方法,并通过动态问题解构来解决一对一不匹配。关键成果是因果问题图(CIG),其中顶点代表发现的子问题及其相关代码实体,边编码它们之间的因果依赖关系。GraphLocator的工作流程分为两个阶段:症状顶点定位和动态CIG发现;它首先在仓库图上确定症状位置,然后通过迭代推理邻近顶点动态扩展CIG。在三个真实世界数据集上的实验表明了GraphLocator的有效性:(1)与基线相比,GraphLocator在功能级别召回率上平均提高19.49%,在精确度上提高11.89%。(2)GraphLocator在症状到原因和一对一不匹配场景中优于基线,分别在召回率上提高16.44%和19.18%,在精确度上提高7.78%和13.23%。(3)GraphLocator生成的CIG在下游解决任务中带来最高相对提升,导致性能提高28.74%。
英文摘要:
The issue localization task aims to identify the locations in a software repository that requires modification given a natural language issue description. This task is fundamental yet challenging in automated software engineering due to the semantic gap between issue description and source code implementation. This gap manifests as two mismatches:(1) symptom-to-cause mismatches, where descriptions do not explicitly reveal underlying root causes; (2) one-to-many mismatches, where a single issue corresponds to multiple interdependent code entities. To address these two mismatches, we propose GraphLocator, an approach that mitigates symptom-to-cause mismatches through causal structure discovering and resolves one-to-many mismatches via dynamic issue disentangling. The key artifact is the causal issue graph (CIG), in which vertices represent discovered sub-issues along with their associated code entities, and edges encode the causal dependencies between them. The workflow of GraphLocator consists of two phases: symptom vertices locating and dynamic CIG discovering; it first identifies symptom locations on the repository graph, then dynamically expands the CIG by iteratively reasoning over neighboring vertices. Experiments on three real-world datasets demonstrates the effectiveness of GraphLocator: (1) Compared with baselines, GraphLocator achieves more accurate localization with average improvements of +19.49% in function-level recall and +11.89% in precision. (2) GraphLocator outperforms baselines on both symptom-to-cause and one-to-many mismatch scenarios, achieving recall improvement of +16.44% and +19.18%, precision improvement of +7.78% and +13.23%, respectively. (3) The CIG generated by GraphLocator yields the highest relative improvement, resulting in a 28.74% increase in performance on downstream resolving task.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。