Reproduce “Towards Explainable Vulnerability Detection with Large Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Qiheng Mao, Zhenhao Li, Xing Hu, Kui Liu, Xin Xia, Jianling Sun
Researchers from Zhejiang University and York University introduced LLMVulExp, a framework that specializes large language models for both detecting software vulnerabilities and providing detailed explanations. The framework achieved high detection performance on real-world datasets, such as an F1 score of 98.8% on DiverseVul, and demonstrated that the act of generating explanations can enhance detection capabilities for complex vulnerabilities.
Key insights
- The act of fine-tuning an LLM to generate explanations can inherently enhance its vulnerability detection performance, especially for complex, real-world vulnerabilities, suggesting a deeper understanding is fostered.
- While LLMs can reliably automate objective evaluations of factual accuracy in explanations, human expert review remains crucial for consistently assessing subjective qualities such as clarity and actionability.
- For challenging, imbalanced real-world vulnerability datasets, improvements are primarily bottlenecked by data scale and diversity rather than simply increasing the base LLM's size.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.