Why do AI models that ace familiar tasks suddenly break when faced with something slightly new?
Why do foundation models fail at out-of-distribution generalization?
This explores why large pretrained models that do well on familiar tasks often break when the inputs, domain or problem structure move away from what they were trained on, and what the corpus says causes that.
This explores why foundation models that look capable on familiar ground fall apart on new kinds of problems. The corpus mostly agrees on one diagnosis: these models often learn shortcuts that predict well on the training data instead of the underlying rules that would carry over to new situations. The clearest evidence is Do foundation models learn world models or task-specific shortcuts?. Transformers trained on orbital mechanics predicted planetary trajectories accurately. But when probed, they had not learned anything like Newton's laws. They had learned a patchwork of 'laws' that changed depending on which slice of the data you looked at. Arithmetic worked the same way: the circuits matched number ranges rather than running an algorithm. A model like that does fine until it leaves the territory those heuristics were fitted to, and then it fails.
A second explanation comes from treating the model as what it literally is: a machine that predicts the next token by probability. Can we predict where language models will fail? shows that this framing predicts failures ahead of time. Tasks whose correct answer is a low-probability string, like reciting the alphabet backwards or counting letters, are much harder than their logic would suggest. So in practice, 'out of distribution' can just mean 'the right answer is something the model rarely saw written down,' even when the reasoning involved is trivial. You can't always see where these edges are by looking at the task itself, but you can predict them from the statistics of the training text.
The corpus also shows that how you train a model changes how well it generalizes, and the causes are often unexpected. Why does RL generalize better than SFT to new domains? finds that reinforcement learning's well-known edge over supervised fine-tuning on new domains is not really about the algorithm. RL quietly gives less weight to the hardest training examples. In fine-tuning, those hard examples dominate the gradient updates and push the model to memorize, and they account for most of its out-of-distribution losses. A related failure appears in Why do language models collapse into generic templates?: when the reward barely varies between answers to a prompt, the model drifts toward generic template responses that ignore the input. And Does staying close to the base model preserve learning ability? adds a time dimension: models that drift far from their base distribution lose the ability to adapt when the task domain changes later.
The corpus doesn't treat this as hopeless. Can neural networks actually achieve compositional generalization? argues that the old claim that neural networks can't combine concepts in new ways no longer holds, so the open question is how they manage it without explicit symbolic rules. Architecture seems to matter too: Can models learn by looping instead of growing larger? shows that reapplying the same layers several times supports tracking state and combining pieces, which simply making the model bigger doesn't provide. One practical workaround is to stop asking the model to generalize on its own. Can a stronger model lift a weaker one at test time without retraining? got large gains by moving shaky reasoning steps into deterministic code. Taken together, the corpus suggests that much of the out-of-distribution problem comes from the data and training setup rather than from a hard limit of neural networks: which examples dominate learning, which answers the training text makes likely, and whether the architecture can repeat a step instead of memorizing a pattern.
Sources 8 notes
Inductive bias probes show transformers trained on orbital mechanics and games learn predictive patterns, not unified world structure. Fine-tuning reveals nonsensical, slice-dependent laws; circuit analysis shows arithmetic relies on range-matching heuristics, not algorithms.
By framing LLMs as autoregressive probability machines, researchers predicted tasks with low-probability target responses would be systematically harder, even when logically simple. Experiments confirmed predictions like backwards alphabet and letter counting.
RL achieves better OOD generalization not through algorithmic superiority but by implicitly down-weighting hard samples that drive gradient dominance and overfitting in SFT. Hard samples alone account for most of SFT's OOD degradation.
When within-prompt reward variance is low, task gradients weaken and regularization dominates, pushing policies toward generic outputs. SNR-Aware Filtering—selecting high-variance prompts before updates—recovers performance across tasks and scales.
FST-trained models stay up to 70% closer to their base distribution than parameter-only RL, and this reduced drift preserves the model's ability to learn subsequent tasks effectively. Parameter-only approaches stall when task domains change, while low KL drift enables sustained adaptation.
Show all 8 sources
DNNs and LLMs now demonstrate sophisticated compositional processing—complex syntax, logical reasoning chains, original code generation—challenging the classical Fodor-Pylyshyn argument that connectionism cannot support compositionality. The debate shifts from whether neural nets can compose to how they do so without explicit constituent structure.
Models that re-apply layers in recurrent depth outperform larger feedforward networks on reasoning tasks. This works because recursion enables state tracking and compositional generalization that parameter scaling alone cannot achieve, with convergence signals providing natural halting.
A stronger model built inference-time harnesses that nearly doubled weaker model performance on Theory-of-Mind benchmarks without retraining, primarily by moving unstable reasoning into deterministic code and task-specific routing rather than encouraging extended reasoning.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training
- Retaining by Doing: The Role of On-Policy Data in Mitigating Forgetting
- Why Does RL Generalize Better Than SFT? A Data-Centric Perspective on VLM Post-Training
- Mechanistically Interpreting the Role of Sample Difficulty in RLVR for LLMs
- Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?
- Echo Chamber: RL Post-training Amplifies Behaviors Learned in Pretraining
- Faith and Fate: Limits of Transformers on Compositionality
- Sharpening Tax in Post-Training