ParallelComp: Parallel Long-Context Compressor for Length Extrapolation
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Extrapolating ultra-long contexts (text length >128K) remains a major challenge for large language models (LLMs), as most training-free extrapolation methods are not only severely limited by memory bottlenecks, but also suffer from the attention sink, which restricts their scalability and effectiveness in practice. In this work, we propose ParallelComp, a parallel long-context compression method that effectively overcomes the memory bottleneck, enabling 8B-parameter LLMs to extrapolate from 8K to 128K tokens on a single A100 80GB GPU in a training-free setting. ParallelComp splits the input into chunks, dynamically evicting redundant chunks and irrelevant tokens, supported by a parallel KV cache eviction mechanism. Importantly, we present a systematic theoretical and empirical analysis of attention biases in parallel attention-including the attention sink, recency bias, and middle bias-and reveal that these biases exhibit distinctive patterns under ultra-long context settings. We further design a KV cache eviction technique to mitigate this phenomenon. Experimental results show that ParallelComp enables an 8B model (trained on 8K context) to achieve 91.17% of GPT-4's performance under ultra-long contexts, outperforming closed-source models such as Claude-2 and Kimi-Chat. We achieve a 1.76x improvement in chunk throughput, thereby achieving a 23.50x acceleration in the prefill stage with negligible performance loss and pave the way for scalable and robust ultra-long contexts extrapolation in LLMs. We release the code at https://github.com/menik1126/ParallelComp.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 37 of its 45 references that are in the map. First posted on arXiv 20 Feb 2025.
Builds on
37 of 45 references.
Closest ancestors · 4
Same direction, newest first
- 2024Star Attention: Efficient LLM Inference over Long Sequences26 Nov
- 2024When Attention Sink Emerges in Language Models: An Empirical View14 Oct
- 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspective4 Oct
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
Other references · 33
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
21 more
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
- 2025Qwen2.5-1M Technical Reportcited by 164
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2025APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encodingcited by 29
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
- 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
Built on by
Citing papers per year: 2025: 9; 2026: 5.
14 papers.
Sort:
By area:
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learningcited by 57
- 2025CATP: Contextually Adaptive Token Pruning for Efficient and Enhanced Multimodal In-Context Learningcited by 18
- 2025Understanding the Mixture-of-Experts with Nadaraya-Watson Kernelcited by 6
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solvingcited by 5
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTScited by 5
- 2025SAS: Simulated Attention Scorecited by 4
- 2025Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Datacited by 4
- 2026SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipeliningcited by 4
- 2025Self-Adjust Softmaxcited by 3
- 2025ATTS: Asynchronous Test-Time Scaling via Conformal Predictioncited by 3
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Modelscited by 2
- 2026CodeComp: Structural KV Cache Compression for Agentic Codingcited by 1
- 2026Prefilling-dLLM v2: Learned Chunk Routing for Long-Context Diffusion Language Models13 Oct 2026
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2026CodeComp: Structural KV Cache Compression for Agentic Coding11 Apr 2026
- 2026SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipelining11 Feb 2026
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Models4 Feb 2026
- 2025Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data29 Oct 2025
- 2025Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel30 Sep 2025
- 2025ATTS: Asynchronous Test-Time Scaling via Conformal Prediction18 Sep 2025
- 2025CATP: Contextually Adaptive Token Pruning for Efficient and Enhanced Multimodal In-Context Learning11 Aug 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTS8 Jul 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learning2 Jun 2025
2 more
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solving29 May 2025
- 2025Self-Adjust Softmax25 Feb 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learningcited by 57
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTScited by 5
- 2025Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Datacited by 4
- 2025ATTS: Asynchronous Test-Time Scaling via Conformal Predictioncited by 3
- 2025Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data29 Oct 2025
- 2025ATTS: Asynchronous Test-Time Scaling via Conformal Prediction18 Sep 2025
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTS8 Jul 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learning2 Jun 2025
- 2026CodeComp: Structural KV Cache Compression for Agentic Coding11 Apr 2026
- 2026Beyond Sparse Weights: When Is Attention Compressible?cited by 0
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solvingcited by 5
- 2025SAS: Simulated Attention Scorecited by 4
- 2026SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipeliningcited by 4
- 2025Self-Adjust Softmaxcited by 3
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Modelscited by 2
- 2026SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipelining11 Feb 2026
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Models4 Feb 2026
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solving29 May 2025
- 2025Self-Adjust Softmax25 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression
- 2025InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPU
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
- 2025HCAttention: Extreme KV Cache Compression via Heterogeneous Attention Computing for LLMs
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices