Attention Instruction: Amplifying Attention in the Middle via Prompting
Not on the map. Why?
Abstract (arXiv)
The context window of large language models has been extended to 128k tokens or more. However, language models still suffer from position bias and have difficulty in accessing and using the middle part of the context due to the lack of attention. We examine the relative position awareness of LLMs and the feasibility of mitigating disproportional attention through prompting. We augment the original task instruction with textttattention instructions that direct language models to allocate more attention towards a selected segment of the context. We conduct a comprehensive investigation on multi-document question answering task with both position-based and index-based instructions. We find that language models do not have relative position awareness of the context. Nevertheless, they demonstrate the capacity to adapt attention to a specific segment using matching indexes. Our analysis contributes to a deeper understanding of position bias in LLMs and provides a pathway to mitigate this bias by instruction, thus benefiting LLMs in locating and utilizing relevant information from retrieved documents in RAG applications.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 26 of its 35 references that are in the map. First posted on arXiv 24 Jun 2024.
Builds on
26 of 35 references.
References · 26
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Mistral 7Bcited by 3,065
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Modelscited by 272
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
14 more
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2020How Context Affects Language Models' Factual Predictionscited by 181
- 2024Aligning with Human Judgement: The Role of Pairwise Preference in Large Language Model Evaluatorscited by 146
- 2021End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answeringcited by 133
- 2024Make Your LLM Fully Utilize the Contextcited by 118
- 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineeringcited by 91
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 89
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2023Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool Usecited by 27
- 2022The NLP Task Effectiveness of Long-Range Transformerscited by 22
- 2024LLM In-Context Recall is Prompt Dependentcited by 15
- 2024Position Engineering: Boosting Large Language Models through Positional Information Manipulationcited by 9
- 2024Improve Temporal Awareness of LLMs for Sequential Recommendationcited by 8
- 2024Position-Aware Parameter Efficient Fine-Tuning Approach for Reducing Positional Bias in LLMscited by 7
Built on by
Citing papers per year: 2024: 2; 2025: 4.
6 papers.
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 61
- 2025Policy-as-Prompt: Rethinking Content Moderation in the Age of Large Language Modelscited by 29
- 2024GraphInsight: Unlocking Insights in Large Language Models for Graph Structure Understandingcited by 18
- 2025Spotlight Your Instructions: Instruction-following with Dynamic Attention Steeringcited by 18
- 2025Eyes-on-Me: Scalable RAG Poisoning through Transferable Attention-Steering Attractorscited by 1
- 2025Path Pooling: Training-Free Structure Enhancement for Efficient Knowledge Graph Retrieval-Augmented Generationcited by 0
- 2025Eyes-on-Me: Scalable RAG Poisoning through Transferable Attention-Steering Attractors1 Oct 2025
- 2025Spotlight Your Instructions: Instruction-following with Dynamic Attention Steering17 May 2025
- 2025Path Pooling: Training-Free Structure Enhancement for Efficient Knowledge Graph Retrieval-Augmented Generation7 Mar 2025
- 2025Policy-as-Prompt: Rethinking Content Moderation in the Age of Large Language Models25 Feb 2025
- 2024GraphInsight: Unlocking Insights in Large Language Models for Graph Structure Understanding5 Sep 2024
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approach1 Jul 2024
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
- 2026Do Large Language Models Plan Answer Positions? Position Bias in Multiple-Choice Question Generation
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2025Focus Directions Make Your Language Models Pay More Attention to Relevant Contexts
- 2025Emulating Retrieval Augmented Generation via Prompt Engineering for Enhanced Long Context Comprehension in LLMs
- 2025MHA-RAG: Improving Efficiency, Accuracy, and Consistency by Encoding Exemplars as Soft Prompts
- 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Training