paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Comprehensive Evaluation of Code Language Models for Security Patch Detection

面向安全补丁检测的代码语言模型综合评估
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026匹配度 3/10 · 论文聚焦代码语言模型在安全补丁/漏洞修复提交检测这一软件安全任务上的评测,属于ML4Code/软件工程范畴,与用户核心方向(面向ML/Agent程序的静态分析、LLM改进静态分析或形式化验证、浮点/贝叶斯程序分析)没有直接交集。虽然涉及代码模型评估和缺乏可靠benchmark的重要场景,但研究问题与用户画像匹配度较低。引用 0 inbox
Nils Loose, Joseph Bienhüls, Kristoffer Hempel, Felix Mächtle, Thomas Eisenbarth
crossref: 2026-10-09

AI 速览

一句话:系统重评代码语言模型检测安全补丁的能力,发现模型规模增益有限且代码上下文无可靠提升。

针对漏洞修复提交(VFC)自动检测对及时部署安全补丁至关重要、但公告数据库严重滞后且许多修复无公告的问题,本文重新评估代码语言模型能否仅从代码变更识别安全修复。作者构建统一框架,整合20个碎片化数据集、超过18万次提交,并训练125M至80B参数的270个模型。在按组分层的仅代码评估下,隔离代码信号,并考察模型容量与从过程内增强到跨过程仓库上下文的额外代码上下文影响。结果表明:模型容量带来清晰但不足的增益;在严格假阳性预算下,所评估的上下文信号未提供可靠提升。

问题
现有漏洞修复提交检测报告受提交消息、项目级数据泄漏和数据质量影响,难以判断代码语言模型能否仅凭代码变更识别安全修复。
方法
整合20个数据集与18万余次提交,训练125M–80B参数的270个模型,并在分组分层的仅代码设定下评估模型容量及过程内到跨过程仓库上下文的影响。
评估
评估显示模型容量增益有限,且过程内与跨过程代码上下文在严格假阳性预算下均未带来可靠改善。
原文摘要(Abstract)

Automated detection of vulnerability-fixing commits (VFCs) is critical for timely security patch deployment, as advisory databases lag patch releases by a median of 25 days and many fixes never receive advisories. Code language models are increasingly adopted for identifying , yet whether they can recognize a security fix from the code change itself remains unclear, as reported performance is shaped by commit messages, project-level data leakage, and uncertain data quality. We present a rigorous re-evaluation that jointly controls these factors through a unified framework consolidating 20 fragmented datasets spanning more than 180000 commits. Training 270 models from 125M to 80B parameters, we isolate the code signal under group-stratified code-only evaluation and assess the impact of model capacity and additional code context, ranging from intra-procedural enrichment to inter-procedural repository context. Model capacity yields clear but insufficient gains, and the evaluated context signals provide no reliable improvement under strict false positive budgets. At a false positive rate of 0.5

链接与引用

DOI 原文 · arXiv ·

BibTeX
@inproceedings{paperbot12452,
  title = {A Comprehensive Evaluation of Code Language Models for Security Patch Detection},
  author = {Nils Loose and Joseph Bienhüls and Kristoffer Hempel and Felix Mächtle and Thomas Eisenbarth},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3837538}
}