Graph Is the Verifier: Agentic Reinforcement Learning for Interprocedural Vulnerability Detection

Yikun Li, Ting Zhang, Jiakun Liu, Jinfeng Jiang, Yuheng Yieh +7 more
7/29/2026
cs.CRcs.AIcs.SE
rl

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Real-world vulnerabilities often span multiple functions, yet most learning-based detectors classify each function in isolation: on a sample of real CVEs, we find that 71.7% of vulnerable functions require evidence from outside the function to be classified correctly. Agentic reinforcement learning (RL) could close this gap by enabling a model to gather that evidence itself, but it lacks a reliable reward, since a reward defined on the final verdict alone can be obtained without performing any investigation.

Show full abstract

We propose VulAgentRL, an agentic RL framework for interprocedural vulnerability detection built on a Code Property Graph (CPG). The CPG serves two roles: at inference time the policy queries it for callers, callees, dataflow, and other queries, and at training time the same graph verifies the evidence the policy cites. Because every CPG node carries a persistent integer identifier, this verification is an exact comparison rather than a textual match, so the reward credits verdicts that are supported by evidence. We further initialize the policy by distilling teacher investigations, and show that this warm start is necessary, since RL cannot acquire tool-use behavior it never samples. Under a repository-level split that prevents leakage, VulAgentRL outperforms state-of-the-art baselines, including frontier models, on the strict pair-wise-correct metric while issuing fewer tool calls, and its advantage persists on an out-of-distribution corpus and under class imbalance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026graph,
  title  = {Graph Is the Verifier: Agentic Reinforcement Learning for Interprocedural Vulnerability Detection},
  author = {Yikun Li and Ting Zhang and Jiakun Liu and Jinfeng Jiang and Yuheng Yieh and Yixin Yang and Wen Bin Leow and Yide Yin and Yintong Huo and Eng Lieh Ouh and Lwin Khin Shar and David Lo},
  year   = {2026},
  eprint = {2607.26656},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.26656v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.26656.svg)](https://codeofpaper.com/paper/2607.26656)

Discussion