From Rollouts to Recipes: Self-Contained Post-Training for LLMs

Yifei Li, Lingling Zhang, Muye Huang, Zihan Ma, Jiashuai Liu, Jun LiuarXiv 2026

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.

Figure 1: Prior behavior-aware post-training mainly uses rollout signals for selection, such as filtering sam- ples, scheduling curricula, mixing fixed recipes, or choosing inference-time answers.

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).

Figure 2: Overview of our behavior-aware recipe routing framework. For each training sample, the current policy collects on-policy rollouts, estimates behavior signals from verifier correctness and model confidence, routes the sample to one training recipe, and updates the policy using the aggregated losses from disjoint recipe queues.

The framework operates in a four-step loop during each training iteration:

  1. Rollout Collection: The current policy generates $G$ responses for a given prompt, and an outcome-level verifier checks their correctness.
  2. 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.
  3. Recipe Routing: A lightweight router maps these signals to a probability distribution over four distinct training actions:
  4. GRPO (Group Relative Policy Optimization): Assigned to samples with mixed correctness (uncertain but solvable), where variance provides a strong reward contrast.
  5. 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.
  6. REG (Regularization): Assigned to reliably solved, high-confidence samples to preserve stability and prevent policy drift.
  7. SKIP: Ignores confident failures or noisy samples that offer little useful training signal.
  8. 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-17K was 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, and AIME25.
  • Out-of-Domain (OOD) Evaluation: Tested on general reasoning benchmarks to check for task over-specialization: MMLU-Pro and GPQA-diamond.
  • Additional OOD Reasoning: SATBench, AutoLogi, and LiveCodeBench-v5 were 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.
Figure 4: Routing ratios of different training recipes during Self-Routing training.
  • 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.

Table 1: Main results on ID mathematical reasoning and OOD general reasoning benchmarks. We report results across different Qwen3 and Qwen3.5 model scales. The best result in each column within the same model group is shown in bold, and the second-best result is underlined.
  • 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

Abstract

Post-training large language models usually applies a single training recipe to all samples, even though the model's own rollouts reveal different sample-level learning states. We propose Self-Routing, a behavior-conditioned post-training framework that uses rollout correctness and confidence to decide how each sample should be optimized. Depending on its behavior state, a sample is routed to GRPO, on-policy self-distillation, regularization, or skipping, allowing training to adapt without external teachers, extra annotations, or additional sampling. Experiments on mathematical reasoning across Qwen3 and Qwen3.5 backbones show that Self-Routing consistently improves over uniform GRPO, uniform OPSD, fixed mixtures, and simpler routing baselines. Further analyses show that the routing distribution changes over training and reduces unnecessary updates on low-signal or already stable samples.
BibTeX
@misc{li2026from,
  author = {Yifei Li and Lingling Zhang and Muye Huang and Zihan Ma and Jiashuai Liu and Jun Liu},
  title = {{From Rollouts to Recipes: Self-Contained Post-Training for LLMs}},
  year = {2026},
  eprint = {2609.01422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.01422},
}
Figure