paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Prompting Is All You Need: Automated Android Bug Replay with Large Language Models

提示即全部所需:基于大语言模型的 Android 缺陷自动复现
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 3/10 · 论文属于 LLM 用于软件工程中的 Android 缺陷复现,虽与“AI+PL”大方向沾边,但其核心是提示工程驱动的动态测试/调试,而非用户重点关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未涉及 Agentic 程序分析。引用 157 inbox
Sidong Feng, Chunyang Chen
crossref: 2026-09-12

AI 速览

一句话:提出 AdbGPT,用提示工程让 LLM 零训练自动复现 Android 缺陷报告,成功率达 81.3%。

缺陷报告对软件维护至关重要,但现有自动复现方法依赖人工编写模式与预定义词表,效果受报告质量制约。本文提出 AdbGPT,一种轻量级方法,借助大语言模型的自然语言理解能力,通过提示工程自动从缺陷报告中复现缺陷,无需训练或硬编码。它采用少样本学习与思维链推理,引导 LLM 像开发者一样提取信息并逐步推理完成复现。评估显示,AdbGPT 在 253.6 秒内复现 81.3% 的缺陷报告,优于当前最优基线与消融实验;小规模用户研究也证实其能提升开发者的缺陷复现能力。

问题
现有自动化 Android 缺陷复现方法依赖人工编写的模式与预定义词表,受缺陷报告特征与质量限制,泛化能力不足。
方法
提出 AdbGPT,通过少样本学习与思维链提示工程,从缺陷报告中抽取复现所需信息并逐步推理生成复现步骤,无需训练和硬编码。
评估
在缺陷报告数据集上实现 81.3% 的复现率,耗时 253.6 秒,优于当前最优基线与消融实验;并通过小规模用户研究验证其对开发者缺陷复现能力的提升。
原文摘要(Abstract)

Bug reports are vital for software maintenance that allow users to inform developers of the problems encountered while using the software. As such, researchers have committed considerable resources toward automating bug replay to expedite the process of software maintenance. Nonetheless, the success of current automated approaches is largely dictated by the characteristics and quality of bug reports, as they are constrained by the limitations of manually-crafted patterns and pre-defined vocabulary lists. Inspired by the success of Large Language Models (LLMs) in natural language understanding, we propose AdbGPT, a new lightweight approach to automatically reproduce the bugs from bug reports through prompt engineering, without any training and hard-coding effort. AdbGPT leverages few-shot learning and chain-of-thought reasoning to elicit human knowledge and logical reasoning from LLMs to accomplish the bug replay in a manner similar to a developer. Our evaluations demonstrate the effectiveness and efficiency of our AdbGPT to reproduce 81.3% of bug reports in 253.6 seconds, outperforming the state-of-the-art baselines and ablation studies. We also conduct a small-scale user study to confirm the usefulness of AdbGPT in enhancing developers' bug replay capabilities.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot11347,
  title = {Prompting Is All You Need: Automated Android Bug Replay with Large Language Models},
  author = {Sidong Feng and Chunyang Chen},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3608137}
}