paperbot · PL 论文追踪

全部论文 待读 收藏

P2 LLM-based Vulnerability Discovery through the Lens of Code Metrics

从代码度量视角审视基于LLM的漏洞发现
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 4/10 · 论文研究LLM在漏洞发现中的表现并与代码度量对比,属于LLM与程序语言/软件工程的交叉,但与用户核心关注的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析及Agentic程序分析并不直接相关;它主要是对LLM能力的实证与根因分析,而非提出或改进静态分析技术。引用 8 inbox
Felix Weissberg, Lukas Pirch, Erik Imgrund, Jonas Möller, Thorsten Eisenhofer, Konrad Rieck
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:仅用代码度量训练的分类器在漏洞发现上可与先进LLM媲美,并揭示LLM预测与代码度量存在因果依赖。

本文研究LLM在漏洞发现中进展停滞的原因。作者从经典代码度量的视角出发,比较仅用代码度量训练的分类器与最先进LLM在漏洞发现任务上的表现,并开展根因分析。令人意外的是,仅基于代码度量的分类器性能与先进LLM相当。进一步分析发现,LLM预测与代码度量之间存在强相关性和因果效应:当改变某个度量的值时,LLM预测会相应移动。这表明LLM与代码度量在相似的浅层水平上运作,限制了其捕捉复杂模式、充分发挥漏洞发现潜力的能力。基于这些发现,作者为后续研究提出了改进建议。

问题
LLM在漏洞发现上的进展近年来停滞,作者试图理解这一现象背后的原因。
方法
通过经典代码度量的视角评估LLM,比较仅用代码度量训练的分类器与最先进LLM,并进行根因与因果分析(干预度量值观察预测变化)。
评估
在漏洞发现任务上对比分类器与最先进LLM的性能;通过改变代码度量值开展根因/因果分析,验证LLM预测对度量的依赖。
原文摘要(Abstract)

Large language models (LLMs) excel in many tasks of software engineering, yet progress in leveraging them for vulnerability discovery has stalled in recent years. To understand this phenomenon, we investigate LLMs through the lens of classic code metrics. Surprisingly, we find that a classifier trained solely on these metrics performs on par with state-of-the-art LLMs for vulnerability discovery. A root-cause analysis reveals a strong correlation and a causal effect between LLMs and code metrics: When the value of a metric is changed, LLM predictions tend to shift by a corresponding magnitude. This dependency suggests that LLMs operate at a similarly shallow level as code metrics, limiting their ability to grasp complex patterns and fully realize their potential in vulnerability discovery. Based on these findings, we derive recommendations on how research should more effectively address this challenge.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2509-19117,
  title = {LLM-based Vulnerability Discovery through the Lens of Code Metrics},
  author = {Felix Weissberg and Lukas Pirch and Erik Imgrund and Jonas Möller and Thorsten Eisenhofer and Konrad Rieck},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3764574}
}