arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.19508cs.SEcs.CR
收藏

论指令微调代码大语言模型的对抗鲁棒性

On the Adversarial Robustness of Instruction-Tuned Large Language Models for Code

Md Imran Hossen, Xiali Hei

AI总结:

本研究针对指令微调代码大语言模型(Code LLMs)的对抗鲁棒性问题,提出DegradePrompter方法评估其对输入挑战的响应,发现开源模型功能正确性下降12%-34%、商业模型下降3%-24%,并提出缓解策略,强调需加强防御机制与评估以保障系统可靠。

摘要:

面向编码任务的指令微调大语言模型(Code LLMs)的出现,改变了软件工程实践。然而,它们在应对各类输入挑战时的鲁棒性仍是关键问题。本研究提出DegradePrompter,这是一种用于系统评估指令微调Code LLMs鲁棒性的新方法。我们使用严格的指标和既定基准,评估了不同输入挑战对生成代码功能和正确性的影响。我们的综合评估涵盖5个最先进的开源模型和3个生产级闭源模型,结果显示其鲁棒性存在不同程度的差异。开源模型对输入扰动的敏感性更高,导致功能正确性下降12%至34%;相比之下,商业模型的韧性相对更强,性能下降幅度在3%至24%之间。为增强模型对这些漏洞的鲁棒性,我们研究了一种简单但有效的缓解策略。我们的发现强调,在开发和部署阶段都需要强大的防御机制和全面评估,以确保自动化代码生成系统的韧性和可靠性。

英文摘要:

The advent of instruction-tuned Large Language Models designed for coding tasks (Code LLMs) has transformed software engineering practices. However, their robustness against various input challenges remains a critical concern. This study introduces DegradePrompter, a novel method designed to systematically evaluate the robustness of instruction-tuned Code LLMs. We assess the impact of diverse input challenges on the functionality and correctness of generated code using rigorous metrics and established benchmarks. Our comprehensive evaluation includes five state-of-the-art open-source models and three production-grade closed-source models, revealing varying degrees of robustness. Open-source models demonstrate an increased susceptibility to input perturbations, resulting in declines in functional correctness ranging from 12% to 34%. In contrast, commercial models demonstrate relatively greater resilience, with performance degradation ranging from 3% to 24%. To enhance the robustness of the models against these vulnerabilities, we investigate a straightforward yet effective mitigation strategy. Our findings highlight the need for robust defense mechanisms and comprehensive evaluations during both the development and deployment phases to ensure the resilience and reliability of automated code generation systems.

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

↑