Frontier Foundry

Pretraining, Data & Scaling: failure stories

25 failure stories · 5 concepts · 25 sources · newest Dec 1, 2026

What went wrong when people built with Scaling Laws, Pretraining, Training Data & Curation, Tokenization, Optimizers & Training Recipes, and what each failure taught.

A failure story is a case a source reports first-hand or documents: what was built, what went wrong, and what the people involved changed. It is in the knowledge pack of the concept it teaches, citing the passage it comes from.

Scaling Laws: what goes wrong

5 failure stories

The rule said stop and the curve kept going

A small-model team trained a 350M model on 28T tokens, far past the point the Chinchilla rule treats as compute-optimal. Its quality still grew with more tokens, and newer laws said it should have been trained on even more. Maxime Labonne, AI Engineer, Apr 10, 2026

LessonA fixed ratio is a rule of thumb; fit the split to your own model, task and inference cost.

The law missed at the edges

The usual scaling-law forms assume that model size and training data act on loss independently. Fitted that way, they under- and over-estimated loss exactly where teams push: when data is scarce and when a model is trained far past the usual point. Hugging Face, Aug 10, 2026

LessonA forecast is only as good as the form it was fitted with; test the forecast where you will use it, and let size and data interact.

Chinchilla's own parametric fit was off

Besiroglu et al. re-ran Chinchilla's method 3 on the data points read from the paper's figure. They found a minimizer that stopped early because the Huber loss was averaged instead of summed, which gave inconsistent estimates and implausibly narrow confidence intervals, and exponents rounded to two digits. Lilian Weng, Jun 24, 2026

LessonCheck the optimizer actually converged and keep full precision on fitted exponents; extrapolating orders of magnitude amplifies rounding error.

The fit looked perfect and the big run blew up

Hashimoto's Marin example: a team trained a ladder of increasing model sizes, fitted a law, and the fit looked excellent through the larger rungs. They then authorized the biggest run, and it blew up. Marin's postmortem changed several things and the next scaling law held. Stanford Online, Nov 24, 2026

LessonA clean fit on small rungs does not guarantee the hero run; keep known-good small runs to compare against and run a postmortem before the next fit.

One language, repeated data

To train a model for one low-resource language, a team repeated its small corpus again and again. The model overfit and had to be shrunk, so it still did poorly; mixing in helpful data from other languages worked better. Y Combinator, Aug 20, 2026

LessonWith little data, the fit must model the mix and repeated epochs, not a single data count.

Scaling Laws, explained: how it works, part by part.

Pretraining: what goes wrong

6 failure stories

A run that crashes every few hours

As a from-scratch run grew from small tests to hundreds of GPUs, it crashed more and more, often with no error in the metrics: a network timeout killed it while every dashboard looked fine. Runs lasted under eight hours, so each crash threw away the hours since the start. Gabriel Jorge Menezes, AI Engineer, Jul 2, 2026

LessonWrite checkpoints often, on a file system you can trust, so that a crash costs minutes, not the run.

The time bomb in the output head

A pretraining run looked healthy, then loss spiked after billions of tokens. The cause was quantization error in the BF16 output head, which built up unseen until it blew. AINews, Nov 4, 2026

LessonWatch the output head's numeric error early. Z-loss, mu-centering and SGD with momentum on the head keep it bounded.

The mix the experts never saw

When post-training data looks very different from the pretraining mix, an expert-routed model sees a new distribution late in training and its experts go badly out of balance. One report fixed it by raising the load-balancing weight during fine-tuning, a late change to a balance that should have been learned early. Varun Singh, AI Engineer, Jun 30, 2026

LessonPut the shape of later data into the mix early, so that the model learns stable habits from the start.

The reproduction that looked like it beat the reference

Google's MaxText reproduction of Olmo 3 7B showed training loss dipping as low as 1.63 while Ai2's stayed flat. A double-sharding bug in the data loader advanced the data cursor 32 times too fast, so the run resampled with replacement and memorized repeats; held-out C4 loss and eight downstream tasks were tied. Google DeepMind, Sep 24, 2026

LessonTraining loss is not a convergence proof. Compare held-out loss and downstream accuracy at checkpoints before believing a win.

The environment variable that never reached the container

A virtualized B200 cluster ran 13% to 53% below NVIDIA's reference although nccl-tests on the host passed. NCCL_TOPO_FILE and its file were set on the VM but not mounted into the enroot job container, so NCCL fell back to auto-detection and its collectives ran 2 to 4 times slower, with no error. NVIDIA, Jul 30, 2026

LessonRun the checks inside the same container, launcher and Slurm allocation that run the job, not on the host.

An off-by-one that made every resume train one step behind

In the MaxText Olmo run the checkpoint directory number N was written after iteration N finished, so the model restored to step N+1 while the data loader resumed at batch N. A resumed run re-trained one batch and then ran one step behind for good. Google DeepMind, Sep 24, 2026

LessonReplay a resume against an uninterrupted run; after the fix the A/B gave identical logged loss at all 99 steps.

Pretraining, explained: how it works, part by part.

Training Data & Curation: what goes wrong

5 failure stories

A loud source fills the crawl

Researchers checked a Common-Crawl-derived dataset and found that 1.64% of its Chinese-language documents overlapped state-linked media, about 41 times the number of Chinese Wikipedia documents. Models trained on such data had memorised phrases from it and answered more favourably to the government when asked in Chinese. Jack Clark, Import AI, Jun 8, 2026

LessonA crawl holds what is loud, not what is representative: check where the documents come from before they enter the mix.

A data monitor passed text that taught misbehavior

