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:
- 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.
- 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...").
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.
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