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

重新思考微调语言模型在自动漏洞修复方面的能力

Rethinking the Capability of Fine-Tuned Language Models for Automated Vulnerability Repair

Seoul National University(首尔大学);UNIST(蔚山科学技术院);Sungshin Women’s University(成均馆女子大学)

Woorim Han, Yeongjun Kwak, Miseon Yu, Kyeongmin Kim, Younghan Lee, Hyungon Moon, Yunheung Paek

AI总结:

探讨基于微调语言模型的自动漏洞修复技术,通过语义变换、重划数据集和引入新基准三种方式,考察现有模型能力及匹配评估指标充分性,以提升模型修复未见漏洞的能力和评估准确性。

摘要:

基于学习的自动漏洞修复(AVR)技术利用微调语言模型在生成漏洞补丁方面展现出前景。然而,其修复未见漏洞的能力仍存疑问。实证研究表明,现有模型常过度拟合训练集,且评估使用的训练、验证和测试集并非互斥。基于令牌级匹配的评估指标也有局限。本文从三方面考察现有微调AVR模型能力及匹配评估指标的充分性。一是对测试集应用语义保留变换;二是重新划分训练、验证和测试集使其互斥并评估模型泛化能力;三是引入L - AVRBench基准来克服匹配指标局限并检验模型真正修复能力。

英文摘要:

Learning-based automated vulnerability repair (AVR) techniques that utilize fine-tuned language models have shown promise in generating vulnerability patches. However, questions remain about their ability to repair unseen vulnerabilities. Our empirical study reveals that state-of-the-art models often overfit to the training set and are evaluated using training, validation, and test sets that are not mutually exclusive. Furthermore, relying on match-based metrics that compare generated patches to reference fixes at the token level has some limitations, failing to account for the possibility of various valid ways to patch the vulnerability. In this paper, we examine the capabilities of state-of-the-art fine-tuned AVR models and the adequacy of match-based evaluation metrics in three ways. First, we apply semantic-preserving transformations to test sets in order to determine whether models truly learn robust vulnerability-repair patterns or simply rely on spurious features. Second, we re-split the training, validation, and test sets to be mutually exclusive and evaluate the models on the revised test set to assess their generalization capabilities. Third, we introduce L-AVRBench, a test-based benchmark tailored for learning-based AVR, to overcome the limitations of match-based metrics and examine the AVR models' true repair capabilities.

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

↑