Research map / Large language models / Language, safety and interpretability
Llama See, Llama Do: A Mechanistic Perspective on Contextual Entrainment and Distraction in LLMs
Jingcheng Niu, Xingdi Yuan, Tong Wang, Hamidreza Saghir, Amir H. Abdi
Microsoft · University of Toronto · Technical University of Darmstadt
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add a context containing a related fact | Llama-3.1-8B · LRE (all relations) | distractor token logit: 8.94 -> 13.02 | Hurt |
| Add a context containing a single random token | Llama-3.1-8B · LRE (all relations) | distractor token logit: 3.19 -> 7.19 | Hurt |
| Use counterfactual rather than factual context | Llama-3.x and others · LRE | distractor token logit | Hurt |
| Add irrelevant or random context | Llama-3.1-8B · LRE (all relations) | correct token logit: 16.68 -> 15.45 (irrelevant); 16.69 -> 15.52 (random) | Hurt |
| Add related-but-distracting context | Llama-3.1-8B · LRE (all relations) | correct token logit: 16.72 -> 17.47 | Improved |
| Remove 36 entrainment heads (set outputs to zero) (ablation) | Llama-3.1-8B · country-capital city test | logit gap gold minus distractor: 7.69 -> 13.20 | Improved |
| Remove entrainment heads (ablation) | Llama-3.1-8B · country-capital city test | average distractor token rank: 37.5 -> 1289.6 | Improved |
| Remove relation-specific entrainment heads (ablation) | Llama-3.1-8B · 15 LRE relations | logit gap gold minus distractor: e.g. 3.94 -> 14.68 (company hq) | Improved |
| Remove country-capital entrainment heads (ablation) | Llama-3.1-8B · LRE factual recall and ICL tasks | strict accuracy: 0.2 to 3 point decrease on ICL tasks | No clear effect |
| Remove country-capital entrainment heads, test other relation (ablation) | Llama-3.1-8B · other relations' entrainment | logit gap | Mixed |
Open problems this paper states
- “Experiments do not include larger models such as Llama-3.1-70B and 405B due to resource limits.” → Tested on a few open models of about 7B to 9B, so larger and other models are untested. (an open problem in task vectors and steering)
Open problems in task vectors and steering
Does steering and task-vector localization found on small open models carry over to larger models, other languages and non-linear representations?
- Tested on a few open models of about 7B to 9B, so larger and other models are untested. · 37 papers state it
- Evidence comes from English text only. · 16 papers state it
- Steering assumes linear directions and tests only simple additive interventions. · 13 papers state it
Closest papers by meaning
- Shared Lexical Task Representations Explain Behavioral Variability In LLMs (ICML 2026 · similarity 0.90)
- Sorting through the noise: Testing robustness of information processing in pre-trained language models (EMNLP 2021 · similarity 0.89)
- Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search (NeurIPS 2025 · similarity 0.89)
- Surprise, Episodic Context, and Catastrophic Forgetting in LLM Fine-Tuning: An Empirical Study (NeurIPS 2026 · similarity 0.89)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.88)
- Taming Knowledge Conflicts in Language Models (ICML 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.