arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05480cs.AIcs.SE
收藏

Vul-R2:用于自动化漏洞修复的推理大语言模型

Vul-R2: A Reasoning LLM for Automated Vulnerability Repair

Tencent Inc.(腾讯公司);Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Department of Computer Science and Engineering, The Chinese University of Hong Kong(香港中文大学计算机科学与工程系)

Xin-Cheng Wen, Zirui Lin, Yijun Yang, Cuiyun Gao, Deheng Ye

AI总结:

针对现有LLM直接生成漏洞修复缺乏推理数据且难以验证中间过程的问题,提出Vul-R2推理大模型,以提升自动化漏洞修复的性能与可靠性。

摘要:

软件漏洞的指数级增长催生了对自动化漏洞修复(AVR)解决方案的迫切需求。近期研究将AVR形式化为序列生成问题,并利用大语言模型(LLMs)来解决该问题。通常,这些方法通过提示或微调LLMs直接生成漏洞修复方案。尽管这些方法展现了最先进的性能,但它们面临以下挑战:(1)缺乏高质量的、与漏洞相关的推理数据。当前方法主要依赖主要编码通用编程知识的基础模型。在没有漏洞相关推理数据的情况下,它们往往无法捕捉多样化的漏洞修复模式。(2)在LLM训练过程中难以验证中间漏洞修复过程。现有的强化学习方法通常利用来自环境的中间执行反馈(例如,基于沙箱的执行结果)来指导强化学习训练。相比之下,漏洞修复过程通常缺乏这种中间可验证的反馈,这给模型训练带来了额外的挑战。

英文摘要:

The exponential increase in software vulnerabilities has created an urgent need for automatic vulnerability repair (AVR) solutions. Recent research has formulated AVR as a sequence generation problem and has leveraged large language models (LLMs) to address this problem. Typically, these approaches prompt or fine-tune LLMs to generate repairs for vulnerabilities directly. Although these methods show state-of-the-art performance, they face the following challenges: (1) Lack of high-quality, vulnerability-related reasoning data. Current approaches primarily rely on foundation models that mainly encode general programming knowledge. Without vulnerability-related reasoning data, they tend to fail to capture the diverse vulnerability repair patterns. (2) Hard to verify the intermediate vulnerability repair process during LLM training. Existing reinforcement learning methods often leverage intermediate execution feedback from the environment (e.g., sandbox-based execution results) to guide reinforcement learning training. In contrast, the vulnerability repair process generally lacks such intermediate, verifiable feedback, which poses additional challenges for model training.

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

↑