VulGNN detects software vulnerabilities with near-LLM accuracy while being 100× smaller
VulGNN achieves vulnerability detection performance almost on par with large language models
Software arXiv 31 Mar 2026 Method Prototype evidence
Published as “Software Vulnerability Detection Using a Lightweight Graph Neural Network”
Why it matters
VulGNN can be deployed on commodity hardware in CI/CD pipelines, offering near-LLM detection quality with far lower resource requirements.
Summary
VulGNN matches large language model detection performance while using two orders of magnitude fewer parameters, achieving up to 90% accuracy (up from 62%) with just 10% real-world training data and improving F1 from 31% to ~40% as real data increases to 40%; the evidence is based on evaluations on the large DiverseVul benchmark and synthetic Juliet data, but no statistical significance testing was performed and results vary across evaluation setups.
What they found 3
- VulGNN outperforms the ReVeal GNN and is comparable to large language models while being two orders of magnitude smaller.
“VulGNN is a lightweight graph neural network based deep architecture for code vulnerability detection that outperforms the ReVeal GNN and is comparable to large language models, but with two orders of magnitude fewer weights.”
- Adding 10% real-world DiverseVul samples to synthetic Juliet data raises accuracy from 62% to 90%.
“incorporating even a small amount of real-world vulnerable code examples (∼42K samples or 10% of DiverseVul) to balance the purely synthetic NIST Juliet dataset, significantly improves accuracy from 62% to 90%.”
- F1 score improves from 31% to almost 40% as real-world data increases from 10% to 40% (≈167.7K samples).
“F1 performance continues improving from 31% to almost 40% as the amount of real-world DiverseVul samples increases from 10% to 40% (∼167.7K DiverseVul samples).”
Caveats 5
- results varied across the two evaluation designs.
- we did not perform statistical tests, we cannot formally assess whether observed differences between models are significant or due to chance.
- However, threats remain. In particular, parameter configurations and implementation choices (e.g., preprocessing heuristics, splitting strategies, or default hyperparameters of tools) may have inadvertently influenced the results.
- the findings may not directly generalize to all software domains or to industrial projects.
- our study relied on publicly available vulnerability datasets. However, prior work (including DiverseVul itself) has highlighted significant limitations in these resources: for example, incorrect labels, incomplete mappings of vulnerabilities that span across multiple functions, and inconsistencies across datasets such as BigVul [27], CVEFixes [29], and CrossVul [28].
What’s new here 4
- A graph neural network with only 1.1 M parameters that attains detection performance comparable to much larger LLMs.
- Systematic ablation showing that adding as little as 10% real-world code to synthetic training data dramatically boosts accuracy.
- Cross-project generalization tests (unseen-project evaluation) to assess robustness beyond random splits.
- Public release of the model code and preprocessing pipeline for reproducibility.