mlsanityData to 7 Oct 2026

VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection

arXiv 2512.07533 ↗First posted 8 Dec 2025cs.CR cs.AIcited by 11

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

We propose VulnLLM-R, the~first specialized reasoning LLM for vulnerability detection. Our key insight is that LLMs can reason about program states and analyze the potential vulnerabilities, rather than simple pattern matching. This can improve the model's generalizability and prevent learning shortcuts. However, SOTA reasoning LLMs are typically ultra-large, closed-source, or have limited performance in vulnerability detection. To address this, we propose a novel training recipe with specialized data selection, reasoning data generation, reasoning data filtering and correction, and testing-phase optimization. Using our proposed methodology, we train a reasoning model with seven billion parameters. Through extensive experiments on SOTA datasets across Python, C/C++, and Java, we show that VulnLLM-R has superior effectiveness and efficiency than SOTA static analysis tools and both open-source and commercial large reasoning models. We further conduct a detailed ablation study to validate the key designs in our training recipe. Finally, we construct an agent scaffold around our model and show that it outperforms CodeQL and AFL++ in real-world projects. Our agent further discovers a set of zero-day vulnerabilities in actively maintained repositories. This work represents a pioneering effort to enable real-world, project-level vulnerability detection using AI agents powered by specialized reasoning models. The code is available at~hrefhttps://github.com/ucsb-mlsec/VulnLLM-Rgithub.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 67 of its 109 references that are in the map. First posted on arXiv 8 Dec 2025.

Builds on

67 of 109 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Models25 May
  2. 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMs15 Apr
  3. 2024Qwen2.5-Coder Technical Report18 Sep
  4. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning25 Mar
  5. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan

Other references · 62

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2017Proximal Policy Optimization Algorithmscited by 14,441
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  8. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  9. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  10. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  11. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  12. 2023Let's Verify Step by Stepcited by 3,598
38 more
  1. 2023Qwen Technical Reportcited by 3,273
  2. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  3. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  4. 2024Qwen2 Technical Reportcited by 2,076
  5. 2016Concrete Problems in AI Safetycited by 1,582
  6. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  7. 2022Solving math word problems with process- and outcome-based feedbackcited by 871
  8. 2025Kimi K2: Open Agentic Intelligencecited by 523
  9. 2025LIMO: Less is More for Reasoningcited by 488
  10. 2024ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Searchcited by 338
  11. 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 325
  12. 2025VAPO: Efficient and Reliable Reinforcement Learning for Advanced Reasoning Taskscited by 281
  13. 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 276
  14. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  15. 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 242
  16. 2025Training Language Models to Reason Efficientlycited by 242
  17. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  18. 2024Token-level Direct Preference Optimizationcited by 135
  19. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 133
  20. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
  21. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  22. 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 100
  23. 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 94
  24. 2025GenPRM: Scaling Test-Time Compute of Process Reward Models via Generative Reasoningcited by 94
  25. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  26. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  27. 2023MathPile: A Billion-Token-Scale Pretraining Corpus for Mathcited by 67
  28. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
  29. 2025Self-rewarding correction for mathematical reasoningcited by 67
  30. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  31. 2024Offline Reinforcement Learning for LLM Multi-Step Reasoningcited by 53
  32. 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 47
  33. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  34. 2024Finetuning Large Language Models for Vulnerability Detectioncited by 39
  35. 2024Entropy-Regularized Process Reward Modelcited by 38
  36. 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learningcited by 34
  37. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 30
  38. 2024Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuningcited by 30

50 most cited of 62 All 62 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Reasoning with LLMs for Zero-Shot Vulnerability Detection
  2. 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agents
  3. 2026Three Heads Are Better Than One: A Multi-perspective Reasoning Framework for Enhanced Vulnerability Detection
  4. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications
  5. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data
  6. 2025LLaVul: A Multimodal LLM for Interpretable Vulnerability Reasoning about Source Code
  7. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillation
  8. 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection