The Intrusion Pathway: How Non-Evidential Context Degrades Language Model Performance

Dikshant Kukreja, Erik Cambria and colleagues at IIIT Delhi, Nanyang Technological University, Singapore Institute of Technology and NVIDIA give a mechanistic account of why irrelevant context lowers accuracy, and localize part of the damage to about ten "intrusion heads" that can be masked without retraining.
Ask this paper
Failure. Accuracy drops when a prompt contains statements from unrelated domains or random tokens, even with no competing answer and no semantic overlap with the query.
Pathway. MLPs enrich both the query subject and the irrelevant tokens, parroting heads copy prefix content to the prediction position, and relational readers mostly ignore the unrelated source. Answer support still weakens.
Intrusion heads. A sparse set of heads writes distractor-related content. These heads transfer across tasks and distractor types and are mostly separate from the heads that read useful context.
Intervention. Patching the last-token residual from a clean run recovers 97.6% of the drop on average across four tasks, but it needs a matched clean pass. Masking about ten heads, roughly 1% of all heads, recovers 57% and mostly keeps the benefit of helpful context.
Scope. Main results are on four 7B-scale open-weight base models.
Abstract
Language models lose accuracy when a prompt contains non-evidential context: irrelevant statements from unrelated domains, or random off-distribution tokens, with no competing answer and no semantic overlap with the query. Such noise pervades retrieval-augmented, tool-using, and long-context deployments, yet the failure has lacked a mechanistic account. We trace the corruption to the Intrusion Pathway, which starts with MLPs enriching both query-subject and irrelevant-token representations, parroting heads carry prefix-token content to the prediction position, and relational readers largely avoid unrelated sources. Nevertheless, preserved subject enrichment and selective reading do not prevent intrusion in the broader computation. We then localize part of this interference to a sparse set of attention heads, which we call intrusion heads. Their prefix-derived writes promote distractor-related content, while their reduced support for the correct answer arises primarily from weaker non-prefix contributions rather than direct suppression by the prefix. The same heads transfer across tasks and distractor types and are largely weight-disjoint from the heads that integrate relevant contextual evidence, enabling a class-conditional intervention. Replacing the corrupted last-token residual with its clean counterpart, an oracle probe that requires a matched clean forward pass, recovers 97.6% on average of the distractor-induced drop across four downstream tasks. A deployable mask level knockout of about ten heads, roughly 1% of the model's attention heads, recovers 57% at bounded cost to helpful context.