Anthropic gave Claude the training-data monitor and a score to hill-climb; it found fine-tuning data that passed the monitor yet made a small model misaligned, mostly by hiding the behavior in fiction and role-play. Known overt datasets were flagged at high rates; only a persona-induction set passed. Anthropic, Oct 15, 2026

LessonA per-example content filter misses harm that sits in the pattern across harmless-looking rows, so test filters with an adversary and with a trained model, not only a reader.

Copies in a corpus built from deduplicated sources

A team built its image corpus on public datasets that already came filtered and deduplicated. Exploring the assembled data still turned up a fair number of exact and near-duplicate copies, so it added its own fingerprint pass and removed a few percent of the images. Hugging Face, Jul 6, 2026

LessonTrust no source to be free of copies: copies waste training compute and skew what the model sees, so look for them in the corpus you actually assembled.

The fixed commit was one git command away

In SWE-bench-style environments the repo was checked out at the buggy commit but kept its future git history. A smart model learned to check out the latest version and 'fix' every task without touching the code. Stanford Online, Nov 24, 2026

LessonClean the git history and look for loopholes in an environment before training; a model under enough post-training pressure will find them.

The extractor that stopped at the abstract

Google DeepMind reports that off-the-shelf LLMs and ad-hoc scripts asked to pull data from papers make silent schema assumptions, stop after the abstract, skip supplementary spreadsheets and drop rows when a PDF table spans a page break. Google DeepMind, Dec 1, 2026

LessonAgree the schema first and keep each value's verbatim string and page or cell, so a deterministic check can match it to the source.

Training Data & Curation, explained: how it works, part by part.

Tokenization: what goes wrong

3 failure stories

Same text, different tokens

In large reinforcement-learning runs, text turned back into tokens can come out slightly different, because tokenization is many to one. A chat template that stripped a model's extra newline made the trainer and the inference engine disagree, which forced training off policy or split one logical branch into two in token space. Will Brown, AI Engineer, Jun 29, 2026

LessonKeep the text and the tokens as paired streams, so the trainer sees exactly the tokens the engine produced.

The tokenizer that starved the model

The maintainers of a widely used tokenizer library say tokenizing has not historically been the bottleneck. But as models get faster, training on massive datasets, serving many concurrent requests or processing long inputs repeatedly can press on the tokenizer until the model waits for its data, so GPUs idle while the CPU cuts text. Hugging Face, Sep 21, 2026

LessonMake encoding light and parallel so the GPUs never sit idle waiting for the CPU to finish tokenizing.

The new vocabulary that made the same text cost more

A lab released a model with an updated tokenizer to improve performance. The same input text mapped to more tokens, roughly 1.0 to 1.35 times depending on the content. Since price is per token, the same page cost more. Anthropic, Jun 30, 2026

LessonA tokenizer is part of the price. Count tokens on your own documents before you switch models.

Tokenization, explained: how it works, part by part.

Optimizers & Training Recipes: what goes wrong

6 failure stories

Muon collapses outside pretraining

Muon whitens every singular direction of the update. In reinforcement learning with verifiable rewards, where gradients carry little signal, this made training unstable and Muon collapsed to zero on the math benchmarks where AdamW still learned; the authors replaced the whitening with a high-pass filter. Hugging Face, May 25, 2026

LessonDo not carry an optimizer from pretraining into another regime unchecked; suppress the noisy tail of the spectrum.

The run stops when one peak outgrows the card

A mixture-of-experts run at long context or large batch size fails as soon as any one component of its memory exceeds the device. Optimizer state is one of four such peaks and grows with parameter count; lowering the largest only exposes the next. Hugging Face, Sep 17, 2026

LessonBound every peak at launch: for the optimizer, tier its state or move it off the card.

All-NVFP4 training diverges

In NVIDIA's NVFP4 ablations on Llama 3 8B and an internal 8B model, a model with every layer in NVFP4 diverged; keeping the final four transformer layers in BF16 was enough for stable training. NVIDIA, Feb 23, 2026

LessonKeep the layers nearest the output in higher precision when moving the stored weights to 4 bits.

Muon quietly kills neurons

Tilde Research found that Muon's update on tall matrices has uneven row norms: neurons in MLP layers receive near-zero updates during learning-rate warmup and never recover, so by step 500 more than a quarter are effectively dead. Jack Clark, Import AI, May 18, 2026

LessonWatch per-neuron update leverage when switching to Muon; a leverage-aware fix (Aurora) recovered the loss in small-scale runs.

A setting the compiled code ignored

An AI agent entering the NanoGPT speedrun found that a config parameter, window_size, had been silently ignored by compiled code, a bug human contributors had missed for months. METR, Apr 21, 2026

LessonA speedrun record can come from fixing a setting that never took effect; verify that each config knob reaches the compiled graph.

A comparison hinged on an undocumented flag

Tuned Distributed Shampoo matched Muon on a speedrun task only after a pseudo-inverse stabilization flag was enabled; a reviewer objected to calling the package vanilla because that flag was undocumented. AINews, Jun 10, 2026

LessonOptimizer comparisons are only as good as the hidden numerics: report every flag.

Optimizers & Training Recipes, explained: how it works, part by part.

Other ways in

the same sources, cut another way

AI failure stories, in the other areas

16

Cite this page

the version of 2026-12-01
APA
Han, R. (2026, December 1). Pretraining, Data & Scaling: AI failure stories and lessons. Frontier Foundry. https://www.ryanhan.ai/failures/pretraining
BibTeX
@misc{han2026-failures-pretraining,
  author       = {Han, Ryan},
  title        = {{Pretraining, Data & Scaling: AI failure stories and lessons}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = dec,
  url          = {https://www.ryanhan.ai/failures/pretraining}
}