Introduction
Large Reasoning Models (LRMs) like DeepSeek-R1 and Qwen3 leverage Chain-of-Thought (CoT) processing to solve complex tasks. While effective for reasoning, this sequential process introduces a vulnerability: the "snowball effect." A single flawed thought can amplify throughout the reasoning chain, leading to either harmful outputs or unnecessary refusals. This paper introduces AdvChain, an adversarial tuning paradigm that builds "cognitive immunity" by training models to recognize and correct their own reasoning errors.
The Snowball Effect in Reasoning
Standard safety alignment often relies on "Safety CoT Tuning," where models imitate perfect, error-free reasoning paths. However, this makes models fragile. If a model deviates slightly from the "perfect" path—perhaps by briefly rationalizing a harmful request—it lacks the mechanism to recover.
Empirical analysis shows that harmful outputs rarely begin as such. Instead, they often start with safe analysis but rapidly escalate in later steps. Similarly, helpful processes can be derailed by minor safety hesitations, leading to over-refusal of benign prompts.
Methodology: AdvChain
To address this, AdvChain shifts the focus from imitation to correction. The core of the method is the construction of an adversarial training dataset consisting of two types of samples:
- Temptation-Correction (T-C) Samples: These samples start with a "temptation" step where the model begins to justify a harmful request, followed by a "correction" step that refutes the logic and returns to a safe refusal.
- Hesitation-Correction (H-C) Samples: For benign inputs, these samples include a "hesitation" step (unnecessary safety concern) followed by a correction that recognizes the prompt's legitimacy.
By fine-tuning on these self-correcting trajectories, the model learns to break the "cognitive inertia" of flawed reasoning.
Experimental Results
AdvChain was evaluated using a highly efficient dataset of just 1,000 samples (800 T-C and 200 H-C). Despite the small data scale, it achieved state-of-the-art results:
- Robust Safety: On the WildJailbreak-AdvHarm benchmark, AdvChain-tuned DeepSeek-R1-7B reduced the Attack Success Rate (ASR) to 9.00%, significantly outperforming STAR-1 (17.33%) and SafeChain (24.00%).
- CoT-Hijack Deflection: In a new benchmark where reasoning prefixes are manipulated to favor compliance, AdvChain models maintained safety (9.33% ASR) while conventional models collapsed (e.g., STAR-1 at 54.67% ASR).
- Reduced Over-Refusal: On XSTest, AdvChain dropped the Over-Refusal Rate (ORR) to 18.00%, compared to 42.00% for STAR-1, proving that robustness does not require hyper-defensiveness.
- Preserved Utility: Performance on standard reasoning benchmarks like Math-500 and AIME 2024 remained on par with base models.
Conclusion
AdvChain demonstrates that teaching models how to recover from mistakes is more effective than simply teaching them to be perfect. By injecting adversarial "temptations" and "hesitations" into the training process, researchers can create LRMs that are both safer and more helpful, achieving high data efficiency without sacrificing core reasoning capabilities.
Summary updated