Can an AI nail every answer in training yet still be missing the real logic underneath — until something slightly new breaks it?
Can models predict sequences accurately without learning underlying structure?
This explores whether a model that predicts the next step in a sequence well has actually learned the rules that produce that sequence, or whether it can score well by picking up surface patterns, and how anyone would tell the difference.
This explores whether good prediction means a model has learned the rules behind the data, or whether it can get the right answers without that understanding. The collection's answer is that it often can, and standard scores won't show you which case you're looking at. One study found that models trained with ordinary gradient descent can reach perfect accuracy while their internal organization stays fractured. Every feature the task needs is present and readable, but the pieces aren't arranged in a coherent way. The problem only shows up when inputs are perturbed or shift away from the training data, and those are exactly the cases that typical benchmarks don't test Can models be smart without organized internal structure?.
The gap is clearest when a task needs a real procedure rather than a familiar shape. When LLMs are given iterative numerical problems, they don't run the steps internally. They recognize the problem as looking like something they've seen before and output plausible but wrong values, and this failure persists at larger scales Do large language models actually perform iterative optimization?. Another line of work predicted these failures in advance by treating LLMs as machines that produce likely text. Tasks whose correct answer is statistically unusual, like reciting the alphabet backwards or counting letters, turned out to be harder even though they're logically simple Can we predict where language models will fail?. A related finding: when patterns from training are strong, they can override what's in front of the model, so it ignores contradicting information in its own context Why do language models ignore information in their context?. Put together, prediction tracks what is common, which usually overlaps with what is correct but not always.
Still, models don't learn only surface patterns. Pruning experiments show that networks often split compositional tasks into separate subnetworks, one per sub-function, and pretraining makes that modular structure more consistent Do neural networks naturally learn modular compositional structure?. Models trained on related tasks reuse the same attention heads to handle longer inputs. That shared machinery lets a skill learned on one task carry over to longer sequences on another, which suggests something rule-like is being learned Can length generalization transfer between different related tasks?. How the data is arranged also matters. In-context learning of sequential decision-making only appears when the context holds full trajectories from the same environment, not scattered examples Why do trajectories matter more than individual examples for in-context learning?. Whether structure gets learned depends partly on whether the training data makes that structure visible.
Some researchers are trying to push models toward structure on purpose. Looped architectures re-apply the same layers repeatedly, and this gives them a kind of state tracking that making the model bigger doesn't provide Can models learn by looping instead of growing larger?. Training a model to predict higher-level concepts alongside the next token reached the same training loss with about half the data Can models learn faster by predicting their own concepts?. That hints that plain next-token prediction is an inefficient way to learn structure. One more surprising result: models can pass behavioral traits to other models through data with no meaningful connection to the trait. This works only between models of the same type, which suggests it travels through statistical fingerprints rather than meaning Can language models transmit hidden behavioral traits through unrelated data?. What a model learns from predicting sequences can include signals that have nothing to do with what the data is about.
The practical takeaway is that asking "is the model accurate?" won't settle it. A more revealing question is how the model fails. Try unusual versions of a familiar task, perturb the inputs, or require actual step-by-step computation. A model that learned the underlying structure degrades gracefully under those tests, and one that learned the surface collapses in ways that are fairly predictable.
Sources 10 notes
Models trained with SGD can contain all the linearly decodable features needed for a task while maintaining fundamentally broken internal organization. This makes them vulnerable to perturbation and distribution shift invisible to standard evaluation metrics.
Research shows LLMs cannot perform iterative procedures in latent space. They recognize optimization problems as template-similar and emit plausible-looking but incorrect values, a failure mode that persists across model scale and training approaches.
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.
Research demonstrates that LMs generate outputs inconsistent with their context because parametric knowledge from training dominates over in-context information. Textual prompting alone cannot override strong priors; causal intervention in representations is required.
Pruning experiments reveal that neural networks implement compositional subroutines in isolated subnetworks, with ablations affecting only their corresponding function. Pretraining substantially increases the consistency and reliability of this modular structure across architectures and domains.
Show all 10 sources
Models trained jointly on related tasks reuse the same attention heads to handle length generalization, allowing shorter tasks to extrapolate beyond their training length. Pretrained models already contain this reusable computational scaffolding.
In-context learning for sequential decision-making requires full or partial trajectories from the same environment level, not just isolated examples. This structural property—trajectory burstiness—allows models to generalize across vastly different tasks without weight updates.
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.
An 8.9B model trained to predict both tokens and learned concepts from its hidden states matched OLMo-3-7B's final loss using only 51.3% of training tokens and outperformed it by 2.45 points downstream. This suggests explicit supervision of multi-token semantic structure improves compute efficiency.
Research demonstrates that behavioral traits propagate between models via filtered data bearing no semantic relationship to the trait. The effect is model-specific, fails across different architectures, and persists despite rigorous filtering—indicating the mechanism embeds statistical signatures rather than semantic content.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Break It Down: Evidence for Structural Compositionality in Neural Networks
- Scaling can lead to compositional generalization
- Hierarchical Reasoning Model
- How new data permeates LLM knowledge and how to dilute it
- Self-Supervised Alignment with Mutual Information: Learning to Follow Principles without Preference Labels
- Beyond Accuracy: Evaluating the Reasoning Behavior of Large Language Models -- A Survey
- Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biases
- Towards Monosemanticity: Decomposing Language Models With Dictionary Learning