Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding
Not on the map. Why?
Abstract (arXiv)
This paper aims to overcome the "lost-in-the-middle" challenge of large language models (LLMs). While recent advancements have successfully enabled LLMs to perform stable language modeling with up to 4 million tokens, the persistent difficulty faced by most LLMs in identifying relevant information situated in the middle of the context has not been adequately tackled. To address this problem, this paper introduces Multi-scale Positional Encoding (Ms-PoE) which is a simple yet effective plug-and-play approach to enhance the capacity of LLMs to handle the relevant information located in the middle of the context, without fine-tuning or introducing any additional overhead. Ms-PoE leverages the position indice rescaling to relieve the long-term decay effect introduced by RoPE, while meticulously assigning distinct scaling ratios to different attention heads to preserve essential knowledge learned during the pre-training step, forming a multi-scale context fusion from short to long distance. Extensive experiments with a wide range of LLMs demonstrate the efficacy of our approach. Notably, Ms-PoE achieves an average accuracy gain of up to 3.8 on the Zero-SCROLLS benchmark over the original LLMs. Code are available at https://github.com/VITA-Group/Ms-PoE.
Key facts. Cited by 72 papers in the map (data through 7 Oct 2026). Builds on 43 of its 60 references that are in the map. First posted on arXiv 5 Mar 2024.
Builds on
43 of 60 references.
References · 43
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2014Going Deeper with Convolutionscited by 4,231
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Mistral 7Bcited by 3,065
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024Mixtral of Expertscited by 1,785
31 more
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2022SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentationcited by 252
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 200
- 2023Augmenting Language Models with Long-Term Memorycited by 186
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 163
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
- 2024Transformers are Multi-State RNNscited by 120
- 2023Retrieval meets Long Context Large Language Modelscited by 114
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 89
- 2021DialogLM: Pre-trained Model for Long Dialogue Understanding and Summarizationcited by 72
- 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
- 2021Summ^N: A Multi-Stage Summarization Framework for Long Input Dialogues and Documentscited by 64
- 2023JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attentioncited by 52
- 2021On the Expressive Power of Self-Attention Matricescited by 44
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 43
- 2023Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool Usecited by 27
- 2023DeepSpeed4Science Initiative: Enabling Large-Scale Scientific Discovery through Sophisticated AI System Technologiescited by 14
- 2023Zebra: Extending Context Window with Layerwise Grouped Local-Global Attentioncited by 6
Built on by
Citing papers per year: 2024: 15; 2025: 33; 2026: 24.
72 papers.
Sort:
By area:
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2025On the Emergence of Position Bias in Transformerscited by 57
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Datacited by 18
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awarenesscited by 17
- 2025Lost at the Beginning of Reasoningcited by 15
- 2025MMPB: It's Time for Multi-Modal Personalizationcited by 14
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
38 more
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compressioncited by 9
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 8
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 8
- 2025Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Findcited by 7
- 2024Attention Instruction: Amplifying Attention in the Middle via Promptingcited by 6
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2025Beyond Early-Token Bias: Model-Specific and Language-Specific Position Effects in Multilingual LLMscited by 5
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generationcited by 5
- 2024ActionReasoningBench: Reasoning about Actions with and without Ramification Constraintscited by 4
- 2024CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modelingcited by 4
- 2024Quantifying Positional Biases in Text Embedding Modelscited by 4
- 2025Hearing the Order: Investigating Position Bias in Large Audio-Language Modelscited by 4
- 2026Feedback by Design: Understanding and Overcoming User Feedback Barriers in Conversational Agentscited by 4
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Servingcited by 3
- 2025Lost-in-the-Middle in Long-Text Generation: Synthetic Dataset, Evaluation Framework, and Mitigationcited by 3
- 2025CUB: Benchmarking Context Utilisation Techniques for Language Modelscited by 3
- 2025Scalable and Reliable Evaluation of AI Knowledge Retrieval Systems: RIKER and the Coherent Simulated Universecited by 3
- 2026A Structural Theory of Position Bias in Transformerscited by 3
- 2024Mitigate Position Bias in Large Language Models via Scaling a Single Dimensioncited by 2
- 2025RoToR: Towards More Reliable Responses for Order-Invariant Inputscited by 2
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understandingcited by 2
- 2025Towards Long-window Anchoring in Vision-Language Model Distillationcited by 2
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systemscited by 2
- 2026ContextEvolve: Multi-Agent Context Compression for Systems Code Optimizationcited by 2
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overheadcited by 1
- 2024Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Modelscited by 1
- 2025END: Early Noise Dropping for Efficient and Effective Context Denoisingcited by 1
- 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibrationcited by 1
- 2025Layer-Specific Scaling of Positional Encodings for Superior Long-Context Modelingcited by 1
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2025A novel language model for predicting serious adverse event results in clinical trials from their prospective registrationscited by 1
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modelingcited by 1
- 2025Op-Fed: Opinion, Stance, and Monetary Policy Annotations on FOMC Transcripts Using Active Learningcited by 1
- 2025Tagging-Augmented Generation: Assisting Language Models in Finding Intricate Knowledge In Long Contextscited by 1
- 2025Short-Context Dominance: How Much Local Context Natural Language Actually Needs?cited by 1
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processingcited by 1
50 most cited of 72 All 72 (JSON)
- 2026A Survey on End-to-End Autonomous Driving Training from the Perspectives of Data, Strategy, and Platform1 Oct 2026
- 2026MORSE: Multi-Context Ordering via Reverse Scoring for Evidence-Preserving Compression23 Sep 2026
- 2026Context operations to architecture modelling output from large language models and evaluation criteria for their use in systems engineering design9 Sep 2026
- 2026Large language models in medical time series analysis7 Sep 2026
- 2026Large Language Models in Resolving Contextual Knowledge Conflicts2 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Context Poisoning as Extreme-Value Attention Interference in Long-Context Language Models12 Aug 2026
- 2026Akashic: A Low-Overhead LLM Inference Service with MemAttention7 Jul 2026
- 2026Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling26 Jun 2026
- 2026Randomized YaRN Improves Length Generalization for Long-Context Reasoning22 Jun 2026
- 2026Uncertainty-Aware Hybrid Retrieval for Long-Document RAG11 Jun 2026
- 2026A Systematic Evaluation of Positional Bias in Multi-Video Summarization with MLLMs3 Jun 2026
38 more
- 2026ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models11 May 2026
- 2026The Cost of Context: Mitigating Textual Bias in Multimodal Retrieval-Augmented Generation7 May 2026
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation15 Apr 2026
- 2026Micro-Macro Retrieval: Reducing Long-Form Hallucination in Large Language Models10 Apr 2026
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigation28 Mar 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
- 2026A Structural Theory of Position Bias in Transformers18 Feb 2026
- 2026ContextEvolve: Multi-Agent Context Compression for Systems Code Optimization1 Feb 2026
- 2026Feedback by Design: Understanding and Overcoming User Feedback Barriers in Conversational Agents1 Feb 2026
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generation6 Jan 2026
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systems1 Jan 2026
- 2025Towards Long-window Anchoring in Vision-Language Model Distillation25 Dec 2025
- 2025Scalable and Reliable Evaluation of AI Knowledge Retrieval Systems: RIKER and the Coherent Simulated Universe22 Dec 2025
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processing15 Dec 2025
- 2025Short-Context Dominance: How Much Local Context Natural Language Actually Needs?8 Dec 2025
- 2025Retrieval Quality at Context Limit8 Nov 2025
- 2025Tagging-Augmented Generation: Assisting Language Models in Finding Intricate Knowledge In Long Contexts27 Oct 2025
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMs11 Oct 2025
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrieval6 Oct 2025
- 2025Hearing the Order: Investigating Position Bias in Large Audio-Language Models1 Oct 2025
- 2025MMPB: It's Time for Multi-Modal Personalization26 Sep 2025
- 2025Op-Fed: Opinion, Stance, and Monetary Policy Annotations on FOMC Transcripts Using Active Learning16 Sep 2025
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling11 Sep 2025
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillation21 Aug 2025
- 2025A novel language model for predicting serious adverse event results in clinical trials from their prospective registrations21 Jul 2025
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025Rationale-Enhanced Decoding for Multi-modal Chain-of-Thought10 Jul 2025
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression8 Jul 2025
- 2025Lost at the Beginning of Reasoning27 Jun 2025
- 2025Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding10 Jun 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find23 May 2025
- 2025CUB: Benchmarking Context Utilisation Techniques for Language Models22 May 2025
- 2025Beyond Early-Token Bias: Model-Specific and Language-Specific Position Effects in Multilingual LLMs22 May 2025
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understanding19 May 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2025LexPro-1.0 Technical Report10 Mar 2025
50 newest of 72 All 72 (JSON)
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Datacited by 18
- 2025Lost at the Beginning of Reasoningcited by 15
- 2024ActionReasoningBench: Reasoning about Actions with and without Ramification Constraintscited by 4
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
- 2026Randomized YaRN Improves Length Generalization for Long-Context Reasoningcited by 1
- 2025LexPro-1.0 Technical Reportcited by 0
- 2025Rationale-Enhanced Decoding for Multi-modal Chain-of-Thoughtcited by 0
- 2026Micro-Macro Retrieval: Reducing Long-Form Hallucination in Large Language Modelscited by 0
- 2026Randomized YaRN Improves Length Generalization for Long-Context Reasoning22 Jun 2026
- 2026Micro-Macro Retrieval: Reducing Long-Form Hallucination in Large Language Models10 Apr 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025Rationale-Enhanced Decoding for Multi-modal Chain-of-Thought10 Jul 2025
- 2025Lost at the Beginning of Reasoning27 Jun 2025
- 2025LexPro-1.0 Technical Report10 Mar 2025
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Data27 Jun 2024
- 2024ActionReasoningBench: Reasoning about Actions with and without Ramification Constraints6 Jun 2024
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compressioncited by 9
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generationcited by 5
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systemscited by 2
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overheadcited by 1
- 2026Uncertainty-Aware Hybrid Retrieval for Long-Document RAGcited by 1
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptationcited by 0
- 2026MORSE: Multi-Context Ordering via Reverse Scoring for Evidence-Preserving Compressioncited by 0
- 2026MORSE: Multi-Context Ordering via Reverse Scoring for Evidence-Preserving Compression23 Sep 2026
- 2026Uncertainty-Aware Hybrid Retrieval for Long-Document RAG11 Jun 2026
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation15 Apr 2026
- 2026Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generation6 Jan 2026
- 2026Making Theft Useless: Adulteration-Based Protection of Proprietary Knowledge Graphs in GraphRAG Systems1 Jan 2026
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression8 Jul 2025
- 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overhead29 Sep 2024
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling11 Sep 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving18 May 2024
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
- 2025On the Emergence of Position Bias in Transformerscited by 57
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 30
- 2024Mixture of In-Context Experts Enhance LLMs' Long Context Awarenesscited by 17
- 2025MMPB: It's Time for Multi-Modal Personalizationcited by 14
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025Position Bias Mitigates Position Bias:Mitigate Position Bias Through Inter-Position Knowledge Distillationcited by 8
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 8
12 most cited of 45 All 45 (JSON)
- 2026Context operations to architecture modelling output from large language models and evaluation criteria for their use in systems engineering design9 Sep 2026
- 2026Large language models in medical time series analysis7 Sep 2026
- 2026Large Language Models in Resolving Contextual Knowledge Conflicts2 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Context Poisoning as Extreme-Value Attention Interference in Long-Context Language Models12 Aug 2026
- 2026Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling26 Jun 2026
- 2026ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models11 May 2026
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigation28 Mar 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
- 2026A Structural Theory of Position Bias in Transformers18 Feb 2026
- 2025Scalable and Reliable Evaluation of AI Knowledge Retrieval Systems: RIKER and the Coherent Simulated Universe22 Dec 2025
- 2025Uncovering the Role of Initial Saliency in U-Shaped Attention Bias: Scaling Initial Token Weight for Enhanced Long-Text Processing15 Dec 2025
12 newest of 45 All 45 (JSON)