arXiv:2502.04251cs.SEcs.LG2025-02被引 12

用大模型提升缺陷复现步骤的自动识别与补全准确率

Combining Language and App UI Analysis for the Automated Assessment of Bug Reproduction Steps

  • 结合大模型语言理解与动态分析生成的界面状态模型,关联自然语言描述与具体操作
  • 在F1分数上比基线提升25.2%,缺失步骤补全准确率提高71.4%
  • 适合需要高效处理缺陷报告的开发团队和自动化测试工具开发者

缺陷报告对开发者确认软件问题、分析原因和验证修复至关重要。但报告常缺少关键信息或表述不清,导致延迟、修复成本上升甚至无法解决。其中最常见问题是复现步骤(S2Rs),其质量直接影响问题定位与修复。现有方法难以有效连接自然语言描述与程序语义信息,受限于语言多样性和静态分析的局限性。为此,本文提出AstroBR,利用大模型理解能力从报告中提取S2Rs,并映射到通过动态分析生成的程序状态模型中的界面操作。实验表明,AstroBR在F1分数上比基线高25.2%;对缺失步骤的补全准确率也高出71.4%。

原文摘要 · Abstract (English)

Bug reports are essential for developers to confirm software problems, investigate their causes, and validate fixes. Unfortunately, reports often miss important information or are written unclearly, which can cause delays, increased issue resolution effort, or even the inability to solve issues. One of the most common components of reports that are problematic is the steps to reproduce the bug(s) (S2Rs), which are essential to replicate the described program failures and reason about fixes. Given the proclivity for deficiencies in reported S2Rs, prior work has proposed techniques that assist reporters in writing or assessing the quality of S2Rs. However, automated understanding of S2Rs is challenging, and requires linking nuanced natural language phrases with specific, semantically related program information. Prior techniques often struggle to form such language to program connections - due to issues in language variability and limitations of information gleaned from program analyses. To more effectively tackle the problem of S2R quality annotation, we propose a new technique called AstroBR, which leverages the language understanding capabilities of LLMs to identify and extract the S2Rs from bug reports and map them to GUI interactions in a program state model derived via dynamic analysis. We compared AstroBR to a related state-of-the-art approach and we found that AstroBR annotates S2Rs 25.2% better (in terms of F1 score) than the baseline. Additionally, AstroBR suggests more accurate missing S2Rs than the baseline (by 71.4% in terms of F1 score).

缺陷检测大模型应用程序分析自动化报告

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。