paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Learning to reduce false positives in analytic bug detectors

学习减少分析型缺陷检测器中的误报
ICSE Proceedings of the 44th International Conference on Software Engineering2022匹配度 7/10 · 该论文属于AI→PL方向,用Transformer降低静态分析误报并提升分析精度,与“利用机器学习改进静态分析”的研究兴趣直接相关;但未涉及LLM/Agent、浮点程序分析或贝叶斯程序分析等具体交叉点,因此匹配度中等偏上而非正中核心。引用 37 inbox
Anant Kharkar, Roshanak Zilouchian Moghaddam, Matthew Jin, Xiaoyu Liu, Xin Shi, Colin Clement, Neel Sundaresan
crossref: 2026-09-12

AI 速览

一句话:用 Transformer 模型识别静态分析误报,将分析精度提升 17.5%。

现代软件设计日益复杂、迭代迅速,代码缺陷与安全漏洞普遍存在,程序员依赖静态分析工具定期扫描代码库以发现潜在缺陷。然而为追求覆盖率,这类工具往往报告大量误报,开发者不得不逐条人工核查。本文提出一种基于 Transformer 的学习方法,用于判定静态分析告警是否为误报,从而在不牺牲覆盖率的前提下提升告警质量。实验表明,该模型可将静态分析的精度提升 17.5%,并且作者在空指针解引用与资源泄漏两大类缺陷上验证了方法的泛化能力,说明该思路并不局限于单一缺陷类型,具备跨缺陷类型迁移的潜力。

问题
静态分析工具为最大化覆盖率而报告大量误报,开发者需人工逐条验证,代价高昂。
方法
提出基于 Transformer 的学习方法,将静态分析告警作为输入来判别其是否为误报。
评估
在空指针解引用与资源泄漏两类缺陷上评估,使静态分析精度提升 17.5%,并验证了跨缺陷类型的泛化性。
原文摘要(Abstract)

Due to increasingly complex software design and rapid iterative development, code defects and security vulnerabilities are prevalent in modern software. In response, programmers rely on static analysis tools to regularly scan their codebases and find potential bugs. In order to maximize coverage, however, these tools generally tend to report a significant number of false positives, requiring developers to manually verify each warning. To address this problem, we propose a Transformer-based learning approach to identify false positive bug warnings. We demonstrate that our models can improve the precision of static analysis by 17.5%. In addition, we validated the generalizability of this approach across two major bug types: null dereference and resource leak.

链接与引用

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

BibTeX
@inproceedings{paperbot6902,
  title = {Learning to reduce false positives in analytic bug detectors},
  author = {Anant Kharkar and Roshanak Zilouchian Moghaddam and Matthew Jin and Xiaoyu Liu and Xin Shi and Colin Clement and Neel Sundaresan},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1145/3510003.3510153}
}