Metraipolis › archive › dc_029bf9d33bd5

Metrics Failure in LLM-Based Code Vulnerability Repair: An Empirical Study and a Change-Aware Screen — arXiv:2609.26749

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.26749
License (as archived)
CC0-1.0
Archived
2026-10-08T13:47:30.382Z
SHA-256 of the archived text
97ecb2555acd08ce2c82d61f810738142cea173010deef957107b6536afe7c86
Stable URL of this page
https://metraipolis.com/documento/dc_029bf9d33bd5

How to cite

Metrics Failure in LLM-Based Code Vulnerability Repair: An Empirical Study and a Change-Aware Screen — arXiv:2609.26749 — arXiv (en), https://arxiv.org/abs/2609.26749 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_029bf9d33bd5 (Metraipolis archive dc_029bf9d33bd5, sha256 97ecb2555acd08ce2c82d61f810738142cea173010deef957107b6536afe7c86)
BibTeX
@misc{dc029bf9d33bd5,
  title = {Metrics Failure in LLM-Based Code Vulnerability Repair: An Empirical Study and a Change-Aware Screen — arXiv:2609.26749},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.26749},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_029bf9d33bd5; sha256 97ecb2555acd08ce2c82d61f810738142cea173010deef957107b6536afe7c86},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.26749. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models (LLMs) are increasingly applied to the automated repair of C/C++ security vulnerabilities, and compile rate is a commonly reported proxy for progress: whether the generated patch compiles. We argue that compile rate is a scientifically unreliable metric for single-function vulnerability repair, and we support this with five controlled experiments over 203 vulnerable functions from Big-Vul, three open-source code LLMs (350M to 6.7B parameters), and three prompting strategies. Compile rate (i) barely responds to an intervention that substantially improves the generated code; (ii) is dominated by evaluation-harness and dataset artifacts rather than model quality, with about 64% of compile failures not attributable to the model, a share that is nearly invariant across models; (iii) shifts by 1.8 to 2.7 times on identical patches under a single compiler-standard flag, with zero regressions; (iv) ranks the three models in the opposite order to reference-similarity metrics; and (v) rewards non-repairs when used as an optimization target, since a compiler-feedback loop raises compile rate while similarity to the human fix falls, with manual inspection finding deletion- and placeholder-style non-repairs among the newly compiling outputs. The natural fallback, whole-function CodeBLEU, also fails: an unchanged copy of the vulnerable input outscores every model. We also examine diff_F1, a change-aware screen that scores only the edited region. It gives exactly zero credit to a no-op and near-zero credit to some, though not all, of the deletion-based gaming patches we observed, while still crediting genuine partial edits, so it may serve as a cheap screen before deeper, execution-based analysis. It is not a repair-quality metric, and we report where it falls short. Our findings argue for change-aware, execution-grounded evaluation of LLM-based vulnerability repair.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-23 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.26749 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T13:18:38.342Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).