arXiv cs.AI· Dikshant Kukreja, Gautam Gupta, Avni Mittal, Avinash Anand, Kritarth Prasad, Zhengkui Wang, Timothy Liu, Rajiv Ratn Shah, Aik Beng Ng, Simon See, Erik Cambria·· 4 小时前AI 评分50
入侵通路:无关上下文如何降低语言模型性能
The Intrusion Pathway: How Non-Evidential Context Degrades Language Model Performance
AI 导读
语言模型在提示词包含无关语句或随机 token 等非证据性上下文时准确率下降,arXiv 论文将这一损坏追溯到“入侵通路”,并定位出一组稀疏的“入侵头”(attention heads),其来自前缀的写入会助长干扰内容。用干净残差替换被污染的末 token 残差可平均恢复 97.6% 的性能损失;实际可部署的做法是屏蔽约十个头(约占模型注意力头的 1%),可恢复 57%,且对有用上下文的损害有限。
正文 · 原文
Authors:Dikshant Kukreja, Gautam Gupta, Avni Mittal, Avinash Anand, Kritarth Prasad, Zhengkui Wang, Timothy Liu, Rajiv Ratn Shah, Aik Beng Ng, Simon See, Erik Cambria
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.
| Comments: | 32 pages, 25 figures, 29 tables. Dikshant Kukreja and Gautam Gupta contributed equally. Website: this https URL Code: this https URL |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.07778 [cs.AI] |
| (or arXiv:2611.07778v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.07778 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Dikshant Kukreja [view email]
[v1]
Thu, 5 Nov 2026 10:18:07 UTC (1,075 KB)
来源:arXiv cs.AI · arxiv.org