paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Not All Input Helps: What Information Should We Feed to LLMs for Vulnerability Repair?

并非所有输入都有帮助:我们该向 LLM 提供什么信息来做漏洞修复?
ICSE Proceedings of the IEEE/ACM 48th International Conference on Software Engineering2026匹配度 3/10 · 论文研究 LLM 漏洞修复中的输入信息选择,属于 LLM 在软件工程/安全的应用,与用户关注的 LLM 改进静态分析/形式化验证、浮点/贝叶斯程序分析等核心方向不直接相关,且目标偏向提升 LLM 本身性能。引用 0 inbox
Dongwook Choi, Eunseok Lee
crossref: 2026-09-12

AI 速览

一句话:系统考察不同输入信息类型对 LLM 漏洞修复性能的影响,并给出输入选择与组织方式的实用指南。

本文关注 LLM 自动化漏洞修复中一个被忽视的问题:究竟应当向模型提供哪些输入信息。作者首先调研了 26 篇近期工作,将所用输入归纳为若干类别,包括易受攻击的代码片段、漏洞行标记、CVE/CWE 标识与描述,以及补丁上下文等附加元数据。随后在多种 LLM 架构与数据集上开展大量实验,逐一分析这些输入单独使用以及组合使用时对修复准确率的影响。结果显示,并非所有输入类型都带来正向收益:部分信息会引入噪声或冗余,反而削弱模型生成有效补丁的能力。基于上述分析,论文提出了选择与组织输入信息的实践准则,以优化基于 LLM 的漏洞修复流程。

问题
LLM 漏洞修复的效果高度依赖所给输入,但学界尚不明确哪些输入类型真正有用、哪些会带来干扰。
方法
调研 26 篇近期研究并归纳输入信息类别,然后在多种 LLM 架构和数据集上系统实验,比较各类输入单独及组合使用时的修复效果。
评估
以漏洞修复准确率为指标,跨不同 LLM 架构与数据集进行对照实验,据此总结输入选择与结构化的实践指南。
原文摘要(Abstract)

Software vulnerabilities pose significant security risks, and timely repair is essential for mitigating potential exploits. Large Language Models (LLMs) have shown promise in automating vulnerability repair, but their effectiveness heavily depends on the input information provided. This paper systematically investigates the impact of different input types on LLM-based vulnerability repair performance. We surveyed 26 recent studies to categorize the input information used, including vulnerable code snippets, vulnerable line markers, CVE/CWE identifiers and descriptions, and additional metadata such as patch context. Through extensive experiments, we analyzed how these inputs, individually and in combination, influence the accuracy of vulnerability repair across various LLM architectures and datasets. Our findings reveal that not all input types contribute positively to repair performance; some may introduce noise or redundancy that hinders the model’s ability to generate effective patches. Based on our analysis, we provide practical guidelines for selecting and structuring input information to optimize LLM-based vulnerability repair.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12067,
  title = {Not All Input Helps: What Information Should We Feed to LLMs for Vulnerability Repair?},
  author = {Dongwook Choi and Eunseok Lee},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3786582.3786847}
}