mlsanityData to 26 Nov 2026

Peer Pressure: Execution-Verified Co-Evolution of Attacker and Defender Populations for Code Security

arXiv 2610.24896 ↗Submitted 17 Oct 2026cs.CR cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

LLM code agents increasingly ship code with little oversight, yet defenders trained on static vulnerability datasets fall behind adapting adversaries. We co-train attacker and defender instead, and let execution decide every reward: an attacker (Red) edits a real repository and earns nothing unless its patch applies, builds, passes the tests, completes its development task and reproduces a real exploit in an isolated container, whose path also labels the entry point, the critical operation and the trace between them. Peer-Relative Policy Optimization (PRPO) makes both sides populations of LoRA adapters over one frozen base and credits each against same-role peers that faced an identical condition, placing the population inside the policy-gradient baseline rather than the opponent pool, with a tournament preserving diversity. Matching cancels the condition's difficulty: at equal coverage it is worth 2.3 points of balanced accuracy over a baseline computed on other conditions, and it matches a within-policy control at half the verifier spend. PRPO's 7B diff reviewer reaches 64.8% balanced accuracy on four unseen applications in three untrained languages, 5.5 points above supervised security fine-tuning and 4.4 above a frozen frontier reviewer (Claude Opus 4.8), which it leads by 15.8 on the application it trains on. Its 9B repository agent recovers 23 of 172 held-out VulnGym advisories, against 10 after supervised fine-tuning and 7 for the same backbone untrained under the same scaffold, and locates 17 of 43 reachable entry points against 13 for mini-swe-agent with GLM-5.2. Run unchanged on jailbreak defense, the same algorithm matches or exceeds WildGuard's static F1 at equal corpus and model size. Under a judge distinct from its training oracle it cuts attack success from 36.0% to 4.6%, against WildGuard's 8.9%.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 30 of its 46 references that are in the map. Submitted 17 Oct 2026.

Builds on

30 of 46 references.

References · 30

  1. 2017Proximal Policy Optimization Algorithmscited by 16,162
  2. 2024The Llama 3 Herd of Modelscited by 16,114
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,549
  5. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,584
  6. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,502
  7. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
  8. 2024Qwen2.5-Coder Technical Reportcited by 1,301
  9. 2021The Surprising Effectiveness of PPO in Cooperative, Multi-Agent Gamescited by 992
  10. 2021Deep Reinforcement Learning at the Edge of the Statistical Precipicecited by 889
  11. 2017Counterfactual Multi-Agent Policy Gradientscited by 785
  12. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 566
18 more
  1. 2025Absolute Zero: Reinforced Self-play Reasoning with Zero Datacited by 399
  2. 2017Population Based Training of Neural Networkscited by 383
  3. 2017A Unified Game-Theoretic Approach to Multiagent Reinforcement Learningcited by 275
  4. 2025R-Zero: Self-Evolving Reasoning LLM from Zero Datacited by 275
  5. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 240
  6. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 165
  7. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 162
  8. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 152
  9. 2025The Art of Scaling Reinforcement Learning Compute for LLMscited by 121
  10. 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 119
  11. 2016Variational inference for Monte Carlo objectivescited by 85
  12. 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Modelscited by 46
  13. 2025On-Policy RL with Optimal Reward Baselinecited by 40
  14. 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safetycited by 27
  15. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillationcited by 9
  16. 2026PopuLoRA: Co-Evolving LLM Populations for Reasoning Self-Playcited by 6
  17. 2026VulnGym: Benchmarking Coding Agents for Repository-Level Vulnerability Detectioncited by 6
  18. 2026RvB: Automating AI System Hardening via Iterative Red-Blue Gamescited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems
  2. 2025Evolve the Method, Not the Prompts: Evolutionary Synthesis of Jailbreak Attacks on LLMs
  3. 2026CoFiBreak: A Coarse-to-Fine Diversity Reward for Effective Multi-Turn Jailbreak
  4. 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents
  5. 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agents
  6. 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents
  7. 2026Co-Evolving Policy and Reward for Code Generation: A Mechanistic Study of Single-Adapter Drift
  8. 2026Adaptive Instruction Composition for Automated LLM Red-Teaming