mlsanityData to 7 Oct 2026

Focus Directions Make Your Language Models Pay More Attention to Relevant Contexts

arXiv 2503.23306 ↗First posted 30 Mar 2025cs.CLcited by 9

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

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2024Qwen2.5 Technical Reportcited by 4,713
  3. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  7. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  8. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  9. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
  10. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  11. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
  12. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
26 more
  1. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  2. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
  3. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
  4. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
  5. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
  6. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
  7. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  8. 2024Knowledge Conflicts for LLMs: A Surveycited by 274
  9. 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 227
  10. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  11. 2024Many-Shot In-Context Learningcited by 203
  12. 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
  13. 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
  14. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  15. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
  16. 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
  17. 2024One Thousand and One Pairs: A "novel" challenge for long-context language modelscited by 80
  18. 2023Word Embeddings Are Steers for Language Modelscited by 70
  19. 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
  20. 2025Which Attention Heads Matter for In-Context Learning?cited by 61
  21. 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
  22. 2024Measuring and Controlling Instruction (In)Stability in Language Model Dialogscited by 51
  23. 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neuronscited by 47
  24. 2024Identifying Semantic Induction Heads to Understand In-Context Learningcited by 46
  25. 2024IRCAN: Mitigating Knowledge Conflicts in LLM Generation via Identifying and Reweighting Context-Aware Neuronscited by 36
  26. 2024NovelQA: Benchmarking Question Answering on Documents Exceeding 200K Tokenscited by 31

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 4.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilization
  2. 2024Attention Heads of Large Language Models: A Survey
  3. 2024Attention Instruction: Amplifying Attention in the Middle via Prompting
  4. 2024Self-Consistency Falls Short! The Adverse Effects of Positional Bias on Long-Context Problems
  5. 2025Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search
  6. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale
  7. 2026Language Models Can Control Their Own Attention
  8. 2025Do LLMs Need to Think in One Language? Correlation between Latent Language and Task Performance