paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Emerging Results in Using Explainable AI to Improve Software Vulnerability Prediction

利用可解释 AI 改进软件漏洞预测的早期结果
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 3/10 · 该论文用 XAI(Layered Integrated Gradients)解释基于深度学习的漏洞预测模型 LineVul,属于数据驱动的代码安全分析,与'用静态分析支持 ML/Agent'或'用 LLM/Agent 改进静态分析与形式化验证'这两条主线均无直接交集;其研究目标是提升预测模型的 F-Measure,而非程序分析本身,也未涉及浮点分析或贝叶斯程序分析。仅'利用解释识别数据集偏差与模型局限'这一失败归因视角与用户对问题驱动型工作的偏好有微弱契合。引用 1 inbox
Fahad Al Debeyan, Tracy Hall, Lech Madeyski
crossref: 2026-09-12

AI 速览

一句话:首次利用 XAI 解释识别漏洞预测数据偏差与模型局限,从而提升预测性能。

本文研究可解释 AI(XAI)能否用于改进软件漏洞预测,而不仅是提升透明度。作者以 LineVul 深度学习漏洞预测模型和 Layered Integrated Gradients 解释算法生成 XAI 信息,据此分析漏洞预测数据集中的偏差和模型局限。一个意外发现是:LineVul 虽能准确预测易受攻击函数,但其中 43% 的预测依据的是数据集偏差而非真正漏洞行。系统移除这些偏差后,F-Measure 从 92% 提升到 96%。此外,XAI 还揭示 LineVul 依赖的 CodeBERT 受 512 token 限制;集成可处理长序列的 LongCoder 后,F-measure 与 MCC 从 92% 和 91% 提升至 94%。结论是 XAI 有超越解释预测依据的附加用途。

问题
漏洞预测模型的性能依赖数据集质量与机器学习模型;现有 XAI 多用于解释预测,尚未用于改进预测性能。
方法
使用 LineVul 与 Layered Integrated Gradients 生成 XAI 信息,识别数据集偏差和模型局限,并据此去偏及集成 LongCoder。
评估
在漏洞预测任务上对比改进前后 LineVul 的 F-Measure、MCC,并通过 XAI 分析发现 43% 的预测依赖数据集偏差。
原文摘要(Abstract)

Explainable Artificial Intelligence (XAI) has recently been applied to vulnerability prediction models to understand the decisions made and to improve the transparency of those models. We are the first to leverage XAI explanations to improve vulnerability prediction performance. The performance of vulnerability prediction models relies on the quality of the vulnerability dataset and the machine learning model. We use XAI information to identify biases in vulnerability prediction datasets and limitations in deep learning-based prediction models. Our XAI analysis is based on using a state-of-the-art deep-learning vulnerability prediction model (LineVul) and an explainability algorithm (Layered Integrated Gradients) to generate XAI information. The XAI information that we generated allowed us to improve our understanding of how our models worked, such that we were able to identify important improvement opportunities. Consequently, we present some surprising findings: while LineVul accurately predicted vulnerable functions, in 43% of cases, the use of XAI data allowed us to identify that those predictions were based on dataset biases rather than on actual vulnerable lines. By systematically removing these dataset biases, we achieved a notable performance improvement, increasing LineVul's F-Measure from 92% to 96%. Additionally, the insight we gained from XAI also allowed us to identify a fundamental limitation in LineVul's reliance on CodeBERT, a pre-trained language model limited to 512 tokens. By integrating LongCoder, a pre-trained model capable of processing longer sequences, we achieved an F-measure and MCC increase from 92% and 91%, respectively, to 94%, highlighting the potential for improved handling of complex, long-sequence vulnerabilities. We conclude that XAI has important additional applications that go beyond providing users with information describing the basis of predictions.

链接与引用

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

BibTeX
@inproceedings{paperbot8958,
  title = {Emerging Results in Using Explainable AI to Improve Software Vulnerability Prediction},
  author = {Fahad Al Debeyan and Tracy Hall and Lech Madeyski},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728499}
}