[Paper Review] PRISM: Demystifying Retention and Interaction in Mid-Training
PRISM empirically analyzes mid-training for large language models across multiple families, showing that a retention-aware mid-training phase with ~27B high-quality tokens consistently boosts reasoning in math, code, and science and greatly enhances RL effectiveness, while interactions with data composition and architecture are thoroughly characterized.
We present PRISM, a comprehensive empirical study of mid-training design choices for large language models. Through controlled experiments across seven base models spanning four families (Granite, LLaMA, Mistral, Nemotron-H), two architecture types (dense Transformer and attention-Mamba hybrid), and scales from 3B to 24B parameters, we show that mid-training on approximately 27B high-quality tokens yields consistent gains of +15 to +40 points on math, +5 to +12 points on code, and +6 to +13 points on science benchmarks while preserving general performance. The full PRISM to RL pipeline improves macro-average across six reasoning benchmarks from under 12 to 29-42 (a 3-4x improvement), whereas RL applied directly to most of the base models remains substantially less effective, with AIME scores near zero. Data composition matters most at mid-training, not RL: including science data during mid-training unlocks +17 to +28 point GPQA-Diamond gains during RL, while changing the RL mix produces less than 2 point differences. Mechanistically, mid-training densely restructures over 90% of model weights, while RL makes sparse, front-loaded refinements to approximately 5% of parameters. Representation analysis (CKA) confirms that RL consistently preserves mid-training's representational geometry (over 0.998 CKA) across architectures. Crucially, RL applies identical weight changes regardless of starting point, yet only succeeds on mid-trained models, consistent with mid-training placing the model in a configuration from which RL can effectively improve performance. Our results demonstrate that retention-aware mid-training is highly effective for reliable reasoning enhancement and provide practical guidance for designing robust mid-training pipelines.
Motivation & Objective
- Investigate how mid-training data composition, timing, and architecture affect retention of general abilities and domain-specific reasoning.
- - Assess how mid-training interacts with downstream reinforcement learning (RL) across model families and scales.
- - Identify practical guidelines for designing robust retention-aware mid-training pipelines.
Proposed method
- Conduct controlled, large-scale experiments (7 base models, 4 families, 2 architectures, 3–24B params).
- Use targeted mid-training mixtures totaling ~27B high-quality tokens spanning general web, math, code, and science data.
- Evaluate with a broad benchmark suite (general leaderboards LB-V1/LB-V2, long-context RULER, code, math, science benchmarks).
- Compare full PRISM→RL pipeline against RL applied directly to base models to isolate interaction effects.
- Perform ablations on long-context restoration, context length during mid-training, and token budget.
- Carry out mechanistic analyses (weight divergence, CKAs, entropy, RL weight trajectories) across model families.

Experimental results
Research questions
- RQ1How do mid-training data mixtures (Math, Code, Science) affect retention of general abilities and domain-specific reasoning across architectures and scales?
- RQ2How does mid-training interact with downstream RL, and is the benefit contingent on starting from a mid-trained state?
- RQ3What are the practical design choices (timing, context length, token budget) that optimize mid-training gains without sacrificing general performance?
- RQ4What mechanistic differences exist between mid-training and RL (e.g., scope of weight changes, representation geometry)?
Key findings
- - Mid-training yields consistent reasoning gains across models: +15 to +40 points on math, +5 to +12 on code, and +6 to +13 on GPQA-Diamond science benchmarks, while preserving general performance.
- - The full PRISM→RL pipeline raises macro-average across six reasoning benchmarks from under 12 to 29–42 (3–4× improvement); RL on base models is far less effective.
- - Data composition matters most at mid-training: including science data during mid-training yields +17 to +28 GPQA-Diamond gains during RL; changing RL mix yields <2-point differences.
- - Benefits generalize across architectures and scales; both dense Transformers and attention-Mamba hybrids see consistent gains from PRISM.
- - RL changes are front-loaded and sparse (~5% of parameters), while mid-training densely restructures >90% of parameters, indicating distinct optimization mechanisms.
- - RL preserves mid-training representations (CKA > 0.998) across architectures; mid-training effects are model-specific in representation, but RL is effective primarily on mid-trained models.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.