Unit 8 of 9 · about 5 hours · explain, measure
Curriculum, mid-training and annealing, and synthetic-data gains and collapse risk
A curriculum changes the order of exposure, not just its total. OLMo 2 provides a concrete late-stage recipe; recursive-data experiments show why a synthetic source needs more than a good average score.
You'll be able to
- Separate a late data-distribution change from learning-rate annealing with a matched continuation experiment.
- Audit synthetic examples for teacher dependence, verification, diversity and evaluation leakage.
- Explain recursive replacement collapse without claiming that every use of generated data must fail.
Covers
Read
In this order, only the parts listed
0 of 2 done
- OLMo 2: annealing and targeted data2 OLMo 2 Furious, Section 4 (Mid-training Recipe)
arXiv:2501.00656v3, Sections 4.1 to 4.5, especially 4.4.2, Evaluating Math Data with Microanneals
Read checkpoint soups as an additional experimental cost and confound. Do not reproduce the large-model training or paid synthetic-data generation; use your small decoder and a bounded local source.
- Shumailov et al.: recursive replacement and its assumptionsThe Curse of Recursion: Training on Generated Data Makes Models Forget (Shumailov et al.; Nature 2024)
arXiv:2305.17493v3, Section 3, What is model collapse?, and Sections 4.1 and 4.2, including the single-dimensional Gaussian example
Keep the finite-sample recursive model separate from claims about verified synthetic math. Stop before the later large-language-model experiments; the Gaussian loop is the CPU reproduction.
Focus on
- The Pretraining Reliability unit on warmup-stable-decay schedules covers the schedule mechanics. From one checkpoint including optimizer state, cross original versus targeted data with unchanged versus annealed learning rate. Match continuation tokens and use the same seed list; score both general and target domains.
- To test order rather than composition, compare a shuffled fixed mixture with a staged schedule using the same source-token totals. The four-way continuation separates local schedule and data effects but does not alone establish that late exposure is better than early exposure.
- For synthetic data, record the teacher or generator version, prompts, sampling settings, verification rule, rejection rate, accepted diversity and total generation cost. Freeze evaluation before generation and check both prompt and answer overlap. A verifier can select its own blind spots.
- Recursive replacement can lose support and amplify sampling or approximation error. Fresh real-data replay, accumulation rather than replacement, external verification and teacher quality change the process. Neither a successful targeted rewrite nor a collapse toy establishes a universal scaling law.
Common mistakes · 3
- Crediting a new mixture for a gain while also changing the schedule, checkpoint selection or model soup. These interventions require separate accounting.
- Reading the in collapse v3 Section 4.1 as the chance of losing an event in one generation. It is the probability of losing it at some point in the recursion, since the chain ends on that state with probability ; one generation of independent draws misses it with probability .
- Saying unbiased sample variance prevents recursive collapse. Conditional unbiasedness is not a guarantee about a typical long recursive path or preservation of support.
Try it yourself
Closed-book, before checking anything
ddof=0 or ddof=1; the MLE conditional expectation multiplies variance by , whereas the unbiased estimator does not have that conditional mean shrinkage. Individual trajectories need not shrink monotonically. Then write the four matched local-decoder continuation rows before training any of them.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Why branch every continuation from the same complete checkpoint?Answer
It fixes the starting weights and optimizer history. Otherwise a data or schedule effect can be a different starting state or a reset-state effect. Record any intentionally reset state as another intervention.
2.What would establish a local data-by-schedule interaction?Answer
The targeted-minus-original data difference changes between the two schedules beyond the declared uncertainty. Report all four cells and their domain slices rather than only the winning continuation.
3.Does the Gaussian toy contradict useful synthetic math data in OLMo 2?Answer
No. The toy studies finite-sample recursive fitting under explicit replacement rules. OLMo 2 uses targeted data, mixed sources and a different training process. Its result is evidence for that recipe, not protection against every recursive-data failure.
You're done when
Your diagnostic distinguishes estimator bias from recursive path behavior, and the matched continuations separate data, schedule and their interaction without hiding general-domain regressions.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 15 more in the section
- The Curse of Recursion: Training on Generated Data Makes Models Forget (Shumailov et al.; Nature 2024)University of Oxford · support
Read Sections 1 to 4 on model collapse: training on generated data loses the tails of the original distribution. Keep it beside every synthetic-data decision; it does not show that any synthetic data collapses a model.
- 2 OLMo 2 Furious, Section 4 (Mid-training Recipe)Allen Institute for AI · support
Read Sections 4.1 to 4.5: learning-rate annealing, the Dolmino mid-training mix, math microanneals and checkpoint soups. It is the curriculum and annealing case the scaling papers lack.
Also in this section
- CS336 Assignment 3 - ScalingStanford University · primary
Read the handout Sections 2 and 3, then fit IsoFLOP profiles and a scaling law to the public
data/isoflops_curves.jsonwith residuals and one held-out prediction. The hosted training API and leaderboard need enrollment, and the tests need postgres and keys, so the graded half is out of reach; add a small local sweep of your own and keep the failed runs. Pair it with the Lecture 9 and 11 slides (lecture_09.pdf,lecture_11.pdfinstanford-cs336/lectures). - Scaling Laws for Neural Language ModelsOpenAI · required
Read Sections 1 and 2 (the three power laws in Equations 1.1 to 1.3), Figure 1 and Section 6 (optimal allocation). Reproduce one fit and list every assumption that differs from your experiment: fixed batch size, one schedule length and single-epoch data. Read Porian et al. before trusting its allocation rule.
- Training Compute-Optimal Large Language ModelsGoogle DeepMind · required
Study Figure 1, Section 3.2 (IsoFLOP profiles over nine compute budgets), Section 3.3 (the parametric loss in Equation 2) and Appendix D.2 (the fitted constants in Equation 10). Recreate the conclusion only within the range your run matrix supports; read Besiroglu et al. on the Approach 3 fit.
- Resolving Discrepancies in Compute-Optimal Scaling of Language Models (Porian et al., 2024)Tel Aviv University and University of Washington · required
Read Figure 1 and Sections 3 to 5: the Kaplan and Chinchilla allocation gap closes once last-layer FLOPs, warmup length and scale-dependent optimizer tuning are fixed. It also gives learning-rate and batch-size fits and shows AdamW beta2 matters at small batches.
- Chinchilla Scaling: A Replication Attempt (Besiroglu et al., 2024)Epoch AI · support
Read all seven pages after Chinchilla: the Approach 3 estimates disagree with Approaches 1 and 2, the reported intervals are implausibly narrow, and refitting reconstructed data restores agreement. It targets Approach 3, not the IsoFLOP evidence.
- DeepSeek LLM, Section 3 (Scaling Laws)DeepSeek-AI · support
Read Sections 3.1 and 3.2: batch-size and learning-rate trends with compute, and the model and data allocation fit. Its data mix is bilingual, so the exponents are specific to it.
- Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance (Ye et al., 2024)Fudan University · support
Read Section 3 (the exponential law for per-domain loss as a function of mixture proportions, Equations 1 and 6) and Table 1. It interpolates within tested proportions; it does not extrapolate.
- The Smol Training Playbook - Scaling Laws and Data MixtureHugging Face · support
Read the scaling-laws section and the SmolLM3 data-mixture ablations for how a small team chose model size, token count and mixture under a fixed budget. Cite section names; the numbers are specific to SmolLM3.
- Modern LLM Notebook - Scaling LawsWalking Labs · support
Use
notebooks-en/part2-training/14-scaling-laws.ipynbfor a compact bridge among Kaplan, Chinchilla, muP, FLOPs and memory. Treat its calculations as exercises to verify, not as evidence for extrapolation; its prices are dated samples. - TensorTonic - Scaling Laws I and IITensorTonic · support
Solve Fit a Data Power Law with a Noise Floor (
cs336-l09-fit-data-power-law), Extrapolate Data-Mixture Scaling Curves (cs336-l09-data-mixture-extrapolation), Estimate Critical Batch Size (cs336-l09-critical-batch-size), Recover an IsoFLOP Compute-Optimal Frontier (cs336-l09-isoflop-optimal-frontier), Fit Learning-Rate and Batch-Size Scaling (cs336-l11-hyperparameter-scaling-fit) and Diagnose muP Width Invariants (cs336-l11-mup-invariant-diagnostics). Supplied-data drills are preparation, not a measured scaling result. Public test cases check the listed edge cases, not gradients or the hidden grader, so keep your own tests beside each solution. - Scaling Data-Constrained Language ModelsHugging Face Research · depth
Read Section 3 (the data-constrained law, in which repeated tokens lose value at a fitted rate), Appendix A (its derivation) and Sections 5 and 6 (up to about four epochs of repetition cost little; returns fall quickly after that), then inspect the reproducibility repository (https://github.com/huggingface/datablations). Use one small repeated-data experiment to challenge the compute-optimal assumption.
- DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining (Xie et al., 2023)Stanford and Google · depth
Read Section 2 (Group DRO over domain weights with a small proxy) and Section 4. A larger proxy can do worse, so proxy scale does not transfer automatically.
- Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws (Sardana et al., 2024)Databricks · optional
Read Section 2 (training plus inference cost for a target quality and inference demand) and Sections 4 and 6 (results and real-world cost). Its demand model is illustrative.
- Applied Science Research Laboratory - Scaling StudyRoadmap-Final · support
Borrow the preregistration, matched-budget, uncertainty, residual and negative-result requirements for the scaling experiment.
- Maximal Update Parametrization: width-transfer checksMicrosoft Research · support
Read Basic Usage, How mup Works Under the Hood, Current Limitations, and Coord Check through Tips for Coord Check at commit 1981497. Use as a design reference, not an installation requirement; skip Wider is Always Better, which is not a finite-run guarantee.