Mid-Training with Self-Generated Data Improves Reinforcement Learning in Language Models

Aswin Rrv, Jacob Dineen, Divij Handa, Mihir Parmar, Ben Zhou, Swaroop Mishra, Chitta BaralarXiv 2026

TL;DR

Reinforcement learning (RL) in language models often acts as a "distributional sharpener" that amplifies existing behaviors rather than creating new ones, making it highly dependent on the model's pre-existing capabilities. This paper introduces a "mid-training" phase where models learn multiple, diverse problem-solving strategies for the same problem using self-generated data guided by George Pólya’s classic heuristics. This pre-conditioning establishes an $N$-modal token distribution that prevents mode collapse and empowers subsequent RL to effectively combine these strategies, yielding significant performance gains across complex reasoning tasks.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR) has driven massive performance gains in large language models (LLMs) by encouraging longer, self-correcting reasoning chains. However, recent studies reveal a fundamental bottleneck: RL primarily sharpens the selection of paths the model already knows how to take. If a base model lacks strong, diverse reasoning priors before RL training begins, it struggles to explore the solution space effectively, often leading to early mode collapse or poor performance under scaling evaluations (like pass@$k$).

The authors address this challenge by investigating how to enrich a model's reasoning priors before RL begins. Crucially, they do this without relying on expensive human annotations or data distillation from massive, closed-source teacher models.

Methods

The authors propose a bootstrapped synthetic data generation framework called heuristic-guided mid-training, which serves as an intermediate step between standard supervised fine-tuning (SFT) and RL.

  1. Heuristic Prompting: Inspired by mathematician George Pólya’s seminal book How to Solve It, they define 64 distinct problem-solving heuristics (e.g., Analogy, Decomposing & Recomposing, Working Backwards). They prompt the base model to generate 128 candidate solutions per question, explicitly conditioned on these specific heuristics.
  2. Filtering & Selection: The generated solutions are filtered programmatically for final answer correctness (using Math-Verify) and scored by a reward model ($R_\phi$) to ensure they strictly adhered to the requested heuristic. The top-scoring correct solution for each heuristic is retained.
  3. Mid-Training (MT): The base model is fine-tuned on this self-generated dataset ($D_{\text{Pólya}}$), where each question is paired with $n$ distinct, correct solution trajectories. This forces the model to maintain an $N$-modal next-token distribution at critical decision points.
  4. Reinforcement Learning: Finally, they apply Group Relative Policy Optimization (GRPO) to the mid-trained model.

Mathematically, the authors prove that an $N$-modal distribution allows policy-gradient updates to make steady, conservative adjustments. In contrast, a highly confident, uni-modal distribution causes gradient updates to shrink to near-zero once the model becomes confident, locking it into a single path and preventing further learning.

Figure 1: Overview of heuristic-guided mid-training. Top: We draw on Pólya’s problem-solving heuristics, each defined by a textual description and few-shot exemplars demonstrating the heuristic applied to example problems. Bottom right: For each question–heuristic pair, we sample 128 candidate responses from the base model conditioned on the heuristic prompt, filter for correctness via rule-based verification, and select the highest-scoring response according to a reward model Rϕ. Bottom left: The resulting dataset DPólya, containing n solution variants per question, is used to mid-train the base-instruct model before RL.

Datasets

  • Seed Dataset: The GSM8K training set (7,473 question-answer pairs) was used as the root for generating the diverse mid-training data, resulting in 7,112 questions paired with up to 64 correct heuristic variants.
  • RL Training Dataset: DAPO-Math-17k.
  • Evaluation Benchmarks: Six difficult mathematical reasoning benchmarks: Math-500, AIME 2024, AIME 2025, AMC 2023, HMMT 2025, and OlympiadBench.
  • Out-of-Domain (OOD) Evaluation: HumanEval (code generation) and MuSR (complex narrative reasoning over long contexts) were used to test cross-domain generalization.

Key Insights and Ideas

  • Depth Over Breadth in Training Data: Under a fixed training budget, learning 16 different ways to solve a smaller set of problems provides a ~7% relative performance improvement over learning a single way to solve a much larger set of unique problems. Diversity per problem matters more than total problem count.
  • Emergent Compositionality: While the mid-training data teaches individual heuristics in isolation, subsequent RL incentivizes the model to combine them within a single reasoning chain (e.g., combining Bolzano's formal logical style with Decomposition). RL effectively acts as a compositor of atomic skills.
  • Self-Generation Beats Distillation: The self-generated mid-training data achieved a higher diversity score (Vendi Score of 13.81) than data distilled from a stronger teacher model like QwQ-32B (Vendi Score of 10.95). This higher diversity translated directly into superior downstream RL performance, avoiding the verbose and repetitive failure modes common in distilled models.
  • Correctness is Mandatory: Exposing the model to diverse incorrect reasoning paths during mid-training completely tanks subsequent RL performance. The priors must be both structurally diverse and successful.

Key Results

  • Math Benchmarks: Initializing RL with mid-trained models consistently outperformed vanilla RL and STaR baselines, particularly at higher sample counts ($k$). At pass@64, the mid-trained Llama-3.2-3B model achieved absolute improvements of 2.85% on MATH-500, 5.7% on AIME 2024, 6.55% on AIME 2025, and 3.17% on OlympiadBench compared to vanilla RL baselines.
Pass@k performance curves across math benchmarks
  • Out-of-Domain Generalization: Despite using math-centric heuristics for mid-training, the problem-solving strategies generalized remarkably well. On HumanEval, the mid-trained + RL model hit 52.82% (vs 51.14% for vanilla RL). On MuSR's Team Allocations task, where vanilla RL actually degraded the base model's performance (dropping to 23.46%), the mid-trained model achieved 38.57%.

Limitations and Future Work

  • Math-Centric Taxonomy: The heuristics used are heavily anchored in Pólya's mathematical framework. Developing a truly domain-general taxonomy for non-mathematical reasoning (e.g., creative writing or legal analysis) remains an open challenge.
  • Modest Pass@1 Gains: While the pass@64 improvements are substantial, the pass@1 accuracy gains are relatively modest. Mid-training primarily expands the model's search space and latent robustness rather than its immediate top-1 intuition.
  • Surfacing vs. Creating Capabilities: The authors note it is difficult to prove whether mid-training introduces genuinely new capabilities or simply surfaces and consolidates latent behaviors already buried within the massive pre-training corpus.

Summary updated

BibTeX
@misc{rrv2026mid,
  author = {Aswin RRV and Jacob Dineen and Divij Handa and Mihir Parmar and Ben Zhou and Swaroop Mishra and Chitta Baral},
  title = {{Mid-Training with Self-Generated Data Improves Reinforcement Learning in Language Models}},
  year = {2026},
  eprint = {2605.08472},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08472},
}
Figure