Frontier Foundry

Model Architectures: failure stories

39 failure stories · 8 concepts · 39 sources · newest Nov 27, 2026

What went wrong when people built with Transformers & Attention, Mixture of Experts, Efficient Attention, State Space Models, Diffusion Language Models, 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.

Transformers & Attention: what goes wrong

6 failure stories

The shelf that outgrew the card

The key-value shelf grows with context and with the number of users served at once. At a 4K context and 80 users it comes to about 42 GB, so a 24 GB card is already out of memory. Harshul Jain, AI Engineer, Sep 8, 2026

LessonTrade context against concurrent users, or shrink what the shelf holds.

The vocabulary shelf outgrew the card

A distillation run kept two full-vocabulary tensors per token. For a 201,088-token vocabulary at 32K sequence length and batch size 4, one teacher-probability tensor was about 50 GB, and a training iteration peaked near 250 GB, more than an H200 or B200 holds. Hugging Face, Aug 10, 2026

LessonThe chooser's output spans the whole vocabulary. Process it in chunks, or cache only the top tokens, rather than materializing it at once.

Covering every mismatched token made the student worse

A student and teacher with different tokenizers cut the same text differently. Strict 1:1 token groups already covered most student tokens. Adding span-level supervision to cover the mismatched groups gave full coverage, yet reduced accuracy, because those gradients were weak or pointed against the strict ones. Hugging Face, Oct 7, 2026

LessonWhen two vocabularies cut text differently, supervise only the positions that line up exactly. More coverage of badly aligned tokens adds noise.

Test-time training needed gradients of gradients that FlashAttention lacks

TTT-E2E meta-learns the model's starting weights so it can keep training on the context it reads. That outer loop needs gradients of gradients, which the standard FlashAttention API does not support, so the authors' implementation trained 3.4x slower than standard pretraining at 8K context. NVIDIA, Jan 9, 2026

LessonBefore adopting a long-context method that trains at test time, budget for a custom attention kernel or start from a standard pretrained transformer, as the authors suggest.

Bigger tiles made the attention kernel 18-43% slower

NVIDIA tuned a cuTile FlashAttention kernel by raising the tile from 64x64 to 256x128, expecting better memory use. Throughput fell 18-43% at every sequence length: compute throughput collapsed to 17.4% and the grid shrank to 512 blocks, because the separate multiply and add and precise math became the bottleneck. NVIDIA, Mar 5, 2026

LessonDo not scale tile size alone; switch on fast math (approximate division, fused multiply-add) so larger tiles pay off, then fix wave scheduling by splitting the causal loop.

The word that came out one step late

To save time, the norm and the matrix multiply were run on two GPU streams. The join of the two streams was left implicit, so the final scale sometimes read an old buffer. Unit tests and perplexity looked fine; in long generations the model repeated a word one step late. Filip Makraduli, AI Engineer, Jul 2, 2026

LessonMake the join explicit: mark the end of each stream and make the post-scale wait for both before it reads.

Transformers & Attention, explained: how it works, part by part.

Mixture of Experts: what goes wrong

4 failure stories

The balance that broke after fine-tuning

A lab trained an MoE whose balanced use of experts held in pretraining. The post-training data looked very different from the pretraining data, and the experts became massively imbalanced. The team fixed it by cranking up the load-balancing coefficient during fine-tuning. Varun Singh, AI Engineer, Jun 30, 2026

LessonA router balanced on one data mix can skew when the data changes; better to put the late data in early than to retune balance deep into training.

The offload that copied the whole bank

A user ran a 35B model with 3B active parameters on one 24 GB GPU through the common Transformers offload. For each token it copied every expert of every offloaded layer to the GPU to use 8 or 10 of them, with no cache. It decoded at 0.16 tokens per second; an engine that kept hot experts on the GPU and streamed the rest reached 82 to 88. Hugging Face, Nov 18, 2026

LessonSparsity saves compute, not bytes. If the experts do not fit, move only what the router picked, through a bounded cache.

Dead experts and overloaded experts

Mistral's VP of Science describes the main risk of training its trillion-parameter MoE: some experts never see a token, so they cannot learn, while others are overloaded and disrupt training; gradients can also flow badly. It took a body of research to balance the traffic, and a tighter GPU budget made it harder. Matt Turck, The MAD Podcast, Oct 22, 2026

LessonWatch per-expert token counts during pre-training and treat balance as something to engineer, not assume; the cost is paid at training time to gain inference speed.

Sharding attention eight ways ran into two KV heads

