mlsanityData to 14 Oct 2026

ParallelComp: Parallel Long-Context Compressor for Length Extrapolation

arXiv 2502.14317 ↗First posted 20 Feb 2025cs.CLcited by 14

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

  1. 2024Star Attention: Efficient LLM Inference over Long Sequences26 Nov
  2. 2024When Attention Sink Emerges in Language Models: An Empirical View14 Oct
  3. 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspective4 Oct
  4. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun

Other references · 33

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  8. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  9. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
  10. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  11. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  12. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
21 more
  1. 2017The NarrativeQA Reading Comprehension Challengecited by 597
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
  3. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
  4. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
  5. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
  6. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
  7. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
  8. 2025Qwen2.5-1M Technical Reportcited by 164
  9. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
  10. 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
  11. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
  12. 2022Parallel Context Windows for Large Language Modelscited by 81
  13. 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
  14. 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
  15. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
  16. 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
  17. 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
  18. 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
  19. 2025APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encodingcited by 29
  20. 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
  21. 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17

Built on by

Cited by year (2026 to 14 Oct)

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

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
  2. 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression
  3. 2025InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPU
  4. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
  5. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
  6. 2025HCAttention: Extreme KV Cache Compression via Heterogeneous Attention Computing for LLMs
  7. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs
  8. 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices