arXiv cs.AI· Jinghan Zheng, Jiajun Shi·· 3 天前AI 评分22
从关系特定注意力头到共享干预:语言模型中的上下文夹带研究
From Relation-Specific Heads to Shared Interventions: Contextual Entrainment in Language Models
AI 导读
研究者在19个词汇-语义子类上通过事实干扰关系补全提示,识别出能减少上下文夹带的注意力头,发现同语义族迁移效果优于跨族迁移,且子类特定搜索反复重新发现许多全局共享头。干净补全与上下文使用探针表明,这种共享干预可减少有害复制,同时保留普通关系补全和简单上下文能力。研究认为,有害上下文跟随不应靠寻找孤立的关系特定回路,而应用异构攻击提示揭示可复用的干预目标。
正文 · 原文
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