mlsanityData to 13 Oct 2026

InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPU

arXiv 2502.08910 ↗First posted 13 Feb 2025cs.CL cs.LGcited by 7

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

In modern large language models (LLMs), handling very long context lengths presents significant challenges as it causes slower inference speeds and increased memory costs. Additionally, most existing pre-trained LLMs fail to generalize beyond their original training sequence lengths. To enable efficient and practical long-context utilization, we introduce InfiniteHiP, a novel, and practical LLM inference framework that accelerates processing by dynamically eliminating irrelevant context tokens through a modular hierarchical token pruning algorithm. Our method also allows generalization to longer sequences by selectively applying various RoPE adjustment methods according to the internal attention patterns within LLMs. Furthermore, we offload the key-value cache to host memory during inference, significantly reducing GPU memory pressure. As a result, InfiniteHiP enables the processing of up to 3 million tokens on a single L40s 48GB GPU -- 3x larger -- without any permanent loss of context information. Our framework achieves an 18.95x speedup in attention decoding for a 1 million token context without requiring additional training. We implement our method in the SGLang framework and demonstrate its effectiveness and practicality through extensive evaluations.

Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 19 of its 27 references that are in the map. First posted on arXiv 13 Feb 2025.

Builds on

19 of 27 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
  2. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 16

  1. 2017Attention Is All You Needcited by 60,106
  2. 2024The Llama 3 Herd of Modelscited by 14,486
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,637
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,137
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,386
  7. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 572
  8. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 378
  9. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 193
  10. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 135
  11. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 122
  12. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
4 more
  1. 2024EXAONE 3.5: Series of Large Language Models for Real-world Use Casescited by 51
  2. 2024EXAONE 3.0 7.8B Instruction Tuned Language Modelcited by 20
  3. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attentioncited by 12
  4. 2023SEA: Sparse Linear Attention with Estimated Attention Maskcited by 10

Built on by

Cited by year (2026 to 13 Oct)

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

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025HGCA: Hybrid GPU-CPU Attention for Long Context LLM Inference
  2. 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
  3. 2025Breaking the Boundaries of Long-Context LLM Inference: Adaptive KV Management on a Single Commodity GPU
  4. 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache
  5. 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference
  6. 2025MOM: Memory-Efficient Offloaded Mini-Sequence Inference for Long Context Language Models
  7. 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reduction
  8. 2025HeadInfer: Memory-Efficient LLM Inference by Head-wise Offloading