TL;DR
Instead of forcing every training sample through the same optimization algorithm, Self-Routing dynamically tailors the post-training recipe for each sample based on the model's own rollout behavior. By routing samples to reinforcement learning, self-distillation, regularization, or skipping based on their real-time correctness and confidence, this framework significantly boosts LLM reasoning performance without requiring external teachers or extra annotations.
What Problem Does This Paper Address?
Post-training large language models (LLMs) for verifiable tasks—like mathematics or coding—typically relies on a "global recipe." Whether using Reinforcement Learning (RL) or On-Policy Self-Distillation (OPSD), the same optimization mechanism is applied uniformly across the entire dataset.
However, this one-size-fits-all approach ignores a crucial fact: different samples represent entirely different learning states for the model. A sample where the model always fails provides no useful gradient contrast for RL, whereas a sample the model has already mastered doesn't need aggressive optimization.
While prior works have used rollout behavior for selection-centric decisions (like filtering out unhelpful samples or scheduling a curriculum), they haven't questioned how the sample itself should be optimized.
Methods
The authors introduce Self-Routing, a self-contained framework that dynamically partitions a training batch into four distinct optimization queues based on two lightweight signals: rollout accuracy and predictive confidence (derived from token-level entropy).
The framework operates in a four-step loop during each training iteration:
- Rollout Collection: The current policy generates $G$ responses for a given prompt, and an outcome-level verifier checks their correctness.
- Behavior Signal Estimation: The framework computes a smooth membership score for accuracy (low, uncertain, high) and calibrates the model's internal confidence within the batch.
- Recipe Routing: A lightweight router maps these signals to a probability distribution over four distinct training actions:
- GRPO (Group Relative Policy Optimization): Assigned to samples with mixed correctness (uncertain but solvable), where variance provides a strong reward contrast.
- OPSD (On-Policy Self-Distillation): Assigned to low-accuracy, low-confidence failures. Here, sparse rewards fail, so the model acts as a student, imitating an offline-generated teacher trace conditioned on the ground-truth answer.
- REG (Regularization): Assigned to reliably solved, high-confidence samples to preserve stability and prevent policy drift.
- SKIP: Ignores confident failures or noisy samples that offer little useful training signal.
- Recipe Assignment & Policy Update: The batch is partitioned into disjoint queues, and the active losses are aggregated to update the model.
Datasets
- Training:
DAPO-Math-17Kwas used as the core training set for all post-training configurations. - In-Domain (ID) Evaluation: Evaluated on standard mathematical reasoning benchmarks:
GSM8K,MATH-500,AIME24, andAIME25. - Out-of-Domain (OOD) Evaluation: Tested on general reasoning benchmarks to check for task over-specialization:
MMLU-ProandGPQA-diamond. - Additional OOD Reasoning:
SATBench,AutoLogi, andLiveCodeBench-v5were used for broader validation.
Key Insights and Ideas
- The Training Landscape is Dynamic: The optimal training recipe changes drastically over time. Early in training, the model benefits most from OPSD (self-distillation) to learn basic patterns. In the middle stages, GRPO peaks as the model explores and learns from trial and error. In the final stages, Regularization (REG) dominates to lock in gains and prevent over-fitting.
- Accuracy Alone is Not Enough: Ablation studies showed that routing based purely on accuracy thresholds underperforms compared to combining accuracy with confidence calibration. Confidence adds a crucial layer of information regarding how stable the model's current understanding is.
- Mitigating OOD Degradation: Standard math post-training often causes performance to tank on general benchmarks like MMLU-Pro due to catastrophic forgetting or policy drift. Because Self-Routing applies conservative updates (REG/SKIP) to stable samples, it exhibits the lowest OOD degradation among all tested post-training methods.
Key Results
The authors evaluated Self-Routing across multiple scales of Qwen3 and Qwen3.5 backbones (ranging from 0.6B to 4B parameters), consistently outperforming uniform baselines.
- Performance Boosts: On
Qwen3-4B, Self-Routing achieved a macro-average score of 73.7, significantly outperforming Naive-GRPO (66.8) and Naive-OPSD (70.4). - Scaling Advantage: The performance gap between Self-Routing and uniform baselines widens as the base model capacity increases, indicating that stronger models generate higher-quality internal behavioral signals to guide their own routing.
- Efficiency: While more computationally expensive than uniform OPSD due to multi-rollout generation, Self-Routing is significantly cheaper than running uniform GRPO on all samples, striking a favorable balance by selectively allocating heavy compute.
Limitations and Future Work
- Mechanistic Understanding: The routing rules are currently empirically driven and intuitive. The authors note that a deeper theoretical or mechanistic explanation of why specific rollout patterns map best to certain loss functions is still needed.
- Task Scope: The framework was strictly validated on verifiable reasoning tasks (math and code). How well this routing paradigm translates to non-verifiable or open-ended settings like agent planning or creative writing remains an open question.
- Orthogonal Primitives: Self-Routing relies on the inherent quality of its underlying components (like GRPO and OPSD). It does not optimize these individual algorithms themselves, meaning its performance is bounded by the state of those primitives.
Summary updated