When a language model solves a multi-step problem that comes with irrelevant sentences attached, the usual explanation for its failures is that it was "distracted": the extra text dilutes attention, and accuracy falls as distractors pile up. We propose a sharper and testable explanation. A model that cannot first throw away the irrelevant parts of a problem must, in effect, work through the whole problem graph, irrelevant parts included. What then hurts it is not how many distractors there are. It is how much intermediate information it has to hold in memory at once to get through that whole graph. Two distractors can add the same number of words and still have very different effects. One that reuses an early intermediate result forces the model to keep that value "alive" much longer. One that sits off to the side costs almost nothing.
The proposal turns this into a measurable quantity and asks whether it explains two puzzles at once. The first is that small models are hurt by distractors far more than large ones. The second is that the parameter count at which reasoning "switches on" moves upward when problems are noisy. The quantity is the pebbling number of a computation graph: the minimum number of intermediate values that must be stored at the same moment to evaluate the graph. We compute it for the graph the model would face if it pruned perfectly, and for the graph it faces if it pruned nothing. The core prediction is that models below the reasoning threshold behave as if they evaluate the full graph, and models above it behave as if they evaluate only the relevant part. The shift in threshold under noise should then follow the gap in memory load between those two graphs, not the distractor count.
Core Claim
Treat a reasoning problem as a directed acyclic graph (DAG): nodes are intermediate quantities, edges are dependencies. Let $C$ be the core graph, meaning the ancestors of the queried node, and let $G = C \cup D$ be the full graph after distractor nodes $D$ are injected. Let $\mathrm{peb}_1(H)$ be the one-shot pebbling number of a graph $H$. This is the smallest peak number of simultaneously stored values over all orders that compute each required node exactly once. It is a natural model of a single left-to-right reasoning trace that never recomputes anything. A model that prunes perfectly pays $\mathrm{peb}_1(C)$. A model that evaluates everything it reads pays $\mathrm{peb}_1(G)$, with every node of $G$ required. We define the distractor-induced memory inflation as $\Delta = \mathrm{peb}_1(G) - \mathrm{peb}_1(C)$.
The claim has two parts. First, holding problem depth, distractor count, token length and lexical overlap fixed, error under noise grows with $\Delta$, and sub-threshold models show this dependence much more strongly. Second, the minimal parameter budget $N^*$ needed to reach a fixed accuracy obeys a law of the form
$$\log N^* = a + b\, w_{\text{eff}} + c \log H,$$
where $H$ is graph search entropy as defined by Wang et al., $w_{\text{eff}}$ is the effective memory load, and $a, b, c$ are fitted constants. The effective load equals $\mathrm{peb}_1(G)$ for models that do not prune and $\mathrm{peb}_1(C)$ for those that do. The linear-in-load form on a log scale is a working hypothesis. It is motivated by the fact that state-tracking capacity must grow with the number of values held at once, and the experiments are designed so that a flat $b$ would falsify it.
This differs from the three closest lines of work. Finding the Minimal Parameter Budget for Implicit Reasoning pretrains models from scratch on knowledge graphs and finds roughly 124 extra parameters per bit of graph search entropy. Its graphs are clean, and entropy cannot distinguish two graphs with the same branching but different memory load. We hold entropy fixed and vary load. GSM-DC injects off-path distractor nodes into symbolic DAGs and finds a power law in distractor count on fixed frontier models. We vary how distractors attach rather than how many there are, and we sweep model scale across the threshold. MAGMA studies polynomial-time graph algorithms and reports that extra hints can hurt. We offer a structural account of when added context hurts, which gives a testable reading of that "hint paradox."
Where Hardness of Approximation Enters, Honestly
We do not claim that transformers fail because some NP-hard problem must be solved to ignore distractors. In our construction, deciding which nodes are relevant is just backward reachability from the query, which is easy. Hardness of approximation instead constrains the method in two ways.
First, it rules out a design. Austrin, Pitassi and Wu show that one-shot pebbling, treewidth and pathwidth cannot be approximated within any constant factor under the Small Set Expansion conjecture, and Blocki, Lee and Zhou show cumulative pebbling cost is Unique-Games-hard to approximate. So we cannot generate arbitrary graphs and trust a heuristic estimate of their memory load: a regression on a mis-estimated predictor would be meaningless. Every graph in the study therefore either has a certified load by construction or is small enough, at about 30 nodes or fewer, for exact search. The by-construction families are trees with closed-form pebbling values, layered graphs, and partial k-trees.
Second, Austrin et al. tie one-shot pebbling to linear layout and width measures. That link is why we can, as a secondary analysis, ask whether pathwidth predicts as well as the pebbling number. If it does, the cheaper width measure would be preferred.
Research Program
The study has three parts.
Part 1: controlled from-scratch scaling. We follow the protocol of Wang et al. We pretrain Llama-style decoders over a range of sizes on synthetic arithmetic DAG problems that use random integer entity identifiers, so that natural-language priors play no role. The generator varies four things independently: depth, $\mathrm{peb}_1(C)$, distractor count, and attachment type. There are three attachment types. Dangling distractors form their own components, so $\Delta \approx 0$. Reader distractors consume early core values, which extends how long those values must stay alive and raises $\Delta$. Fan distractors read many core values at once and give the largest $\Delta$. Graph search entropy is computed for every problem and matched across conditions. The output is a fitted $N^*$ surface over load and entropy.
Part 2: transfer to pretrained model families. We render the same graphs as natural-language word problems using GSM-DC-style templates. We then evaluate open-weight families that span the reported thresholds, from around 1B to tens of billions of parameters, with and without chain-of-thought. The question is whether the sub-threshold-pays-full-graph pattern survives in real models trained on messy text. The file lists this as an open problem for the entropy law.
Part 3: mechanism. We train linear probes on hidden states to decode the values of distractor nodes. If a model's residual stream encodes distractor values, the model computed them, which is direct evidence it is working over $G$ rather than $C$. We expect distractor values to be decodable in sub-threshold models and much less decodable above threshold. This connects to the finding by Weng et al. that backward verification is absent below critical scale; backward pruning is the same capability viewed from the input side. As a small extension, we test whether scaffolds that lower the load help while those that raise it hurt. Constraint summaries of the kind used in Constraint-First Reasoning are the load-lowering case, and MAGMA-style state hints are the load-raising case.
Baselines
The naive reference point predicts accuracy from model size alone, ignoring the problem's noise structure. It is a single fit per model of accuracy against depth, as implied by the compounding-steps picture in which success falls as per-step accuracy raised to the number of steps. If our load measure adds nothing over depth and size, the proposal fails.
The strongest existing predictor of the noise penalty is the distractor-count power law from GSM-DC. The most concrete reported figure there is Grok-3-Beta step accuracy on 5-step problems falling from 43% with 1 distractor to 19% with 15. We fit that power law to the same models, the same rendered problems and the same held-out split as our load-based predictor, with equal free parameters. Beating it means a lower held-out prediction error for accuracy on problems where count is matched and load differs. Here the count law must predict identical accuracy, by construction.
The strongest existing predictor of the threshold itself is the entropy scaling law of Wang et al., with its 124-parameters-per-bit constant. We refit it on our clean problems with the same pretraining compute budget and hyperparameter sweep. Beating it means $b$ is significantly nonzero and improves held-out $N^*$ prediction when entropy is matched. For our specific synthetic arithmetic DAG task there is no reported result found on Lacuna, so all numbers will come from our own runs.
The key ablation compares dangling against reader distractors, with identical count, token length, entity overlap and entropy. Only $\Delta$ differs between them, so this comparison isolates the proposed ingredient.
Why not just…?
Why not just count distractors or tokens, as GSM-DC does? This is the main threat. The count law fits existing data well, and if attachment type does not matter at matched count, our idea is wrong. The dangling-versus-reader ablation settles it directly. We will report the outcome even if attachment type turns out to be irrelevant.
Why not just use graph search entropy? Entropy measures how uncertain the path through the graph is, not how much must be remembered along the way. Our generator produces pairs with equal entropy and different load. If $N^*$ is the same across such pairs, entropy suffices and we drop the load term.
Why not just blame lexical similarity, since Shi et al. found entity-overlapping distractors most damaging? Overlap and load are confounded in natural problems, because sharing an entity often means reading a core value. That confound is exactly why Part 1 uses integer identifiers with no lexical content. In Part 2 we cross overlap with attachment type, so either factor can be shown to carry the effect.
Why not just train the noise away with hard-distractor fine-tuning or preference optimization, which Adaptive Distraction reports improves perturbed accuracy by nearly 50% in some smaller models? That is a fix, not an explanation, and our account predicts what it does. Probes after such training should show distractor values no longer computed, and the remaining errors should track $\mathrm{peb}_1(C)$. If trained models improve while still encoding distractor values, our mechanism is incomplete.
Decisive Experiments
The first check is the matched-pair test. Across at least five model sizes on each side of the threshold, the accuracy gap between reader and dangling distractors at equal count should be large below threshold and small above it. A flat gap at every scale falsifies the claim.
The second check is the threshold-shift test. In Part 1, $N^*$ measured on noisy problems should equal $N^*$ for clean problems whose core load equals the noisy problems' full-graph load $\mathrm{peb}_1(G)$. In other words, load should map noisy problems onto clean ones of the same predicted difficulty. This prediction separates the "noise lowers effective scale" hypothesis from the "scale increases vulnerability" hypothesis raised in the file.
The third check is the probe test. Decodability of distractor-node values should fall across the threshold in step with the shrinking matched-pair gap.
Secondary checks are whether pathwidth predicts as well as pebbling, and whether chain-of-thought lowers the effective load above threshold while raising it below. The second would explain the chain-of-thought reversal reported by Chen. Metrics throughout are GSM-DC step and path accuracy, held-out prediction error of each predictor, and fitted $N^*$ with bootstrap intervals over training seeds.
References
- Finding the Minimal Parameter Budget for Implicit Reasoning: A Data Complexity Driven Scaling Law for Language Models
- How Is LLM Reasoning Distracted by Irrelevant Context? An Analysis Using a Controlled Benchmark
- Are Large-Language Models Graph Algorithmic Reasoners?
- Inapproximability of Treewidth, One-Shot Pebbling, and Related Layout Problems
- Approximating Cumulative Pebbling Cost Is Unique Games Hard
- Large Language Models are Better Reasoners with Self-Verification
- Constraint-First Reasoning: A Training-Free Protocol for Exploiting Answer-Space Constraints in Mathematical Problem Solving
- Large Language Models Can Be Easily Distracted by Irrelevant Context
- Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search
- Measuring Taiwanese Mandarin Language Understanding