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

超越 ChatGPT:利用多样化 LLM 与验证技术增强软件质量保证任务

Beyond ChatGPT: Enhancing Software Quality Assurance Tasks with Diverse LLMs and Validation Techniques

Ratnadira Widyasari, David Lo, Lizi Liao

AI总结:

本文系统评估了多种 LLM 在故障定位和漏洞检测任务中的表现,提出投票组合与交叉验证方法,相较 GPT-3.5 分别取得超过 10% 和最高 16% 的性能提升。

摘要:

随着大型语言模型(LLMs)的进步,其在软件质量保证(SQA)中的应用日益增多。然而,当前这些应用主要集中于 ChatGPT。对于各类 LLM 在这一关键领域中的性能表现,仍存在理解上的空白。本文旨在通过全面考察多个 LLM 在两项 SQA 任务(故障定位和漏洞检测)中的能力来填补这一空白。我们使用 GPT-3.5、GPT-4o 以及其他四个公开可用的 LLM(LLaMA-3-70B、LLaMA-3-8B、Gemma-7B 和 Mixtral-8x7B)进行了对比研究,以评估它们在这些任务中的有效性。我们的研究结果表明,多个 LLM 在两项任务中均能超越 GPT-3.5。此外,即使是性能较低的 LLM 也提供了独特的正确预测,这表明结合不同 LLM 的结果具有提升整体性能的潜力。通过实现一种投票机制来组合各 LLM 的结果,我们在两项任务中相较 GPT-3.5 均取得了超过 10% 的提升。此外,我们引入了一种交叉验证方法,通过使用验证提示将一个 LLM 的答案与另一个 LLM 的答案进行相互验证来精化 LLM 的回答。与 GPT-3.5 相比,该方法在故障定位中带来了 16% 的性能提升,在漏洞检测中带来了 12% 的提升,并且与表现最佳的 LLM 相比也有 4% 的提升。我们的分析还表明,在 LLM 结果中包含解释会影响交叉验证技术的有效性。

英文摘要:

With the advancement of Large Language Models (LLMs), their application in Software Quality Assurance (SQA) has increased. However, the current focus of these applications is predominantly on ChatGPT. There remains a gap in understanding the performance of various LLMs in this critical domain. This paper aims to address this gap by conducting a comprehensive investigation into the capabilities of several LLMs across two SQA tasks: fault localization and vulnerability detection. We conducted comparative studies using GPT-3.5, GPT-4o, and four other publicly available LLMs (LLaMA-3-70B, LLaMA-3-8B, Gemma-7B, and Mixtral-8x7B), to evaluate their effectiveness in these tasks. Our findings reveal that several LLMs can outperform GPT-3.5 in both tasks. Additionally, even the lower-performing LLMs provided unique correct predictions, suggesting the potential of combining different LLMs' results to enhance overall performance. By implementing a voting mechanism to combine the LLMs' results, we achieved more than a 10% improvement over the GPT-3.5 in both tasks. Furthermore, we introduced a cross-validation approach to refine the LLM answer by validating one LLM answer against another using a validation prompt. This approach led to performance improvements of 16% in fault localization and 12% in vulnerability detection compared to the GPT-3.5, with a 4% improvement compared to the best-performed LLMs. Our analysis also indicates that the inclusion of explanations in the LLMs' results affects the effectiveness of the cross-validation technique.

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

↑