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

提示即所需:基于大语言模型的自动化 Android 缺陷复现

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

Sidong Feng, Chunyang Chen

AI总结:

针对 Android 缺陷复现依赖人工模式与预定义词汇的问题,本文提出基于 LLM 提示工程、少样本学习和思维链推理的 AdbGPT,无需训练即可高效复现缺陷。

摘要:

缺陷报告对于软件维护至关重要,它使用户能够将使用软件过程中遇到的问题告知开发者。因此,研究人员投入了大量资源来实现缺陷复现的自动化,以加快软件维护流程。尽管如此,当前自动化方法的成功在很大程度上取决于缺陷报告的特征和质量,因为它们受到人工构建模式和预定义词汇表局限性的制约。受大语言模型(LLM)在自然语言理解领域成功的启发,我们提出了 AdbGPT,这是一种通过提示工程从缺陷报告中自动复现缺陷的新型轻量级方法,无需任何训练和硬编码工作。AdbGPT 利用少样本学习和思维链推理,从 LLM 中激发人类知识和逻辑推理能力,以类似于开发者的方式完成缺陷复现。我们的评估证明了 AdbGPT 的有效性和效率:它能够在 253.6 秒内复现 81.3% 的缺陷报告,优于最先进的基线方法和消融实验。我们还开展了一项小规模用户研究,以证实 AdbGPT 在增强开发者缺陷复现能力方面的实用性。

英文摘要:

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.

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

↑