Learning Robust Reasoning through Guided Adversarial Self-PlayLearning Robust Reasoning through Guided Adversarial Self-Play
GASP trains against fallible contexts; in Table 1, Qwen3-8B's clean solvable GSM8K recoverability under GPT-5 pollution is 98.7%.
- RLVR only optimizes final-answer correctness under clean conditions; once the conditional context is corrupted, misleading, or mildly perturbed, strong reasoning models still follow the error. The authors aim to train detection and repair using only verifiable final-answer rewards, without human step labels or an external teacher.
- The same model alternates as polluter and agent. The polluter rewrites local windows of already-correct trajectories to induce wrong answers; the agent repairs on the same contaminated condition, with reward based only on final-answer correctness. Early successes are scarce, so it imitates repair segments sampled by the policy itself, not external teacher repairs. Tests do not add extra robustness prompts.
- Qwen3-8B Table 1 recoverability: GASP 98.7±0.8, Initial 14.7; contamination is held-out GPT-5, subset is clean solvable problems. Full Table 2 GASP is 85.7±0.7. The authors say self-guidance rises earlier than GASP-T; the figure has no endpoint numbers.
- The paper does not specifically discuss limitations or future plans. Experiments use four open-source models (8B with LoRA), solvable problems filtered from MATH, and GSM8K, MR-GSM8K, MHPP, RUPBench; recoverability corruptions come from held-out GPT-5. The paper does not report the number of filtered problems or the scoring model.
- Evaluated models
- DeepSeek-R1-Distill-Qwen-1.5BDeepScaleR-1.5BQwen3-4BQwen3-8B
- Benchmarks
- GSM8KMR-GSM8KMHPPRUPBenchCommonsenseQAMATHTruthfulQA
- Metrics
- pass@1ACCreasonClean AccuracyRecoverabilityDiagnosabilityReliabilitySelf-Revision
The paper proposes GASP (Guided Adversarial Self-Play), a robustification method that relies only on outcome verification and trains models to identify and repair poisoned contexts. GASP constructs adversarial self-play within a single model: a poisoner induces failure through locally coherent corruption, and another agent learns to diagnose and recover. To mitigate the scarcity of successful recovery samples in early training, the authors propose in-distribution repair guidance, which performs imitation learning on self-generated repairs. On four open-weight models (1.5B to 8B), GASP makes strong but fragile reasoning models robust against misleading and perturbed contexts, and often improves clean accuracy.
Paper analysis
What problem does this paper attempt to solve?
RLVR optimizes only the final answer under clean conditions; fallible contexts cause reasoning failure; GASP uses self-play to train detection and repair.
How to make already problem-solving models detect errors, repair, and answer correctly when the conditional context is fallible, using only verifiable final-answer rewards.
- Scenario: the authors say deployment conditional contexts—prompts, partial solution trajectories, or reasoning from collaborators in multi-agent settings—may be noisy, misleading, or out-of-distribution. The authors paraphrase Li and Goyal (2025): even when the original problem can be solved correctly, inserting short distractions or locally corrupted segments can cause strong mathematical models to fail, and this failure can exhibit inverse scaling.
- Gap in existing training: standard RLVR only optimizes final-answer correctness under clean conditions. The authors argue that self-reflection is a byproduct of this objective, and it does not explicitly train when to distrust context, how to diagnose inconsistencies, or how to recover. MR-GSM8K, MR-Bench, and RUPBench are used to point out another class of fragility under diagnostic tasks and mild lexical/syntactic/semantic perturbations.
- Authors' question: when basic task capability is already present, can one train strong-but-brittle large reasoning models into reasoners robust to fallible conditional contexts, without human step labels or an external teacher during training, using only verifiable outcome rewards.
- This paper's approach: proposes GASP. The same model plays polluter and agent: the former learns locally coherent corruptions that induce downstream failures; the latter diagnoses and repairs on the same contaminated condition. It then imitates repair segments generated by the policy itself to mitigate the scarcity of early successful trajectories.
What related research exists?
Related work covers self-revision, bootstrapped fine-tuning, self-play, and RLVR that optimizes only clean reasoning.
Paraphrased according to the introduction, Section 5, and Appendix A.8 groupings. The authors did not make all of the following methods experimental baselines.
Stress tests for fallible context
- Recoverability: Li and Goyal (2025) insert short distractions or local corruptions into otherwise correct chains of thought and check whether the model still answers correctly. The authors paraphrase: models often treat the visible trajectory as authoritative and follow the corruption, and this failure can exhibit inverse scaling.
- Diagnosability: Zeng et al. (2023; 2024) MR-GSM8K and MR-Bench require judging a given solution, locating the first erroneous step, and explaining it. The authors say models that can solve problems may still collapse here.
- Reliability under perturbation: Wang and Zhao (2024) RUPBench perturbs inputs with lexical, syntactic, and semantic edits. The authors say large drops occur on commonsense and logical tasks; the specific cited drop numbers are not written in the main text.
Self-improvement without extra human annotations
- Inference-time revision: SELF-REFINE (Madaan et al., 2023) and REFLEXION (Shinn et al., 2023) let the model generate natural-language feedback based on task outcomes and revise subsequent attempts without updating weights; the latter also uses explicit memory.
- Training-time bootstrapping: STaR (Zelikman et al., 2022) generates rationales, filters by final-answer correctness, and fine-tunes. SCoRe (Kumar et al., 2024) trains multi-round self-correction with online RL and handles distribution mismatch and collapse in offline self-correction fine-tuning.
- Same-direction citations: Zhou et al. (2025) and Li et al. are grouped into a line of work that "improves its own reasoning with feedback, revision, or new training data." The paper does not further describe these two works' methods.
Self-play fine-tuning
- SPIN (Chen et al., 2024): iteratively generates synthetic responses and optimizes an objective that compares synthetic outputs with human-annotated data.
- Stable variants: Wang et al. (2025) analyze instability in pairwise self-play objectives and propose a triplet variant. The paper only describes it and does not compare numbers with this work.
- Adversarial language games: the introduction states that this paper's adversarial self-play framework comes from Cheng et al. (2024) and is used for robust reasoning. The Related Work main text does not further compare.
Reinforcement learning with verifiable outcomes
GRPO and variants: Shao et al. (2024) use outcome supervision such as final-answer correctness to elicit long chains of thought. Appendix A.8 also mentions DAPO, GMPO, Dr.GRPO, and GSPO modifications to group relative advantages, KL, aggregation methods, or sequence-level ratios, as well as earlier PPO-style RLHF (Ouyang et al., 2022).
Authors' positioning: the authors say these methods mainly make outcome-RL updates on clean reasoning less unstable; in deployment, "conditional context trustworthiness" often does not hold. This paper trains to detect, repair, and recover correct answers.
Baseline methods: the main table compares against the initial checkpoint, adversarial self-play without repair guidance (ASP), and GASP-T with GPT-5 repair guidance. Appendix A.9 also has GASP-P-FIXED with a fixed polluter and GASP-P-GPT-5 with GPT-5 as the polluter during training.
Benchmarks/datasets: GSM8K, MR-GSM8K, MR-Bench code subset MHPP, RUPBench's GSM8K and CommonsenseQA. Training problems come from the MATH training set.
How does the paper address this problem?
GASP pits the same model's polluter against its agent and uses in-distribution repair segments to supplement the sparse final-answer reward.
GASP (Guided Adversarial Self-Play) uses prompts to distinguish the polluter from the agent on the same set of parameters, rewards only whether the final answer equals the reference answer, and adds in-distribution repair imitation. The authors state that robustness comes from training, not from changing prompts at test time.
Problem Setup and Polluted Trajectories
- Operational definition: The authors define robustness as three things: diagnosability (identifying errors), recoverability (repairing and solving), and reliability (resisting perturbations). The capability of interest is: given a partially corrupted chain of thought, still give the correct final answer.
- Train only on problems already solved: 7.5k problems are sampled from the MATH training set; for each problem, K=4 solutions are sampled at temperature 0.7, and kept only if all four final answers are correct. Then one correct trajectory is sampled from the current policy, so that wrong answers mainly reflect being misled rather than not knowing how to solve the problem. The paper does not report the number of problems after filtering.
- Local replacement: The truncation ratio α is taken from {0, 0.25, 0.5, 0.75}. The prefix c₀:α is fixed; after it, a clean window of about 10% of tokens is replaced with w_poll, which is locally stylistically coherent but contains misleading steps or perturbing text. The pollution condition is s_poll=(q, c₀:α, w_poll). The window also has a length cap, and the paper does not give the token count of that cap.
The Agent's Recovery Objective
- Final-answer reward: Completions are sampled after the trajectory on s_poll, and the reward is r(τ;q,a⋆)=I{a=a⋆}, i.e., 1 only if the final answer matches the reference answer. The final reward within a group is normalized by mean and standard deviation, broadcast to all tokens of that trajectory, and then used to update according to GRPO's clip objective.
- Signal scarcity: The authors write in Appendix A.1 that when the early recovery probability p_θ is very small, the probability that at least one success appears among a group of G trajectories is approximately G p_θ. Most groups are all 0, and the group-relative advantage has no direction. Increasing G is more expensive and does not change how hard the recovery behavior itself is to sample.
In-Distribution Repair Guidance
- Guidance objective: An imitation term is added to outcome GRPO, JG−GRPOrec(θ)=JGRPOrec(θ)+λ Jguide(θ). λ is 0.07 except for Qwen3-8B, where it is 0.04, and is linearly annealed to 0 over the last several steps; the paper does not state at which step the annealing starts.
- Why not use teacher repairs as the main signal: The diagnostic prompt gives the problem, the prefix, and a comparison of the clean window with the polluted window, then samples a short repair. The caption of Figure 3 states: at similar lengths, the negative log-likelihood of GPT-5 repairs is higher than that of self-generated repairs, i.e., the student policy assigns lower probability to teacher repairs. Appendix A.3 derives that the leading term of first-order improvement is proportional to the probability of that repair under the current policy. Therefore the imitation objective uses repairs that the policy itself samples under the diagnostic prompt, but adds the likelihood on the deployment condition s_poll (the deployment condition does not include the clean window).
- Representation change: The authors argue that self-generated repairs already have non-negligible likelihood, so the parameter change needed to increase their log-probability is smaller; cloning near-zero-probability teacher repairs would produce larger gradient spikes and potential drift. This claim points to the validation in §4, not to experimental results in this section.
Polluter and Alternating Updates
- Online corruption: The same backbone, under the POLLUTE prompt, writes w_poll based on (q, c₀:α, w_clean). Appendix B gives the full prompt; only the mechanism is recorded here: the edit budget is constrained, and locally misleading rewrites that are not gibberish are encouraged.
- Reward and stop-gradient: After the agent rolls out on s_poll, the polluter's final reward is 1 minus whether the agent answered correctly. Gradients are not passed through the agent trajectory when updating the polluter. Both sides use GRPO; Appendix E states that for each conditional context, G=64 is sampled, with temperature 0.7, top-k=50, top-p=1.0, clip ε=0.2, and KL coefficient β=0. The paper does not separately give G_poll.
- Schedule and test prompt: The agent and polluter each perform 5 consecutive optimization steps before switching. AGENT uses the unmodified deployment system prompt, with no instruction to "be robust" or "check for errors." The authors state that the polluter is trained against the current agent, forming an adaptive curriculum; this claim is a methodological claim, and the paper does not give numerical values for the curriculum difficulty curve.
What experiments did the paper conduct?
In Table 1, after GASP, Qwen3-8B achieves 98.7±0.8 recoverability on clean solvable GSM8K contaminated by GPT-5.
Experimental setup
- Models tested: DeepSeek-R1-Distill-Qwen-1.5B, DeepScaleR-1.5B, Qwen3-4B, Qwen3-8B. The 8B uses LoRA (r=64, base frozen), trained on 4×A100.
- Data: Sample 7.5k problems from the MATH training set; enter training only if all four samples at temperature 0.7, K=4, are correct. The evaluation side uses the same rule to construct the clean solvable subset. The paper does not report the number of problems after filtering, nor the original size of each benchmark.
- Baselines: Initial ckpt; ASP (self-play with only outcome on the pollution condition); GASP-T (imitation objective changed to GPT-5 repairs). Appendix A.9 also has GASP-P-FIXED and GASP-P-GPT-5. The authors claim rollout budgets are matched by group size and maximum generation length.
- Metrics: pass@1. Clean is GSM8K on clean prompts. Recoverability is GSM8K accuracy on the clean solvable subset after pollution by a held-out GPT-5 polluter. Diagnosability is ACCreason on MR-GSM8K and MHPP. Reliability is GSM8K and CommonsenseQA after RUPBench perturbation. The Self-Revision column is named ∆ GSM8K: the table note says accuracy improvement after revision on failed problems, §4.2 says accuracy on the error subset. Avg is the unweighted mean of the metrics in the table.
- Judgment and repetition: Final answers use verifiable correctness. Appendix C gives the scoring prompt for diagnosability; the paper does not state which model executes it. ASP/GASP-T/GASP are 3 training runs (seeds 42, 52, 62), reported as mean±std; Initial is a single run. The sampling temperature for pass@1 is not stated in the paper.
- Implementation: Appendix E: AdamW, bfloat16, cosine learning rate, peak 3×10^{-6}, gradient clipping 1.0; prompt and completion each up to 1024 tokens. Generation uses vLLM, training adapted from TRL.
§4.2 states the main results are summarized in Table 2; the table with Clean and Self-Revision is printed as Table 1, and the full benchmark table is printed as Table 2 in the appendix. The table below follows the printed Table 1.
Main results
Swipe horizontally to read the table
Model Method Clean GSM8K Recoverability MR-GSM8K Perturbed GSM8K R1-Distill-Qwen-1.5B Initial 58.7 12.4 12.1 24.3 R1-Distill-Qwen-1.5B GASP 70.3±2.4 95.6±2.2 87.4±3.1 91.2±2.8 DeepScaleR-1.5B Initial 67.9 14.3 13.8 25.6 DeepScaleR-1.5B GASP 72.4±2.1 98.6±1.1 90.2±2.7 94.3±2.1 Qwen3-4B Initial 77.2 13.8 15.4 27.9 Qwen3-4B GASP 82.9±1.9 98.2±1.2 92.8±2.3 96.1±1.8 Qwen3-8B (LoRA) Initial 84.9 14.7 18.2 33.3 Qwen3-8B (LoRA) GASP 93.7±3.2 98.7±0.8 95.1±1.9 97.8±1.1 Per Table 1. The recoverability, diagnosis, and perturbation columns are all on the clean solvable subset; pollution comes from a held-out GPT-5, not the tested model itself.
- Other columns in the same table: MHPP ACCreason for GASP across the four models is 82.1±3.5, 85.8±3.2, 88.5±2.9, 91.6±2.4; perturbed CommonsenseQA is 91.7±2.9, 92.6±2.4, 94.7±2.1, 96.3±1.6; Self-Revision ∆ is 6.1±0.5, 8.2±0.6, 9.3±0.7, 10.7±0.8 (Initial is 0.2, 0.2, 2.3, 4.2); seven-item Avg is 74.9, 77.4, 80.4, 83.4 (Initial is 18.9, 21.2, 23.9, 27.3).
- Authors' interpretation: The authors claim GASP improves diagnosability, recoverability, and reliability under perturbation, and often improves clean accuracy. In Table 1, clean GSM8K for all four models is higher than their respective Initial. The authors also claim the self-revision success rate increases.
- Guidance source: ASP and GASP-T are higher than Initial but lower than GASP. R1-Distill recoverability: ASP 34.4±4.5, GASP-T 52.7±4.2, GASP 95.6±2.2. Qwen3-8B same column: ASP 44.4±2.1, GASP-T 66.9±2.4, GASP 98.7±0.8.
Full benchmarks and polluter variants
- What was tested: Table 2 in Appendix A.9 reports recoverability, ACCreason, and reliability on the full benchmarks (without clean solvable filtering), and adds a fixed polluter during training and GPT-5 as the polluter during training.
- Results: Qwen3-8B GASP full recoverability 85.7±0.7, MR-GSM8K 72.7±2.1, MHPP 54.1±2.8, perturbed GSM8K 89.8±1.5, CommonsenseQA 94.8±1.2, five-item Avg 79.4; Initial Avg 31.0. Same-table Avg: ASP 46.6, GASP-P-FIXED 52.0, GASP-T 57.5, GASP-P-GPT-5 77.2. Full Avg for GASP across the four models is 53.7, 56.1, 67.7, 79.4.
- Authors' wording: The main text says the full results are reported for completeness; the clean solvable subset is used to separate "collapsing from being misled" from "not knowing how to solve it." The paper does not otherwise explain the numerical differences between Table 1 and Table 2, nor the gap between the learned polluter and the GPT-5 polluter.
Learning curves and representation drift
- Figure 6: Average success rate over training steps for self-guided GASP, GASP-T, ASP (corresponding to the §4.2 capability suite, 3 runs, shading is ±1 std). The authors claim self-guided GASP reaches higher recoverability, diagnosability, and reliability earlier, with higher final scores. The caption gives no per-step numbers.
- Figure 5 / §4.4: 2D PCA on per-layer mean hidden states on a fixed probe, d() is the Euclidean distance between centroids before and after training. The caption says the probe is TruthfulQA / CommonsenseQA; the main-text computation description says TruthfulQA. The authors claim methods with larger drift (e.g., GASP-T) have larger accuracy drops, and low-drift GASP largely preserves TruthfulQA accuracy. The paper does not report d() or the drop magnitudes.
- Connection to Figure 3: The authors attribute the above differences to whether the repair objective falls in the high-probability region of the current policy. Figure 3 only gives the relative level of negative log-likelihood, with no readings.
Maze analogy
- Setup: Deterministic grid, 8-connected actions, reward 1 only if reaching the goal within time limit H. First learn a trajectory from a clean start with GRPO, then continue training from a misleading start. Compare GRPO-only with adding imitation of self-collected repair segments. 5 seeds, 10 rollouts per checkpoint. The value of H is not stated in the paper.
- Figure number: The caption is Figure 4; §4.3 main text calls it Figure 5a–d. The caption says: blue dots are misleading starts, red dots are the goal, stars are clean starts; GRPO-only explores more broadly and deviates, while in-distribution guidance returns to the trajectory faster. (c) is success rate from misleading starts, (d) is clean-start success rate during recovery training. No endpoint numbers are given in the text.
- Authors' interpretation: Without guidance, most batches have no successful trajectories, so group relative advantages are near 0; guidance increases the frequency of early successful batches, after which GRPO can propagate credit along "repair then reuse old skills" and maintain clean-start behavior.
Other ablations and analyses
- Table 1 recoverability, DeepScaleR-1.5B: Initial 14.3, ASP 36.7±5.1, GASP-T 56.0±4.6, GASP 98.6±1.1.
- Table 1 recoverability, Qwen3-4B: Initial 13.8, ASP 40.5±5.2, GASP-T 61.4±4.0, GASP 98.2±1.2.
- Table 2 full recoverability, R1-Distill: ASP 26.3±1.8, GASP-P-FIXED 30.8±1.6, GASP-T 35.5±1.5, GASP-P-GPT-5 74.2±1.3, GASP 78.5±1.2.
- Table 2 full Avg, DeepScaleR-1.5B: Initial 19.9, ASP 26.5, GASP-P-FIXED 31.2, GASP-T 35.8, GASP-P-GPT-5 53.9, GASP 56.1.
- Table 2 full Avg, Qwen3-4B: Initial 24.0, ASP 36.6, GASP-P-FIXED 41.3, GASP-T 46.5, GASP-P-GPT-5 65.4, GASP 67.7.
- Table 1 and Table 2 MHPP, Qwen3-8B GASP: clean solvable subset 91.6±2.4, full 54.1±2.8. The paper does not report a λ sweep or a full-parameter 8B comparison.
What are some points that can be further explored?
The paper does not have a dedicated section listing its limitations or future plans.
Limitations and future directions noted by the authors
- No dedicated section: The Conclusion, Impact Statement, and appendix do not list GASP's unresolved issues as a limitations list, nor do they include Future Work-style plans. The Impact Statement only states that the authors do not foresee specific negative consequences beyond general machine learning progress.
- Teacher guidance analysis: Appendix A.2's title calls the guidance from external teacher fixes a limitation: fixes can be semantically correct but often fall in low-probability regions of the student policy; adding a KL penalty to the reference policy would suppress updates and slow learning. This is the authors' analysis of the teacher approach, not framing GASP as an unresolved problem.
Experimental coverage
- Models: Experimental models are DeepSeek-R1-Distill-Qwen-1.5B, DeepScaleR-1.5B, Qwen3-4B, and Qwen3-8B, totaling 4. The 8B freezes the base and only updates LoRA with r=64; Appendix E does not mention LoRA for smaller models.
- Training and evaluation data: Training problems are sampled from the MATH training set with 7.5k, then filtered by temperature 0.7, K=4, all correct. Evaluation uses GSM8K (clean, recoverable, perturbed, self-revision), MR-GSM8K, MHPP, and RUPBench's GSM8K and CommonsenseQA. Recoverability corruption is generated by a held-out GPT-5 polluter.
- Replicates and protocols: ASP, GASP-T, and GASP each trained 3 times with seeds 42, 52, 62. Maze analogy uses 5 seeds, 10 rollouts per checkpoint. At test time, agents use the unmodified deployment system prompt. Representation analysis uses TruthfulQA, and Figure 5's caption also mentions CommonsenseQA.
- Appendix variants: Table 2 reports the full benchmark, as well as GASP-P-FIXED and GASP-P-GPT-5. GPT-5 is also used as the repair target for GASP-T.
- Quantities not reported in the paper: Number of training problems after filtering, number of evaluation problems per benchmark, pass@1 sampling temperature, which model executes the diagnosability scoring prompt, d(*) in Figure 5 and stepwise success rates in Figure 6, token count for the window length cap, and time horizon H.
Summarize the main content of the paper
GASP uses adversarial self-play and in-distribution repair guidance to improve four open-source models' reasoning performance under fallible contexts.
GASP is a post-training method that uses only final-answer correctness as reward, aiming to enable already problem-solving open-source reasoning models to detect and repair when the conditional context is locally corrupted or mildly perturbed.
- Method: the same model alternates as polluter and agent. The polluter rewrites windows of about 10% of tokens in correct trajectories to make the agent answer incorrectly; the agent recovers on the same contaminated condition. Early successes are too few, so it imitates repair segments sampled by the policy itself, not GPT-5 repairs. Tests do not add prompts like "check for errors."
- Main results: on the clean solvable subset of Table 1, GSM8K recoverability after held-out GPT-5 contamination, GASP: R1-Distill-Qwen-1.5B 95.6±2.2 (Initial 12.4), DeepScaleR-1.5B 98.6±1.1 (Initial 14.3), Qwen3-4B 98.2±1.2 (Initial 13.8), Qwen3-8B (LoRA) 98.7±0.8 (Initial 14.7). In the same table, Qwen3-8B clean GSM8K is 93.7±3.2 (Initial 84.9), and MR-GSM8K ACCreason is 95.1±1.9 (Initial 18.2).
- Comparisons: unguided ASP and teacher-guided GASP-T are higher than Initial but lower than GASP. For example, R1-Distill recoverability is 34.4±4.5 and 52.7±4.2, respectively.
- Full benchmark: Appendix Table 2 does not filter for clean solvable problems. Qwen3-8B GASP recoverability is 85.7±0.7, and MHPP ACCreason is 54.1±2.8. The fixed-polluter Avg is lower than the online polluter.
- Authors' conclusions: the authors say adversarial corruption induces a curriculum, in-distribution guidance accelerates recovery and reduces representation drift, and clean accuracy often rises. Figure 5 and Figure 6 have no endpoint numbers in the text. The paper does not have a dedicated section listing limitations or future plans.