arXiv:cs.AI· Jinghan Zheng, Jiajun Shi·· 20 小时前
从关系特异性注意力头到共享干预:语言模型中的上下文卷入
From Relation-Specific Heads to Shared Interventions: Contextual Entrainment in Language Models
AI 导读
研究用覆盖 19 种词汇语义子类型的 factual-distractor 关系补全提示,定位到可降低上下文卷入(contextual entrainment)的注意力头。结果显示同语义族迁移效果优于跨族迁移,移除全局共享头后族内残差减弱,子类型专属搜索也反复找回许多全局头。干净补全与上下文使用探针表明,这种共享干预能减少有害复制,同时保留正常关系补全与简单上下文能力。
正文
Abstract:Large language models rely on prompt context to perform in-context learning, follow formats, and adapt to local evidence. This ability, however, also raises a robustness concern: models may reuse irrelevant tokens from earlier context when answering a later query. Prior work identifies this behavior as contextual entrainment and finds attention heads whose ablation reduces it, arguing that these heads are largely task- or relation-specific. But are the mechanisms behind contextual entrainment truly isolated by relation, or do relation-conditioned searches recover reusable components shared across relations? Using factual-distractor relation-completion prompts across 19 lexical-semantic subtypes, we identify attention heads whose ablation reduces entrainment and test how the resulting head sets transfer recovery ability across exact relations, semantic families, and mixed relation distributions. Same-family transfer exceeds different-family transfer, family residuals weaken once globally shared heads are removed, and subtype-specific searches repeatedly rediscover many global heads. Clean-completion and context-use probes further suggest that this shared intervention can reduce harmful copying while preserving ordinary relation completion and simple in-context abilities. Our findings provide a more precise perspective on contextual entrainment and its mitigation: harmful context following is not best addressed by searching for isolated relation-specific circuits, but by using heterogeneous attack prompts to reveal reusable intervention targets whose effects are shaped by semantic relation structure.
| Comments: | Accepted at AACL-IJCNLP 2026 |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.18674 [cs.CL] |
| (or arXiv:2610.18674v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.18674 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Jiajun Shi [view email]
[v1]
Tue, 13 Oct 2026 16:33:02 UTC (341 KB)
来源:arXiv:cs.AI · arxiv.org