Serving a 397B MoE on eight TPU cores, Google first sharded attention tensor-parallel 8 ways. Its grouped-query layers have only 2 KV heads, so the heads had to be replicated and the KV cache duplicated on every device, which capped concurrency near 200 requests against the planned 512. Google DeepMind, Jul 14, 2026

LessonShard attention by batch (data parallel) and put the 512 experts on the expert-parallel axis, 64 per device, so the 400 GB of weights is not duplicated and each core keeps the full KV heads. Check head counts against the device count before choosing tensor parallelism.

Mixture of Experts, explained: how it works, part by part.

Efficient Attention: what goes wrong

2 failure stories

Attention amnesia

Chain-of-thought fine-tuning of hybrid linear-attention models improved reasoning but biased attention toward short-range patterns. One 9B model fell from 67.2% to 9.4% on a 256K-token needle test. Hugging Face, Jun 10, 2026

LessonRe-run long-range recall after every fine-tune of a hybrid; restoring the pre-fine-tune query and key weights recovered it at no training cost.

The needle folded away

Teams retrofit trained models to linear attention to escape the quadratic cost. On needle-in-a-haystack and BABILong tests, a simple sliding window with sinks scored 2 to 10 times higher, with no retraining at all; multi-state linear methods that merge old states can irreversibly blur the tokens that mattered. Hugging Face, Aug 31, 2026

LessonTest any efficient layer against a plain window and a needle test before shipping; keep an exact path for far-back facts.

Efficient Attention, explained: how it works, part by part.

State Space Models: what goes wrong

3 failure stories

The hybrid that was cheaper to train but dearer to post-train

Olmo Hybrid gained about 2x in pretraining, but in post-training the results were mixed: gains in knowledge, losses in extended reasoning. Open-source inference kernels for hybrids were immature, so stable scores needed flags (--disable-cascade-attn, --enforce-eager, FP32 state cache) that cut throughput, and the 7B hybrid took more compute for RL than the 7B dense model. Nathan Lambert, Interconnects, Mar 5, 2026

LessonA pretraining win does not carry through the stack; budget for serving kernels and numerical stability, and expect to rework distillation data for a different student.

The request that read someone else's state

During reinforcement learning on a hybrid model, about one request in a thousand came back as gibberish in one serving engine only, late in a run. The scheduler had sent a new request to decode before prefill, so decode read the state slot of an earlier request. Attention writes its cache before reading it; the state reads first. Asaf Gardin, AI Engineer, Jul 2, 2026

LessonServing a state is a different job from serving a cache: stale state is read, not overwritten, and nothing crashes. Compare log-probabilities against a baseline engine.

The linear memory that forgot the far end

A lab built on continuous-time recurrent nets linearized them so they could scale and run in parallel. Applied to language, the state-space versions had trouble learning dependencies at long context: they computed efficiently, but their expressive power fell short of transformers. Latent Space, Sep 18, 2026

LessonA fixed state cannot keep everything. The lab turned to searching over mixes of operators for a target device, keeping some attention.

State Space Models, explained: how it works, part by part.

Diffusion Language Models: what goes wrong

2 failure stories

Fast for one user, dear in a crowd

The speed-up of text diffusion is designed for local, low-concurrency use. In high-QPS cloud serving, autoregressive models can be batched to saturate compute efficiently, so parallel decoding offers diminishing returns and can result in higher serving costs. The throughput edge is strongest at low to medium batch sizes on a single accelerator. Google DeepMind, Jun 10, 2026

LessonUse diffusion where one user is waiting (local, on-device, interactive editing) and keep batched hosted serving on the autoregressive model.

Words locked in together, each chosen alone

When a discrete diffusion model fills many tokens in one pass, it samples each token on its own from that position's marginal. The tokens decoded together are therefore not tied to each other, and the dependencies between them are cut. A block can read well word by word and still not hang together. Hugging Face, Oct 2, 2026

LessonDo not lock every token of a pass as if they were independent. Keep the doubtful ones masked for another pass, or tie the tokens through a shared state.

Diffusion Language Models, explained: how it works, part by part.

Small Language Models: what goes wrong

6 failure stories

The cheap model that cost more

On a coding benchmark, a larger model did about three times better at one-tenth the cost of a smaller model that is much cheaper per token, because outside its training data the small one called tools often and looped. Alex Atallah, AI Engineer, Jun 29, 2026

LessonCheck whether the task is in the small model's domain before routing it there; per-token price is not per-task cost.

The small reasoning model that never stops

Small reasoning models given hard tasks start repeating a sequence of words and never stop. In one small thinking model about 15 to 16 percent of benchmark answers looped after mid-training, supervised fine-tuning barely changed it, preference training cut it and reinforcement learning made it almost disappear. A tiny model in reasoning mode from another family looped over half the time. Maxime Labonne, AI Engineer, Apr 10, 2026

