arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.10565cs.SE
收藏

大语言模型作为软件分析中稳健的数据生成器:我们做到了吗?

Large Language Models as Robust Data Generators in Software Analytics: Are We There Yet?

Md. Abdul Awal, Mrigank Rochan, Chanchal K. Roy

AI总结:

本文系统评估了LLM生成数据与人类编写数据在微调预训练模型应对对抗性攻击时的稳健性差异,发现LLM生成数据虽性能相当但稳健性不足,呼吁提升其训练数据质量。

摘要:

大语言模型(LLM)生成的数据越来越多地被用于软件分析,但目前尚不清楚这些数据与人类编写的数据相比如何,尤其是当模型暴露于对抗性场景时。对抗性攻击可能损害软件系统的可靠性和安全性,因此理解LLM生成的数据在这些条件下的表现,并与作为模型性能基准的人类编写数据进行比较,可以为LLM生成的数据是否具有类似的稳健性和有效性提供有价值的见解。为填补这一空白,我们系统地评估并比较了人类编写数据和LLM生成数据在对抗性攻击背景下用于微调稳健预训练模型(PTMs)的质量。我们评估了六个广泛使用的PTMs在对抗性攻击前后的稳健性,这些模型分别使用人类编写数据和LLM生成数据进行微调。该评估采用了九种最先进(SOTA)的对抗性攻击技术,涵盖三个流行的软件分析任务:克隆检测、代码摘要和代码评审讨论中的情感分析。此外,我们使用十一种相似性度量分析了所生成的对抗样本的质量。我们的研究结果表明,虽然使用LLM生成数据微调的PTMs与使用人类编写数据微调的PTMs表现相当,但它们在软件分析任务中对对抗性攻击的稳健性较差。我们的研究强调了进一步探索提升LLM生成训练数据质量的必要性,以开发出既具有高性能又能够在软件分析中抵御对抗性攻击的模型。

英文摘要:

Large Language Model (LLM)-generated data is increasingly used in software analytics, but it is unclear how this data compares to human-written data, particularly when models are exposed to adversarial scenarios. Adversarial attacks can compromise the reliability and security of software systems, so understanding how LLM-generated data performs under these conditions, compared to human-written data, which serves as the benchmark for model performance, can provide valuable insights into whether LLM-generated data offers similar robustness and effectiveness. To address this gap, we systematically evaluate and compare the quality of human-written and LLM-generated data for fine-tuning robust pre-trained models (PTMs) in the context of adversarial attacks. We evaluate the robustness of six widely used PTMs, fine-tuned on human-written and LLM-generated data, before and after adversarial attacks. This evaluation employs nine state-of-the-art (SOTA) adversarial attack techniques across three popular software analytics tasks: clone detection, code summarization, and sentiment analysis in code review discussions. Additionally, we analyze the quality of the generated adversarial examples using eleven similarity metrics. Our findings reveal that while PTMs fine-tuned on LLM-generated data perform competitively with those fine-tuned on human-written data, they exhibit less robustness against adversarial attacks in software analytics tasks. Our study underscores the need for further exploration into enhancing the quality of LLM-generated training data to develop models that are both high-performing and capable of withstanding adversarial attacks in software analytics.

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

↑