arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.03754cs.SE
收藏

使用大语言模型增强基于信息检索的故障定位

Enhancing IR-based Fault Localization using Large Language Models

Shuai Shao, Tingting Yu

AI总结:

针对现有IRFL技术在错误报告分析和查询构建中存在信息丢失的问题,本文提出利用GPT-4等大语言模型对错误报告分类并应用定制查询策略(LLmiRQ),引入对话式查询重构(LLmiRQ+)和学习排序模型,显著提升故障定位性能。

摘要:

基于信息检索的故障定位(IRFL)技术旨在识别包含报告故障根本原因的源文件。现有技术在源文件排名方面表现出色,但在错误报告分析和查询构建方面仍存在挑战,可能导致信息丢失。本文利用GPT-4等大语言模型,通过基于编程实体、堆栈跟踪和自然语言文本对错误报告进行分类来增强IRFL。我们方法(LLmiRQ)的第一步是为每个类别应用量身定制的查询策略。为解决查询中的不准确问题,我们引入了一种基于用户和对话的查询重构方法,称为LLmiRQ+。此外,为进一步提高查询利用率,我们实现了一个学习排序模型,利用类名匹配分数和调用图分数等关键特征。该方法显著提高了查询的相关性和准确性。在包含6340个错误报告的46个项目上进行评估,MRR为0.6770,MAP为0.5118,超过了七种最先进的IRFL技术,表现出优越的性能。

英文摘要:

Information Retrieval-based Fault Localization (IRFL) techniques aim to identify source files containing the root causes of reported failures. While existing techniques excel in ranking source files, challenges persist in bug report analysis and query construction, leading to potential information loss. Leveraging large language models like GPT-4, this paper enhances IRFL by categorizing bug reports based on programming entities, stack traces, and natural language text. Tailored query strategies, the initial step in our approach (LLmiRQ), are applied to each category. To address inaccuracies in queries, we introduce a user and conversational-based query reformulation approach, termed LLmiRQ+. Additionally, to further enhance query utilization, we implement a learning-to-rank model that leverages key features such as class name match score and call graph score. This approach significantly improves the relevance and accuracy of queries. Evaluation on 46 projects with 6,340 bug reports yields an MRR of 0.6770 and MAP of 0.5118, surpassing seven state-of-the-art IRFL techniques, showcasing superior performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