Language Models Keep Abandoned Analyses: Residue and Adaptation after Garden-Path Sentences

Xiang DingarXiv 2026 · arXiv

TL;DR

When a Large Language Model (LLM) corrects its own mistake—like realizing a "garden-path" sentence was misinterpreted—it doesn't actually erase the error. Instead, it leaves a "residue" of the abandoned analysis in its internal states that continues to influence future text, alongside a new "adaptation" toward the correct structure.

What Problem Does This Paper Address?

In psycholinguistics, a "garden-path sentence" is one that leads you down a dead end. Consider: "While the man hunted the deer ran into the woods." Most readers initially think the man is hunting the deer, only to realize when they hit the word "ran" that "the deer" is actually the subject of the second clause.

Humans are known to keep a "lingering misinterpretation" of these sentences even after they've corrected themselves. This paper asks: Do LLMs do the same? Because of how Transformers work, once a token is processed, its representation is fixed in the "KV cache." If the model initially thinks "the deer" is an object, that interpretation is baked into the hidden states of those tokens. The authors investigate whether these "abandoned analyses" persist and how they affect the model's subsequent behavior.

Methods

The researchers tested 24 open-weight models (ranging from 124M to 70B parameters, including Llama 3, Mistral, and Qwen) using two primary techniques:

  1. Structural Priming: They measured if reading a garden-path sentence makes the model more likely to produce a similar (transitive) structure in the next sentence. They used a "residue contrast" (Equation 2 in the paper) to isolate the effect of the abandoned analysis from simple punctuation or verb biases.
  2. Activation Patching: To find exactly where this memory lives, they surgically replaced the internal states of the noun phrase (e.g., "the deer") with states from a version of the sentence that wasn't a garden path (e.g., using a comma: "While the man hunted, the deer...").
Figure 1: Conceptual diagram showing how the residue and adaptation traces are formed and where they are stored.

Datasets

The study utilized several established psycholinguistic benchmarks and newly curated sets:

  • Discovery Set: 93 NP/Z (Noun Phrase/Zero-complement) families from Amouyal et al. (2025) and the SAP benchmark.
  • Held-out Set: 48 families from SyntaxGym and Ceháková & Chromý (2025).
  • Christianson et al. (2001): 42 optionally transitive items used to test if the residue scales with the length of the ambiguous region.
  • Overridden Statements: 200 custom-built items (e.g., "The meeting is on Thursday. Correction: Monday.") to see if this persistence extends beyond syntax to factual information.

Key Insights and Ideas

  • The Internal Tug-of-War: A garden-path sentence leaves two distinct traces. The residue (the old mistake) pushes the model toward its initial interpretation, while the adaptation (the correction) pushes it toward the new, resolved structure.
  • Spatial Separation: These traces live in different places. The residue is read from the hidden states of the noun phrase (computed before the model saw the mistake), while the adaptation is read from the states of the main clause (computed after the disambiguation).
  • KV Cache as Permanent Memory: Because Transformer states are not updated retroactively, the model's "first impression" of a word remains in the context window even after the model "knows" it was wrong.
  • Persistence of Overridden Facts: This isn't just about grammar. If you tell a model "The meeting is on Thursday" and then immediately correct it to "Monday," the model still feels a "pull" toward Thursday in its internal probabilities.

Key Results

  • Strength of the Ghost: The "residue" of the abandoned analysis is powerful—about 76% as strong as the priming effect of a sentence where the noun phrase actually is an object.
  • Model Scaling: This effect is remarkably consistent across model sizes. Even the largest 70B models show a significant residue.
  • Patching Success: Replacing the hidden states of just the noun phrase (the "deer") removed almost all of the residue in 32B and 70B models, proving that this is exactly where the "abandoned analysis" is stored.
Figure 2: The residue of the abandoned object analysis. Left: AL (Eq. 2) per model on the discovery, held-out and Christianson et al. (2001) item sets. Right: the same contrast on sampled completions, as a difference in the proportion of transitive continuations. Error bars are 95% intervals from a two-way bootstrap over prime and target families. Models are ordered by size.

Limitations and Future Work

  • Language Scope: The study is limited to English. Syntactic structures in other languages might interact with the KV cache differently.
  • Behavioral Manipulation: One attempt to manipulate the residue through "context" (Appendix F) failed its internal check, meaning the causal evidence relies primarily on the (very strong) patching and probing results.
  • Closed Models: The study required access to internal states and exact log-probabilities, so closed-source models (like GPT-4) could not be tested.
  • Future Direction: The authors suggest that "appending a correction" is a fundamentally weak way to update a model's state compared to removing the incorrect text entirely, which has significant implications for RAG (Retrieval-Augmented Generation) and long-context prompting.

Summary updated

Abstract

Reading "While the man hunted the deer ran into the woods" requires giving up the analysis in which "the deer" is the object of "hunted". People who have just read such a sentence still produce more transitive structures, so the abandoned analysis primes later language. We ask whether language models keep using an analysis they have abandoned, and what in the model carries it. In 24 open models from 124M to 70B parameters, a garden-path sentence leaves two traces in the context. A residue of the abandoned analysis raises later object attachment, by about three quarters of the effect of a sentence in which the noun phrase really is an object, and it appears in sampled text, on held-out and human-normed items and for a second type of garden path. An adaptation toward the resolved structure scales with the sentence's disambiguation error and acts mainly on comprehension-like measures. Activation patching separates the two. Later text reads the residue from the role information in the noun phrase's states, which were computed under the object analysis before the disambiguation, and replacing these states removes almost all of the residue in the 32B and 70B models. The adaptation is read from the states that processed the disambiguation. Overridden statements show the same persistence (a corrected value keeps pulling later predictions in 8 of 9 models), and in most models the pull is carried by the positions after the statement. Finally, the human paradigm transfers only with controls for punctuation, because the models also write garden-path sentences themselves, which reverses the paradigm's raw statistic.
BibTeX
@misc{ding2026language,
  author = {Xiang Ding},
  title = {{Language Models Keep Abandoned Analyses: Residue and Adaptation after Garden-Path Sentences}},
  year = {2026},
  eprint = {2610.36797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36797},
}
Figure