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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Han, Woorim, Kwak, Yeongjun, Yu, Miseon, Kim, Kyeongmin, Lee, Younghan, Moon, Hyungon, Paek, Yunheung
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909976867373056
author Han, Woorim
Kwak, Yeongjun
Yu, Miseon
Kim, Kyeongmin
Lee, Younghan
Moon, Hyungon
Paek, Yunheung
author_facet Han, Woorim
Kwak, Yeongjun
Yu, Miseon
Kim, Kyeongmin
Lee, Younghan
Moon, Hyungon
Paek, Yunheung
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_22633
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Rethinking the Capability of Fine-Tuned Language Models for Automated Vulnerability Repair
Han, Woorim
Kwak, Yeongjun
Yu, Miseon
Kim, Kyeongmin
Lee, Younghan
Moon, Hyungon
Paek, Yunheung
Software Engineering
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.
title Rethinking the Capability of Fine-Tuned Language Models for Automated Vulnerability Repair
topic Software Engineering
url https://arxiv.org/abs/2512.22633