Learning Robust Reasoning through Guided Adversarial Self-Play

Shuozhe Li, Vaishnav Tadiparthi, Kwonjoon Lee, Nakul Agarwal, Hossein Nourkhiz Mahjoub, Ehsan Moradi Pari, Lizhang Chen, Amy Zhang, Liu Leqi

TL;DR

While modern large reasoning models excel at generating long chains-of-thought to solve complex problems, they are surprisingly brittle when confronted with flawed or misleading intermediate steps. This paper introduces GASP (Guided Adversarial Self-Play), a framework that trains a single model to both generate subtle reasoning corruptions and learn how to diagnose and repair them. By utilizing a novel "in-distribution repair guidance" mechanism, GASP builds highly robust reasoners using only final outcome rewards, without requiring human labels or external teacher models.

What Problem Does This Paper Address?

Reinforcement Learning from Verifiable Rewards (RLVR) has successfully yielded models capable of deep, multi-step reasoning (such as DeepSeek-R1). By optimizing purely for final-answer correctness, these models naturally learn to double-check their work and self-correct mid-generation.

However, this capability is largely an incidental byproduct of training on clean data. When these models are exposed to a "fallible context"—such as a prompt containing a minor mathematical error, a misleading hint, or a noisy partial solution from a collaborator—they suffer from catastrophic collapse. Instead of questioning the injected error, strong models often treat the flawed trajectory as authoritative, blindly following the mistake to an incorrect conclusion.

GASP addresses this fundamental gap: How do we explicitly train a model to distrust flawed conditioning, diagnose exactly where a reasoning chain went wrong, and successfully recover to find the correct answer?

Methods

GASP tackles this challenge by framing it as an adversarial self-play game instantiated within a single model, optimized via Group Relative Policy Optimization (GRPO). The training pipeline splits the model into two role-conditioned behaviors:

  1. The Polluter: Takes a clean, correctly solved reasoning trace, truncates it at a random point, and generates a locally coherent but logically flawed "corruption" (a polluted window) designed to trick the agent into failing.
  2. The Agent: Receives this polluted context and must diagnose the inconsistency, execute a repair maneuver, and steer the trajectory back toward the correct final answer.
Figure 1. GASP trains robust reasoners that resist misleading context, detect and repair errors, and answer reliably.

Overcoming Learning-Signal Scarcity

Early in training, the agent almost never recovers from a polluted context; it simply follows the polluter's trap. Because standard RLVR relies on group-relative advantages, a batch with zero successful recoveries provides no useful gradient updates.

To fix this, the authors introduce in-distribution repair guidance. Instead of using a powerful external teacher (like GPT-5) to demonstrate how to fix errors, the model prompts itself in a separate diagnostic setting to generate a repair trace. It then uses this self-generated, high-likelihood fix as a lightweight imitation learning target during the RL loop.

Figure 2. A brittle model follows corruptions and fails, while a robust model detects the inconsistency, and repairs to reach the correct answer; corresponding results show GASP markedly improves recoverability, diagnosability, reliability, and clean accuracy.

Datasets

  • Training: 7.5k problems sampled from the MATH training split. Crucially, training is restricted to a subset of problems the base model can already solve cleanly, ensuring the model is learning robustness rather than basic task competence.
  • Evaluation Benchmarks:
  • GSM8K: Evaluates Recoverability (accuracy under a held-out GPT-5 polluter) and Clean Accuracy.
  • MR-GSM8K & MHPP (MR-Bench coding subset): Evaluates Diagnosability (the model's ability to explicitly locate and explain the first erroneous step in a solution).
  • RUPBench (GSM8K and CommonsenseQA subsets): Evaluates Reliability against natural lexical, syntactic, and semantic text perturbations.

Key Insights and Ideas

  • The Pitfall of External Teachers: Intuitively, one might think cloning a smarter teacher model (like GPT-5) would accelerate repair learning. However, the authors show that teacher fixes often land in low-probability regions of the student's policy space. Forcing the model to clone these off-distribution tokens causes massive parameter shifts, leading to gradient bursts and the catastrophic forgetting of unrelated capabilities.
  • The Power of "In-Distribution" Fixes: Self-generated repairs are inherently closer to the model's existing internal representations. Upweighting these familiar paths yields much higher first-order optimization gains and prevents "representation drift."
  • An Automatic Curriculum: Because the polluter and agent co-evolve, the training difficulty scales naturally. As the agent learns to spot obvious errors, the polluter is forced to discover increasingly subtle, insidious ways to corrupt the text.
GASP achieves superior learning efficiency across recoverability, diagnosability, and reliability compared to unguided self-play (ASP) and teacher-guided methods (GASP-T).

Key Results

The authors evaluated GASP across four open-weight models ranging from 1.5B to 8B parameters (including DeepSeek-R1-Distill-Qwen-1.5B and DeepScaleR-1.5B).

  • Massive Recoverability Gains: On GSM8K under corrupted conditioning, GASP boosted the DeepSeek-R1-Distill-1.5B model's accuracy from a brittle 12.4% to an astonishing 95.6%.
  • Enhanced Diagnosability: First-error-step detection on MR-GSM8K surged from 12.1% to 87.4% for the same 1.5B model.
  • The "Cautious Reasoner" Bonus: Training on corrupted data did not degrade performance on clean data. In fact, it frequently improved clean accuracy (e.g., Qwen3-8B clean accuracy rose from 84.9% to 93.7%) because the model naturally adopted a more cautious, self-reflective reasoning style.
  • Preserving Out-of-Domain Knowledge: Hidden-state analysis (via 2D PCA) proved that self-guided GASP minimized representation drift, preserving performance on out-of-domain benchmarks like TruthfulQA far better than teacher-guided alternatives.
PCA shift analysis showing that teacher-guided methods (GASP-T) cause severe representation drift and downstream QA degradation, whereas self-guided GASP preserves original capabilities.

Limitations and Future Work

  • Dependence on Verifiable Rewards: GASP relies entirely on the existence of an automated verifier (like a math or code execution checker) to provide the final outcome reward. Extending this framework to open-ended, subjective, or creative writing tasks remains an open challenge.
  • Decoupled Competence: GASP assumes the base model already possesses the underlying competence to solve the problem cleanly. A compelling direction for future work is exploring how to co-train basic reasoning competence and adversarial robustness simultaneously from scratch.

Summary updated

BibTeX
@inproceedings{li2026learning,
  author = {Shuozhe Li and Vaishnav Tadiparthi and Kwonjoon Lee and Nakul Agarwal and Hossein Nourkhiz Mahjoub and Ehsan Moradi Pari and Lizhang Chen and Amy Zhang and Liu Leqi},
  title = {{Learning Robust Reasoning through Guided Adversarial Self-Play}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BiyhNYlJ62},
}
Figure