Pith. sign in

REVIEW 6 cited by

Improving LLM Reasoning for Vulnerability Detection via Group Relative Policy Optimization

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2507.03051 v1 pith:GAI7B573 submitted 2025-07-03 cs.CR cs.AIcs.CL

Improving LLM Reasoning for Vulnerability Detection via Group Relative Policy Optimization

classification cs.CR cs.AIcs.CL
keywords detectionvulnerabilityllmsreasoningcontextextensivefinetuninggroup
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Improving and understanding the training dynamics and reasoning of Large Language Models (LLMs) has become essential for their deployment in AI-based security tools, such as software vulnerability detection. In this work, we present an extensive study aimed at advancing recent RL-based finetuning techniques for LLMs in the context of vulnerability detection. We start by highlighting key limitations of commonly adopted LLMs, such as their tendency to over-predict certain types of vulnerabilities while failing to detect others. To address this challenge, we explore the use of Group Relative Policy Optimization (GRPO), a recent policy-gradient method, for guiding LLM behavior through structured, rule-based rewards. We enable its application to the vulnerability detection task by redefining its advantage functions and reward signals using annotations from widely used datasets in the field, including BigVul, DiverseVul, and CleanVul. The proposed methodology enables an extensive set of experiments, addressing multiple research questions regarding the impact of GRPO on generalization, reasoning capabilities, and performance improvements over standard supervised finetuning (SFT). Our findings offer valuable insights into the potential of RL-based training to enhance both the performance and reasoning abilities of LLMs in the context of software vulnerability detection.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 6 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Geometric quantification for nonlinear deformation in knitted fabrics

    cond-mat.soft 2026-04 unverdicted novelty 7.0

    A geometric quantification framework reconstructs yarn centerlines and fabric surfaces from sparse data to quantify how nonlinear deformation distributes among stitch reorientation, loop bending, surface bending, and ...

  2. SAGE: Signal-Amplified Guided Embeddings for LLM-based Vulnerability Detection

    cs.CR 2026-04 unverdicted novelty 6.0

    SAGE uses sparse autoencoders to boost vulnerability signals in LLMs, raising internal SNR 12.7x and delivering up to 318% MCC gains on vulnerability detection benchmarks.

  3. CVE-Factory: Scaling Expert-Level Agentic Tasks for Code Security Vulnerability

    cs.CR 2026-02 unverdicted novelty 6.0

    CVE-Factory automates expert-level creation of executable code vulnerability tasks from sparse CVE data, achieving 95% solution correctness and 96% environment fidelity to build LiveCVEBench and over 1,000 training en...

  4. CVE-Factory: Scaling Expert-Level Agentic Tasks for Code Security Vulnerability

    cs.CR 2026-02 conditional novelty 6.0

    CVE-Factory automatically converts CVE metadata into executable vulnerability tasks, yielding a 190-task LiveCVEBench and 1,000+ training tasks that lift fine-tuned Qwen3-32B from 5.3% to 35.8% on that benchmark.

  5. VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization

    cs.CR 2025-11 conditional novelty 6.0

    A 4B LLM trained with judge-scored, difficulty-scaled on-policy RL reaches F1 70.45 on context-aware C/C++ vulnerability detection, comparable to DeepSeek-V3.1, with the caveat that the same judge provided the trainin...

  6. Geometric quantification for nonlinear deformation in knitted fabrics

    cond-mat.soft 2026-04 unverdicted novelty 5.0

    A geometric quantification framework reconstructs yarn centerlines and fabric surfaces from sparse knit data and partitions large deformation into stitch reorientation, loop bending, surface bending, and dilation.