Parallel Context Windows for Large Language Models
Not on the map. Why?
Abstract (arXiv)
When applied to processing long text, Large Language Models (LLMs) are limited by their context window. Existing efforts to address this limitation involve training specialized architectures, and cannot be easily applied to off-the-shelf LLMs. We present Parallel Context Windows (PCW), a method that alleviates the context window restriction for any off-the-shelf LLM without further training. The key to the approach is to carve a long context into chunks (``windows''), restrict the attention mechanism to apply only within each window, and re-use the positional embeddings across the windows. Our main results test the PCW approach on in-context learning with models that range in size between 750 million and 178 billion parameters, and show substantial improvements for tasks with diverse input and output spaces. We show additional benefits in other settings where long context windows may be beneficial: multi-hop questions and retrieval-augmented question answering with multiple retrieved documents. Our results highlight Parallel Context Windows as a promising method for applying off-the-shelf LLMs in a range of settings that require long text sequences. We make our code publicly available at https://github.com/ai21labs/parallel-context-windows.
Key facts. Cited by 81 papers in the map (data through 14 Oct 2026). Builds on 27 of its 60 references that are in the map. First posted on arXiv 21 Dec 2022.
Builds on
27 of 60 references.
References · 27
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
15 more
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2021Datasets: A Community Library for Natural Language Processingcited by 530
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 165
- 2020Beat the AI: Investigating Adversarial Human Annotation for Reading Comprehensioncited by 131
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
- 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
- 2021RAFT: A Real-World Few-Shot Text Classification Benchmarkcited by 44
- 2022Standing on the Shoulders of Giant Frozen Language Modelscited by 33
Built on by
Citing papers per year: 2023: 8; 2024: 35; 2025: 25; 2026: 13.
81 papers.
Sort:
By area:
- 2023In-Context Retrieval-Augmented Language Modelscited by 702
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2024A Survey on Large Language Model-Based Game Agentscited by 112
- 2023The Earth is Flat because...: Investigating LLMs' Belief towards Misinformation via Persuasive Conversationcited by 109
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 108
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
38 more
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 83
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 76
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)cited by 58
- 2023BAMBOO: A Comprehensive Benchmark for Evaluating Long Text Modeling Capacities of Large Language Modelscited by 53
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 48
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2024Block-Attention for Efficient Prefillingcited by 37
- 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
- 2024PDE Generalization of In-Context Operator Networks: A Study on 1D Scalar Nonlinear Conservation Lawscited by 31
- 2024Recent Advances in Generative AI and Large Language Models: Current Status, Challenges, and Perspectivescited by 30
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Modelscited by 25
- 2024Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolationcited by 24
- 2024Private prediction for large-scale synthetic text generationcited by 24
- 2025Vision-centric Token Compression in Large Language Modelcited by 21
- 2024Batch-ICL: Effective, Efficient, and Order-Agnostic In-Context Learningcited by 20
- 2024KBLaM: Knowledge Base augmented Language Modelcited by 16
- 2024Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generationcited by 15
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 14
- 2024Differential Transformercited by 13
- 2025Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attentioncited by 12
- 2024TR2MTL: LLM based framework for Metric Temporal Logic Formalization of Traffic Rulescited by 9
- 2024XL3M: A Training-free Framework for LLM Length Extension Based on Segment-wise Inferencecited by 8
- 2025Rethinking Invariance in In-context Learningcited by 8
- 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learningcited by 7
- 2024Memorization in In-Context Learningcited by 6
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2023Revisiting Parallel Context Windows: A Frustratingly Simple Alternative and Chain-of-Thought Deteriorationcited by 5
- 2024LAMPO: Large Language Models as Preference Machines for Few-shot Ordinal Classificationcited by 5
- 2025End-to-End Long Document Summarization using Gradient Cachingcited by 4
- 2025Schema for In-Context Learningcited by 4
- 2024MGIMM: Multi-Granularity Instruction Multimodal Model for Attribute-Guided Remote Sensing Image Detailed Descriptioncited by 3
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 3
50 most cited of 81 All 81 (JSON)
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents6 Sep 2026
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memory31 Aug 2026
- 2026MaSRead: Content-Addressed Reading of Replicated Latent Stores21 Jul 2026
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflows12 Jun 2026
- 2026Soft-NBCE: Entropy-Weighted Chunk Fusion for Long-Context31 May 2026
- 2026Context Memorization for Efficient Long Context Generation18 May 2026
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibration12 May 2026
- 2026A Queueing-Theoretic Framework for Stability Analysis of LLM Inference with KV Cache Memory Constraints6 May 2026
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks5 Mar 2026
- 2026InfoFlow KV: Information-Flow-Aware KV Recomputation for Long Context5 Mar 2026
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attention6 Feb 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
38 more
- 2026Parallel Context-of-Experts Decoding for Retrieval Augmented Generation13 Jan 2026
- 2025Schema for In-Context Learning14 Oct 2025
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025Automatic Fact-checking in English and Telugu30 Sep 2025
- 2025Learning to Summarize by Learning to Quiz: Adversarial Agentic Collaboration for Long Document Summarization25 Sep 2025
- 2025FastLongSpeech: Enhancing Large Speech-Language Models for Efficient Long-Speech Processing20 Jul 2025
- 2025Knowledge Fusion via Bidirectional Information Aggregation11 Jul 2025
- 2025Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis8 Jul 2025
- 2025Reranking-based Generation for Unbiased Perspective Summarization19 Jun 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025Enhancing Complex Instruction Following for Large Language Models with Mixture-of-Contexts Fine-tuning17 May 2025
- 2025Enhancing Software Development with Context-Aware Conversational Agents: A User Study on Developer Interactions with Chatbots13 May 2025
- 2025Rethinking Invariance in In-context Learning8 May 2025
- 2025MateICL: Mitigating Attention Dispersion in Large-Scale In-Context Learning2 May 2025
- 2025Efficient Distributed Retrieval-Augmented Generation for Enhancing Language Model Performance15 Apr 2025
- 2025Bridging LMS and generative AI: dynamic course content integration (DCCI) for enhancing student satisfaction and engagement via the ask ME assistant4 Apr 2025
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Models18 Mar 2025
- 2025Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attention11 Mar 2025
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolation20 Feb 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2025Vision-centric Token Compression in Large Language Model2 Feb 2025
- 2025Shared DIFF Transformer29 Jan 2025
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansion25 Jan 2025
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmap13 Jan 2025
- 2025End-to-End Long Document Summarization using Gradient Caching3 Jan 2025
- 2024LLMs are Also Effective Embedding Models: An In-depth Overview17 Dec 2024
- 2024Optimizing Automatic Summarization of Long Clinical Records Using Dynamic Context Extension:Testing and Evaluation of the NBCE Method13 Nov 2024
- 2024The Future of Intelligent Healthcare: A Systematic Analysis and Discussion on the Integration and Impact of Robots Using Large Language Models for Healthcare5 Nov 2024
- 2024KBLaM: Knowledge Base augmented Language Model14 Oct 2024
- 2024Differential Transformer7 Oct 2024
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughly3 Oct 2024
- 2024Block-Attention for Efficient Prefilling14 Sep 2024
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systems7 Sep 2024
- 2024Memorization in In-Context Learning21 Aug 2024
- 2024MaxMind: A Memory Loop Network to Enhance Software Productivity based on Large Language Models7 Aug 2024
- 2024LAMPO: Large Language Models as Preference Machines for Few-shot Ordinal Classification6 Aug 2024
- 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learning24 Jul 2024
50 newest of 81 All 81 (JSON)
- 2023In-Context Retrieval-Augmented Language Modelscited by 702
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 108
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2024Block-Attention for Efficient Prefillingcited by 37
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
- 2024Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generationcited by 15
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
- 2026InfoFlow KV: Information-Flow-Aware KV Recomputation for Long Contextcited by 3
- 2025Efficient Distributed Retrieval-Augmented Generation for Enhancing Language Model Performancecited by 2
- 2026Parallel Context-of-Experts Decoding for Retrieval Augmented Generationcited by 1
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generationcited by 0
- 2026InfoFlow KV: Information-Flow-Aware KV Recomputation for Long Context5 Mar 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
- 2026Parallel Context-of-Experts Decoding for Retrieval Augmented Generation13 Jan 2026
- 2025Efficient Distributed Retrieval-Augmented Generation for Enhancing Language Model Performance15 Apr 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2024Block-Attention for Efficient Prefilling14 Sep 2024
- 2024Memory3: Language Modeling with Explicit Memory1 Jul 2024
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMs21 Jun 2024
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection25 May 2024
- 2024Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generation10 Apr 2024
- 2023In-Context Retrieval-Augmented Language Models31 Jan 2023
- 2024A Survey on Large Language Model-Based Game Agentscited by 112
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 83
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)cited by 58
- 2025Learning to Summarize by Learning to Quiz: Adversarial Agentic Collaboration for Long Document Summarizationcited by 1
- 2025Enhancing Software Development with Context-Aware Conversational Agents: A User Study on Developer Interactions with Chatbotscited by 0
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflowscited by 0
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agentscited by 0
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents6 Sep 2026
- 2026Towards Direct Latent-Space Synthesis for Parallel Branches in LLM-Agent Workflows12 Jun 2026
- 2025Learning to Summarize by Learning to Quiz: Adversarial Agentic Collaboration for Long Document Summarization25 Sep 2025
- 2025Enhancing Software Development with Context-Aware Conversational Agents: A User Study on Developer Interactions with Chatbots13 May 2025
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmap13 Jan 2025
- 2024A Survey on Large Language Model-Based Game Agents2 Apr 2024
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)16 Jan 2024
- 2025Vision-centric Token Compression in Large Language Modelcited by 21
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 14
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2026A Queueing-Theoretic Framework for Stability Analysis of LLM Inference with KV Cache Memory Constraintscited by 2
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memorycited by 1
- 2026MaSRead: Content-Addressed Reading of Replicated Latent Storescited by 0
- 2026What It Costs to Compose, Rebuild, and Correct Precomputed Memory31 Aug 2026
- 2026MaSRead: Content-Addressed Reading of Replicated Latent Stores21 Jul 2026
- 2026A Queueing-Theoretic Framework for Stability Analysis of LLM Inference with KV Cache Memory Constraints6 May 2026
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolation20 Feb 2025
- 2025Vision-centric Token Compression in Large Language Model2 Feb 2025
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 76
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2025Rethinking Invariance in In-context Learningcited by 8
- 2023Revisiting Parallel Context Windows: A Frustratingly Simple Alternative and Chain-of-Thought Deteriorationcited by 5
- 2025Schema for In-Context Learningcited by 4
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2025Schema for In-Context Learning14 Oct 2025
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025Rethinking Invariance in In-context Learning8 May 2025
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansion25 Jan 2025
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models3 Feb 2024
- 2023Revisiting Parallel Context Windows: A Frustratingly Simple Alternative and Chain-of-Thought Deterioration24 May 2023
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Modelscited by 25
- 2024MGIMM: Multi-Granularity Instruction Multimodal Model for Attribute-Guided Remote Sensing Image Detailed Descriptioncited by 3
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibrationcited by 1
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibration12 May 2026
- 2025Identifying and Mitigating Position Bias of Multi-image Vision-Language Models18 Mar 2025
- 2024MGIMM: Multi-Granularity Instruction Multimodal Model for Attribute-Guided Remote Sensing Image Detailed Description7 Jun 2024
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2024Jamba: A Hybrid Transformer-Mamba Language Model28 Mar 2024
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2023The Earth is Flat because...: Investigating LLMs' Belief towards Misinformation via Persuasive Conversationcited by 109
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2023BAMBOO: A Comprehensive Benchmark for Evaluating Long Text Modeling Capacities of Large Language Modelscited by 53
12 most cited of 47 All 47 (JSON)
- 2026Soft-NBCE: Entropy-Weighted Chunk Fusion for Long-Context31 May 2026
- 2026Context Memorization for Efficient Long Context Generation18 May 2026
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks5 Mar 2026
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attention6 Feb 2026
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
- 2025Automatic Fact-checking in English and Telugu30 Sep 2025
- 2025FastLongSpeech: Enhancing Large Speech-Language Models for Efficient Long-Speech Processing20 Jul 2025
- 2025Knowledge Fusion via Bidirectional Information Aggregation11 Jul 2025
- 2025Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis8 Jul 2025
- 2025Reranking-based Generation for Unbiased Perspective Summarization19 Jun 2025
- 2025Enhancing Complex Instruction Following for Large Language Models with Mixture-of-Contexts Fine-tuning17 May 2025
- 2025MateICL: Mitigating Attention Dispersion in Large-Scale In-Context Learning2 May 2025
12 newest of 47 All 47 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024ACER: Automatic Language Model Context Extension via Retrieval
- 2024Two are better than one: Context window extension with multi-grained self-injection
- 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
- 2026Stacked from One: Multi-Scale Self-Injection for Context Window Extension
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
- 2025Beyond In-Context Learning: Aligning Long-form Generation of Large Language Models via Task-Inherent Attribute Guidelines
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding