CNN achieves higher recall than prior work while keeping high precision on C vulnerability detection
The authors claim their convolutional neural network detects C code bugs with higher recall than Russell et al. while maintaining high precision
AI/ML arXiv 26 Feb 2026 Method Prototype evidence
Published as “Automated Vulnerability Detection in Source Code Using Deep Representation Learning”
Why it matters
Higher precision means security teams can trust alerts and avoid costly false-positive triage, making the approach useful for real-world code review pipelines.
Summary
The paper reports that its CNN-based detector achieves higher precision than prior work at the same recall (e.g., ~0.8 precision at recall 0.4 for BUFFER bugs versus <0.6 for Russell et al.), and can identify real Linux kernel buffer-overflow bugs, though it finds only 1-4 of 41 tested functions depending on training data size, indicating limited recall.
What they found 2
- Higher precision at low recall for BUFFER bugs compared to Russell et al.
“for recall = 0.4, our BUFFER precision is approximately 0.8, whereas in Russell et al. [2], both CWE119 and CWE120 precision for recall = 0.4 is lower than 0.6.”
- Detection of four specific Linux kernel functions when trained on the full Juliet dataset.
“When trained with the complete Juliet dataset, the model exhibited enhanced performance, identifying four functions with the same confidence level.”
Caveats 3
- When trained with 80% of the Juliet functions, the model detected only one out of 41 functions, showing low recall despite high precision.
- Our evaluation strategy is founded on our core objective of enhancing the accuracy of detecting true positive instances. We place substantial emphasis on achieving a high true positive rate, which implies that when our model predicts a bug, we have a high degree of confidence in its accuracy. This focus stems from our priority to minimize false positives and maximize true positives, even if this leads to a lower overall recall rate.
- While we did not discover new Linux kernel vulnerabilities in this particular instance, our research paves the way for such discoveries in the future.
What’s new here 4
- Applies a convolutional neural network to raw C source code for vulnerability detection.
- Groups related CWEs (e.g., 119-122) into a single 'BUFFER' label to improve precision.
- Demonstrates detection of actual Linux kernel bugs, not just synthetic benchmarks.
- Emphasizes a precision-over-recall strategy to reduce false positives in practice.