From Relation-Specific Heads to Shared Interventions: Contextual Entrainment in Language Models
- Published
- Record updated
Summary
Researchers studied contextual entrainment, where language models reuse irrelevant tokens from earlier prompt context in later answers. Using factual-distractor relation-completion prompts across 19 lexical-semantic subtypes, they identified attention heads whose ablation reduces entrainment and tested how those head sets transfer across exact relations, semantic families, and mixed distributions. They found that same-family transfer exceeds different-family transfer and that subtype-specific searches repeatedly rediscover many globally shared heads, which can reduce harmful copying while preserving ordinary relation completion.
Mitigation
The paper proposes ablating a shared set of attention heads, identified using heterogeneous attack prompts, to reduce harmful context following, rather than searching for isolated relation-specific circuits.
Related items
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- MediumSwitzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure OperatorsSimilar attack · The Hacker News
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database
- MediumCVE-2026-137667: ONNX ONNXMLTools cross site scripting in Model VisualizationSimilar attack · NVD/CVE Database
- InfoEvaluating transformer based language model robustness under low rate training data poisoningSimilar attack · OpenAlex (peer-reviewed AI security)