paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Hit The Bullseye On The First Shot: Improving LLMs Using Multi-Sample Self-Reward Feedback for Vulnerability Repair

一击即中:利用多样本自奖励反馈改进 LLM 的漏洞修复
ASE 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE)2025匹配度 2/10 · 该论文的目标是提升 LLM 本身的漏洞修复能力(监督微调 + 自奖励反馈),属于以 LLM 为研究目标的训练方法工作,而非把 LLM/Agent 作为工具用于静态分析或形式化验证,也未涉及浮点程序分析或贝叶斯程序分析。与用户画像中'PL→AI 静态分析'与'AI→PL 改进分析工具'两条主线均无实质交集,且用户明确不感兴趣于以提升 LLM 本身为目标的研究。引用 0 inbox
Rui Jiao, Yue Zhang, Jinku Li, Jianfeng Ma
crossref: 2026-09-12

AI 速览

一句话:提出 MUSSEL 框架,通过多阶段训练与自奖励反馈提升 LLM 对软件漏洞的一次性修复准确率。

大型语言模型在漏洞修复中展现出潜力,但现有方法精度不足,往往需要多次尝试才能生成正确补丁。本文提出 MUSSEL(多样本自奖励反馈)框架,旨在实现一次性漏洞修复。该方法采用多阶段训练:首先利用领域特定数据进行监督微调,使模型获得漏洞修复的基础知识;随后通过自奖励反馈学习,迭代利用正确与错误的补丁来优化生成能力;同时设计了新的提示模板以更好对齐推理阶段。实验表明,MUSSEL 在一次性查询中持续优于现有最优方案,即使使用较小的 beam size 也保持高效且 GPU 内存需求低,并在多种 CWE 类型上均有效,具有显著安全意义。

问题
当前 LLM 在生成漏洞修复补丁时精度不足,往往需要多次尝试才能得到正确修复。
方法
提出 MUSSEL 框架,先以领域数据监督微调,再通过自奖励反馈学习迭代利用正确与错误补丁优化模型,并设计适配推理的提示模板。
评估
在漏洞修复任务上与现有最优方案对比,评估一次性查询准确率、不同 beam size 下的效率与 GPU 内存开销,并跨多种 CWE 类型验证泛化性。
原文摘要(Abstract)

In recent years, large language models (LLMs) have emerged as powerful tools to assist developers in various coding tasks, including the challenging domain of vulnerability repair. While these models have demonstrated significant potential in generating patches for software vulnerabilities, current approaches often suffer from limitations in precision, requiring multiple attempts to produce accurate fixes. In this paper, we propose MUSSEL (Multi-Sample Self-Reward Feedback), a novel framework designed to address the issue of one-shot vulnerability patching. Inspired by insights from human learning mechanisms, our approach aims to enhance the efficiency and accuracy of LLMs in generating precise patches for software vulnerabilities. We introduce a multi-stage training process, beginning with supervised fine-tuning using domain-specific data to impart foundational knowledge in vulnerability repair to the LLM. Subsequently, we employ self-reward feedback learning to refine the model’s patch generation capabilities, leveraging correct and incorrect patches iteratively to improve performance. We also introduce a novel prompt design tailored to better align with the capabilities of LLMs during inference. Our results demonstrate that MUSSEL consistently outperforms state-of-the-art solutions in one-shot queries. Notably, even with a small beam size, MUSSEL exhibits remarkable efficiency, requiring minimal GPU memory resources. Furthermore, MUSSEL’s effectiveness across diverse CWEs underscores its significant security implications.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot9361,
  title = {Hit The Bullseye On The First Shot: Improving LLMs Using Multi-Sample Self-Reward Feedback for Vulnerability Repair},
  author = {Rui Jiao and Yue Zhang and Jinku Li and Jianfeng Ma},
  booktitle = {ASE},
  year = {2025},
  doi = {10.1109/ase63991.2025.00071}
}