Abstract
Reinforcement Learning with Verifiable Rewards (RLVR) is a cornerstone for advancing complex reasoning in Large Language Models (LLMs). However, its success is often bottlenecked by the scarcity of high-quality, difficulty-aligned training data. We present SwS (Self-aware Weakness-driven Problem Synthesis), a framework that identifies a model's specific reasoning failures during an initial RL phase and synthesizes targeted practice problems. By extracting core concepts from failed cases and applying difficulty filtering, SwS ensures a consistent gradient signal for RL algorithms. Our experiments demonstrate significant performance improvements, with absolute gains of up to 10% on rigorous mathematical benchmarks including AIME and MATH-500.
Introduction
The development of reasoning-capable models like OpenAI’s o1 and DeepSeek-R1 relies heavily on Reinforcement Learning with Verifiable Rewards (RLVR). Unlike standard supervised fine-tuning, RLVR requires a massive volume of problems with precise, verifiable answers. Current datasets face three primary challenges: the high cost of human labeling, the lack of verification in synthetic SFT data, and the "difficulty mismatch" problem. In group-relative RL algorithms such as GRPO, if problems are too simple or too complex for the model's current state, the relative advantage scores collapse, leading to vanishing gradients and inefficient training.
The SwS framework addresses these issues by systematically utilizing the problems a model consistently fails on to generate targeted, "Goldilocks-difficulty" practice data.
The SwS Framework
The SwS pipeline operates in three distinct stages to transform model failures into learning opportunities.
- Self-aware Weakness Identification: The model undergoes an initial RL training phase. The system monitors accuracy across epochs, identifying "weaknesses"—problems where the model fails to achieve 50% accuracy and exhibits a negative learning trend.
- Concept Extraction & Recombination: Using an instruction model (e.g., LLaMA-3.3-70B-Instruct), the framework extracts foundational mathematical concepts from these failed instances. These concepts are intelligently recombined based on co-occurrence and embedding similarity to form the basis for new, challenging questions.
- Targeted Problem Synthesis & Verification: New problems are generated from the recombined concepts. A strong reasoning model (like QwQ-32B) provides reference answers via self-consistency. Crucially, a Difficulty Filtering step ensures that only problems where the model achieves moderate accuracy (e.g., 25% to 75%) are retained, providing the most useful gradient signals for subsequent training.
Experimental Setup
The framework was evaluated using several base models, including Qwen2.5-7B and Qwen2.5-32B. Training utilized datasets such as MATH-12k, DAPO, and LightR1 Stage-2. Performance was measured across eight mainstream math reasoning benchmarks: GSM8K, MATH-500, Minerva Math, Olympiad-Bench, Gaokao-2023, AMC23, and the highly challenging AIME 2024 & 2025.
Key Results
The SwS framework yielded substantial improvements across all tested configurations. The Qwen2.5-7B model saw an average absolute performance gain of +10.0%, while the 32B variant improved by +7.7% across all eight benchmarks.
Notably, on the competition-level AIME benchmarks, the SwS-enhanced 7B model achieved gains of +16.7% (AIME24) and +13.3% (AIME25) over the baseline RL model. Analysis of specific domains showed that the model successfully mitigated its identified weaknesses; for instance, the 7B model solved 20% more of the Intermediate Algebra problems it had previously failed.
Discussion and Conclusion
The core insight of SwS is that model failure is a valuable signal for data synthesis. By focusing on the "edge" of a model's capabilities, SwS avoids the pitfalls of random data augmentation. While the pipeline currently relies on strong external models for generation and verification, it demonstrates a clear path toward more efficient RL training for reasoning. Future work will explore more granular weakness identification (e.g., process-level rewards) and extending the framework to general reasoning and Long-CoT models.
Summary updated