Graph Attention-Based Contextual Semantic Correlation Analysis for Software Fault Localization

IF 1.6 4区 计算机科学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Hongdou He, Xiaoming Ma, Huazhi Xu, Guyu Zhao
{"title":"Graph Attention-Based Contextual Semantic Correlation Analysis for Software Fault Localization","authors":"Hongdou He,&nbsp;Xiaoming Ma,&nbsp;Huazhi Xu,&nbsp;Guyu Zhao","doi":"10.1002/smr.70103","DOIUrl":null,"url":null,"abstract":"<div>\n \n <p>Although the advanced spectrum-based fault localization techniques introduce graph models to measure the faulty suspiciousness of entities, they still lack effective leverage of the contextual semantics of program units, making it difficult to reveal the complex causal relationships of bugs. Therefore, this paper proposes the <b>C</b>ontextual <b>S</b>emantic Coupling <b>C</b>orrelation Analysis for the Software <b>F</b>ault <b>L</b>ocalization (CSCFL), employing semantic embedding and coupling correlation of contextual associations based on contextual embedding and graph attention mechanism. Based on the test coverage graph representation, the pre-trained self-attention embedding model encodes the entity embeddings considering context associations, fully mining the contextual information among program entities to obtain contextual feature representation. CSCFL introduces the graph attention network to learn the context semantic coupling correlation between entities. By analyzing the causal relationships and semantic collaborations that lead to faults, the context semantics analysis module automatically weights and aggregates the influence of contextual entities to generate more accurate fault feature representations, thereby improving localization effectiveness. The experimental results show that, with respect to Top-1, Top-3, and Top-5 metrics, the proposed method outperforms the baseline methods by <span></span><math>\n <semantics>\n <mrow>\n <mn>7</mn>\n <mo>.</mo>\n <mn>59</mn>\n <mo>%</mo>\n <mo>,</mo>\n <mspace></mspace>\n <mn>4</mn>\n <mo>.</mo>\n <mn>73</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 7.59\\%,\\kern0.3em 4.73\\% $$</annotation>\n </semantics></math>, and <span></span><math>\n <semantics>\n <mrow>\n <mn>1</mn>\n <mo>.</mo>\n <mn>41</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 1.41\\% $$</annotation>\n </semantics></math>, respectively, and outperforms cutting-edge LLM-based methods by <span></span><math>\n <semantics>\n <mrow>\n <mn>9</mn>\n <mo>.</mo>\n <mn>10</mn>\n <mo>%</mo>\n <mo>,</mo>\n <mspace></mspace>\n <mn>13</mn>\n <mo>.</mo>\n <mn>71</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 9.10\\%,\\kern0.3em 13.71\\% $$</annotation>\n </semantics></math>, and <span></span><math>\n <semantics>\n <mrow>\n <mn>20</mn>\n <mo>.</mo>\n <mn>67</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 20.67\\% $$</annotation>\n </semantics></math>.</p>\n </div>","PeriodicalId":48898,"journal":{"name":"Journal of Software-Evolution and Process","volume":"38 4","pages":""},"PeriodicalIF":1.6000,"publicationDate":"2026-04-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Software-Evolution and Process","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/smr.70103","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Although the advanced spectrum-based fault localization techniques introduce graph models to measure the faulty suspiciousness of entities, they still lack effective leverage of the contextual semantics of program units, making it difficult to reveal the complex causal relationships of bugs. Therefore, this paper proposes the Contextual Semantic Coupling Correlation Analysis for the Software Fault Localization (CSCFL), employing semantic embedding and coupling correlation of contextual associations based on contextual embedding and graph attention mechanism. Based on the test coverage graph representation, the pre-trained self-attention embedding model encodes the entity embeddings considering context associations, fully mining the contextual information among program entities to obtain contextual feature representation. CSCFL introduces the graph attention network to learn the context semantic coupling correlation between entities. By analyzing the causal relationships and semantic collaborations that lead to faults, the context semantics analysis module automatically weights and aggregates the influence of contextual entities to generate more accurate fault feature representations, thereby improving localization effectiveness. The experimental results show that, with respect to Top-1, Top-3, and Top-5 metrics, the proposed method outperforms the baseline methods by 7 . 59 % , 4 . 73 % $$ 7.59\%,\kern0.3em 4.73\% $$ , and 1 . 41 % $$ 1.41\% $$ , respectively, and outperforms cutting-edge LLM-based methods by 9 . 10 % , 13 . 71 % $$ 9.10\%,\kern0.3em 13.71\% $$ , and 20 . 67 % $$ 20.67\% $$ .

基于图注意的软件故障定位上下文语义关联分析
尽管先进的基于谱的故障定位技术引入了图模型来度量实体的故障怀疑程度,但它们仍然缺乏对程序单元上下文语义的有效利用,难以揭示故障之间复杂的因果关系。为此,本文提出了基于上下文嵌入和图注意机制的软件故障定位上下文语义耦合关联分析,采用语义嵌入和上下文关联耦合关联的方法。在测试覆盖图表示的基础上,预训练的自关注嵌入模型考虑上下文关联对实体嵌入进行编码,充分挖掘程序实体之间的上下文信息,获得上下文特征表示。CSCFL引入了图注意网络来学习实体之间的上下文语义耦合关系。上下文语义分析模块通过分析导致故障的因果关系和语义协同,自动对上下文实体的影响进行加权和聚合,生成更准确的故障特征表示,从而提高定位效率。实验结果表明,在Top-1、Top-3和Top-5指标方面,本文提出的方法比基线方法高出7个百分点。59 % , 4 . 73 % $$ 7.59\%,\kern0.3em 4.73\% $$ , and 1 . 41 % $$ 1.41\% $$ , respectively, and outperforms cutting-edge LLM-based methods by 9 . 10 % , 13 . 71 % $$ 9.10\%,\kern0.3em 13.71\% $$ , and 20 . 67 % $$ 20.67\% $$ .
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Software-Evolution and Process
Journal of Software-Evolution and Process COMPUTER SCIENCE, SOFTWARE ENGINEERING-
自引率
10.00%
发文量
109
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书