Skip to content
InfoResearchPreprintLLM-specific

From Relation-Specific Heads to Shared Interventions: Contextual Entrainment in Language Models

Published
Record updated
View JSON

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.