Focus Directions Make Your Language Models Pay More Attention to Relevant Contexts
Not on the map. Why?
Abstract (arXiv)
Long-context large language models (LLMs) are prone to be distracted by irrelevant contexts. The reason for distraction remains poorly understood. In this paper, we first identify the contextual heads, a special group of attention heads that control the overall attention of the LLM. Then, we demonstrate that distraction arises when contextual heads fail to allocate sufficient attention to relevant contexts and can be mitigated by increasing attention to these contexts. We further identify focus directions, located at the key and query activations of these heads, which enable them to allocate more attention to relevant contexts without explicitly specifying which context is relevant. We comprehensively evaluate the effect of focus direction on various long-context tasks and find out focus directions could help to mitigate the poor task alignment of the long-context LLMs. We believe our findings could promote further research on long-context LLM alignment.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 38 of its 43 references that are in the map. First posted on arXiv 30 Mar 2025.
Builds on
38 of 43 references.
References · 38
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
26 more
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2024Knowledge Conflicts for LLMs: A Surveycited by 274
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 227
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2024Many-Shot In-Context Learningcited by 203
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
- 2024One Thousand and One Pairs: A "novel" challenge for long-context language modelscited by 80
- 2023Word Embeddings Are Steers for Language Modelscited by 70
- 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
- 2025Which Attention Heads Matter for In-Context Learning?cited by 61
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
- 2024Measuring and Controlling Instruction (In)Stability in Language Model Dialogscited by 51
- 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neuronscited by 47
- 2024Identifying Semantic Induction Heads to Understand In-Context Learningcited by 46
- 2024IRCAN: Mitigating Knowledge Conflicts in LLM Generation via Identifying and Reweighting Context-Aware Neuronscited by 36
- 2024NovelQA: Benchmarking Question Answering on Documents Exceeding 200K Tokenscited by 31
Built on by
Citing papers per year: 2025: 5; 2026: 4.
9 papers.
- 2025AutoSCORE: Enhancing Automated Scoring with Multi-Agent Large Language Models via Structured Component Recognitioncited by 13
- 2025Make It Efficient: Dynamic Sparse Attention for Autoregressive Image Generationcited by 7
- 2025AttentionInfluence: Adopting Attention Head Influence for Weak-to-Strong Pretraining Data Selectioncited by 5
- 2026ReAttn: Improving Attention-based Re-ranking via Attention Re-weightingcited by 5
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2025Mind the Quote: Enabling Quotation-Aware Dialogue in LLMs via Plug-and-Play Modulescited by 0
- 2025MIDUS: Memory-Infused Depth Up-Scalingcited by 0
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answeringcited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparitiescited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparities30 Sep 2026
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answering5 Jun 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
- 2026ReAttn: Improving Attention-based Re-ranking via Attention Re-weighting23 Feb 2026
- 2025MIDUS: Memory-Infused Depth Up-Scaling15 Dec 2025
- 2025AutoSCORE: Enhancing Automated Scoring with Multi-Agent Large Language Models via Structured Component Recognition26 Sep 2025
- 2025Make It Efficient: Dynamic Sparse Attention for Autoregressive Image Generation23 Jun 2025
- 2025Mind the Quote: Enabling Quotation-Aware Dialogue in LLMs via Plug-and-Play Modules30 May 2025
- 2025AttentionInfluence: Adopting Attention Head Influence for Weak-to-Strong Pretraining Data Selection12 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilization
- 2024Attention Heads of Large Language Models: A Survey
- 2024Attention Instruction: Amplifying Attention in the Middle via Prompting
- 2024Self-Consistency Falls Short! The Adverse Effects of Positional Bias on Long-Context Problems
- 2025Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale
- 2026Language Models Can Control Their Own Attention
- 2025Do LLMs Need to Think in One Language? Correlation between Latent Language and Task Performance