LessonMeasure the loop rate on the task and train against it with preference and verifiable-reward data; do not assume fine-tuning fixes it.

Reinforcement learning alone made small models switch languages mid-solution

Yejin Choi says DeepSeek did not run straightforward RL on its small models but distilled from the RL-trained big one, because RL alone sometimes made a model code-switch between English and Chinese while solving math: the reward checks only the final answer. Sam Charrington, The TWIML AI Podcast, Jan 29, 2026

LessonFor a small model, distill from a stronger model that was trained by RL instead of rewarding the final answer alone.

Broken decks from a small open model

Small open models that can be self-hosted wrote slide decks with titles that vanish into the background, text running off the slide and stacked shapes. Hugging Face, Nov 3, 2026

LessonPut a checker that measures the output in front of the user, and keep a fix only when the checker says it improved.

The bet that models would shrink

Cloudflare launched Workers AI in 2023 on the bet that models would get smaller and network latency would matter more. Models grew from about 7 billion parameters to about 3 trillion instead, and Cloudflare pivoted to serving the giant models in March 2026. Michelle Chen, AI Engineer, Nov 27, 2026

LessonA small model wins a task, not the frontier: size the model to a bounded job you can prove, rather than betting the frontier will come down to your hardware.

Training on full labels taught the small model to invent details

In Google's two-stage intent extractor, the training intents held details the screen summaries did not contain. Training on them taught the small model to fill in missing details, that is, to hallucinate. Google DeepMind, Jan 22, 2026

LessonStrip from each training label whatever the input does not support (Google used a separate model call) before tuning.

Small Language Models, explained: how it works, part by part.

Looped Transformers: what goes wrong

6 failure stories

Inkling 2 Mini reads and reads but does not patch

A poster's agentic-coding run had Inkling 2 Mini scoring below Qwen3.8-27B, with a high no-patch rate, long runs (68k tokens, 23 min per task) and over-reading. A commenter said it needed 512k context instead of 131k to progress, and others suggested better chat templates. This contradicts the maker's fewer-tokens claim for this setup. AINews, Nov 24, 2026

LessonA loop adds reasoning per token but does not guarantee the model finishes the edit. Test the harness, template and context size before trusting a released looped model on agentic tasks.

Fixed loop depth: steeper slope, lower result at matched compute

TaH2's authors post-trained existing looped transformers and measured the accuracy gain per doubling of decoding FLOPs. The slope was often steeper than the non-looped baseline, yet at matched compute the looped models still did worse, and they largely plateaued as depth grew. Hugging Face, Sep 29, 2026

LessonA loop count applied to every token wastes passes. Spend iterations only where a decider says they help, and compare at matched compute rather than matched parameters.

Fixed-depth training breaks KV sharing

The Part II authors found that training at one fixed loop depth breaks KV sharing at decode time. A broad depth prior allows sharing but dilutes supervision at the target depth, so the cache saving has to be designed for at training time. Hugging Face, Oct 6, 2026

LessonIf you want a smaller KV cache at serving time, train with a depth prior that supports sharing; do not bolt sharing on to a fixed-depth model.

Plain depth sharing collapses what layers do

The Gated Recurrent Transformer authors say that standard depth-sharing forces every pass through a uniform transformation. That collapses the diversity unique layers would have (input-grounding early, abstract refinement late) and degrades modeling quality. Hugging Face, Aug 27, 2026

LessonDo not reuse the core bare. Give each pass a way to differ (a gate, noise, a pass-specific key), or the repeats add little.

Residual scaling that ignores repeated visits is unstable

DeepLoop shows that in a looped model one shared update collects gradients from every visit and is read back by those same visits, so the usual untied residual scaling is wrong. At fixed physical depth the DeepNorm exponent must rise from 1/4 to 1/2 as loop count grows in the aligned regime. Hugging Face, Jul 17, 2026

LessonScale residuals by the number of visits, not the count of distinct layers. DeepLoop sets alpha=(2N)^(1/2) and beta=(8N)^(-1/2) for unrolled depth N.

More loops regress: the loop count is not monotonic

LoopCoder-v2 trained 7B parallel-loop coders with different loop counts. Two loops gave broad gains, but variants with three or more loops regressed. Diagnostics showed loop 2 does the productive refinement; later loops make small oscillating updates and reduce representational diversity, while the cross-loop position-offset cost stays about fixed. Hugging Face, Jun 17, 2026

LessonChoose the loop count by gain against cost per loop; for this design that was two. Do not assume that more passes always help.

Looped Transformers, explained: how it works, part by part.

