arXiv:2611.07778cs.AINov 2026

Manuscript Offprint

arXiv:2611.07778

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

Dikshant Kukreja, Gautam Gupta, Avni Mittal, Avinash Anand, Kritarth Prasad, Zhengkui Wang, Timothy Liu, Rajiv Ratn Shah, Aik Beng Ng, Simon See, Erik Cambria

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 INTRODUCTION

A current-day frontier language model or agent rarely sees a bare question. A user's prompt arrives bundled with retrieved passages from a vector store (Lewis et al., 2020), tool-call results from a browsing or search API (Schick et al., 2023), conversation snippets, and traces from agentic sub-loops (Yao et al., 2023). The model is expected to weld this heterogeneous bundle into a single coherent answer, and the bundle is rarely clean: context closes real factual gaps that parametric memory cannot reach on its own (Mallen et al., 2023), but the same channel just as routinely carries pieces that share none of the answer's content. The pieces of this mixture fall into a now-standard five-way partition—golden, counterfactual, related, irrelevant, and random context—established across the retrieval-augmentation, knowledge-conflict, and contextual-distraction literatures (Cuconasu et al., 2024; Niu et al., 2025; Fang et al., 2024; Wu et al., 2025a).

For a query qq with answer a∗a^*, the usage above partitions any context cc into five disjoint classes, each instantiated in Table 1 on the running query “The capital of Germany is ___” (a∗=Berlina^* = \text{Berlin}). Golden context contains a∗a^* and closes factual gaps the model would otherwise miss (Mallen et al., 2023); its extraction machinery is the best-mapped circuit in the field (Wang et al., 2023; McDougall et al., 2023). Counterfactual context asserts a coherent competing answer via the query's own relation; it is the substrate of the knowledge-conflict literature (Longpre et al., 2021) and has been localized at every grain, from mid-layer FFNs to individual memory-vs-context heads. Related context shares the relational schema of qq but asserts about a different entity, functioning as a one-shot demonstration of the task: this is the canonical in-context learning regime of induction heads and task/function

RegimeContextGold-logit shift
Golden“Germany’s capital city is Berlin.”
Counterfactual“The capital of Germany is Munich.”-2.6
Related“The capital of France is Paris.”
Irr. (single token)“Computers are useful.”-1.1
Irr. (multi-token)“Computers perform ... efficiently.”-2.3
Random“Calculator.”-0.2

Table 1: Context regimes for the running query “The capital of Germany is ___” (a∗=Berlina^* = \text{Berlin}). The Gold-logit shift column shows the gold token (Berlin) logit change caused in nats by that regime. “Irr.” abbreviates Irrelevant; the full multi-token prefix is “Computers perform mathematical simulations efficiently.”

vectors (Olsson et al., 2022; Hendel et al., 2023). Irrelevant context is a coherent statement from an unrelated domain—no shared entity, relation, or topic with qq—and contains one or more salient non-gold (distractor) tokens. Such context can substantially reduce answer accuracy (Shi et al., 2023; Wu et al., 2024). Random context is an arbitrary token or short string with no semantic content, a control for whether the model keys on distribution rather than content (Cuconasu et al., 2024).

Among these five classes, irrelevant context is the least understood mechanically. Shi et al. (2023) document the accuracy loss it causes, and Niu et al. (2025) identify heads responsible for contextual entrainment, the promotion of tokens that appear in the context. Consider again “The capital of Germany is,” whose correct continuation is “Berlin.” Prepending “Computers are useful” neither supports this answer nor proposes another capital, yet it lowers the gold token’s logit. Promoting a distractor can reduce the gold token’s probability through competition, but does not by itself establish why the gold token’s own logit decreases. We therefore ask two questions: how does content that supplies no evidence about the answer reduce support for the gold token, and can the components that carry this interference be separated from those that let the model use golden context? Answering these questions would clarify why irrelevant context interferes with transformer computation and how much robustness can be recovered through a sparse, training-free intervention, rather than relying on noise-aware training or additional context-handling procedures (Fang et al., 2024; Yoran et al., 2024; Asai et al., 2024; Yu et al., 2024).

We answer the first question by tracing how context is represented and propagated, then localizing the writes associated with lost answer support. In §3, our analysis of the Intrusion Pathway follows MLP enrichment, parroting, and relational reading. The measured enrichment of the query subject is preserved under irrelevant context, while irrelevant-token representations are also enriched. Parroting heads carry prefix-token content to the last position, and relational readers largely avoid unrelated sources. Nevertheless, restoring the broader middle block’s writes recovers answer support while also removing benefits from golden context, identifying an effective but non-selective intervention site.

In §4, we identify intrusion heads, whose attention to irrelevant context coincides with reduced direct support for the correct answer. Their prefix-derived writes promote distractor-related content, whereas their reduced gold support comes primarily from weaker contributions from the query. This localizes a component of the interference to changes in the heads’ source contributions, rather than treating copying alone as the mechanism of answer degradation.

For the second question, intrusion heads are largely distinct from golden-context retrieval heads (Wu et al., 2025b; §4). Masking prefix attention in a fixed, retrieval-disjoint set of about ten heads per model, roughly 1%, recovers 57% of distractor-induced accuracy loss on average across four downstream tasks while largely preserving golden-context benefits. The set is selected once on factual recall, and the mask requires no matched clean forward pass at inference. Oracle replacement of the last-position residual with its matched clean counterpart recovers 97.6% on average (§5).

References (100)

Couldn't load all references. Reload the page to try again.