Decision Models (System One): what goes wrong

10 failure stories

The model nobody could host

Cloudflare wanted to run the first decision model on its own network, but the model was closed source. Its product lead says the company took the risk seriously, and trained its own open version in a weekend: licensing, regulatory risk around some open models and a closed supplier were all reasons. Richard MacManus, Latent Space, Nov 17, 2026

LessonA supply you cannot host is a risk; an open decision model is cheap enough to build or fine-tune yourself.

High accuracy, low reliability

SO-Arena scored 21 decision models on 11 domains. It added two reliability tests: does the answer hold when the option set changes, and does the model notice when no option is valid. The model with the best overall accuracy ranked only seventh in reliability. Hugging Face, Nov 13, 2026

LessonAccuracy on a benchmark does not show whether the decision is stable; test shuffled options and the missing answer too.

The cheap judge that missed the hard cases

A paper used a small decision model as a judge. It stayed within 3 points of a large model on two easy benchmarks but trailed by 14.5 points on the hard one, so decisions on hard cases were wrong with nothing to flag them. Sending only low-confidence calls to the large model recovered 99% of the accuracy. AINews, Sep 29, 2026

LessonA fast decision is right on easy cases and wrong on hard ones; read the confidence and send the doubtful ones up.

The classifier fleet nobody could keep up

Glean ran a classifier per customer on T4 GPUs for the first, recall-heavy pass of its security check. With single-tenant deployments for each customer, two or three engineers were needed full time to keep them going, and recall was 31.5%. Replacing the fleet with a decision model took recall to 90.2% and cut cost by more than half. Chinmay Goyal, AI Engineer, Nov 27, 2026

LessonA classifier you have to train, host and tune per customer is a cost; a general decision model replaces the fleet.

The household question that said no to everything

In an entity-matching job on Ohio campaign-finance records, the decision model confidently said no to every one of the household links in the development set. The team did not touch the model or the thresholds: they rewrote the question to say what counts as enough evidence, and the answers on all thirteen development questions went from no to yes. Hrishi Olickel, AI Engineer, Oct 12, 2026

LessonA decision is only as good as the definition inside the question; write what counts as evidence before you tune the model or the cutoff.

Four models, one wrong total

Southbridge checked decision-model answers against a second model from another family: on 200 held-out families the two agreed on 194 and none of those shared answers was wrong, with every error in the six where they disagreed. But in one benchmark four different model families produced the same total down to the cent, because they all shared a sign convention that the answer key did not. Hrishi Olickel, AI Engineer, Oct 12, 2026

LessonUse disagreement between models to aim human review, but do not read agreement as proof: list the blind spots models share and test for them.

The loss that kept falling while accuracy did not

In the Piccolo family the team found that continuous loss reduction can decouple from, and even degrade, discrete decision accuracy; they also found that targeted data curation let 4B to 9B models rival 27B baselines on specialised workflows. Hugging Face, Nov 19, 2026

LessonWatch the discrete decision metric, not the training loss, and curate data for the workflow.

The scale that piled up in the middle

Researchers tested a decision model on an ordinal task: it put 38.8% of all predictions and 51.3% of its errors on the middle label, Neutral, although its accuracy was 74.95% and the true labels were nearly balanced. Across 36 ordinal datasets it used only 67 to 76% of the real range of answers. Hugging Face, Oct 1, 2026

LessonA decision can look accurate and still squeeze a scale toward the middle; check how the whole scale is used, not only accuracy.

Eight percent that was sixty

On 100 labelled agent traces, one group of Clef Flash traces carried an average predicted failure probability of about 8%, yet 60% of them contained failures. Platt scaling moved Perplexity, Liquid d1 and Clef Flash closer to the diagonal, but made OpenAI's probabilities slightly worse. Hamel Husain, Oct 20, 2026

LessonDo not read a decision model's score as a probability until you have plotted it against labelled outcomes, and re-check after any calibration step.

One broad question routed everything to simple

Google asked a decision model one broad Choice question, simple or complex, to route 16 coding-agent tasks. It sent nearly everything to simple, even tasks needing an LRU cache trace. A single atomic yes/no question about sequential steps fixed the split. Google DeepMind, Nov 3, 2026

LessonAsk one narrow yes/no question per factor instead of a meta-judgment about difficulty.

Decision Models (System One), 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-11-27
APA
Han, R. (2026, November 27). Model Architectures: AI failure stories and lessons. Frontier Foundry. https://www.ryanhan.ai/failures/architecture
BibTeX
@misc{han2026-failures-architecture,
  author       = {Han, Ryan},
  title        = {{Model Architectures: AI failure stories and lessons}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/failures/architecture}
}