Context Parallelism for Scalable Million-Token Inference
Not on the map. Why?
Abstract (arXiv)
We present context parallelism for long-context large language model inference, which achieves near-linear scaling for long-context prefill latency with up to 128 H100 GPUs across 16 nodes. Particularly, our method achieves 1M context prefill with Llama3 405B model in 77s (93% parallelization efficiency, 63% FLOPS utilization) and 128K context prefill in 3.8s. We develop two lossless exact ring attention variants: pass-KV and pass-Q to cover a wide range of use cases with the state-of-the-art performance: full prefill, persistent KV prefill and decode. Benchmarks on H100 GPU hosts inter-connected with RDMA and TCP both show similar scalability for long-context prefill, demonstrating that our method scales well using common commercial data center with medium-to-low inter-host bandwidth.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 39 of its 52 references that are in the map. First posted on arXiv 4 Nov 2024.
Builds on
39 of 52 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
27 more
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 595
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2022Efficiently Scaling Transformer Inferencecited by 529
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
- 2018Online normalizer calculation for softmaxcited by 154
- 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
- 2024LoongServe: Efficiently Serving Long-Context Large Language Models with Elastic Sequence Parallelismcited by 110
- 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 71
- 2024USP: A Unified Sequence Parallelism Approach for Long Context Generative AIcited by 58
- 2023Striped Attention: Faster Ring Attention for Causal Transformerscited by 52
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2024KV-Runahead: Scalable Causal LLM Inference by Parallel Key-Value Cache Generationcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 10; 2026: 14.
25 papers.
Sort:
By area:
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstructioncited by 25
- 2025FSPO: Few-Shot Optimization of Synthetic Preferences Personalizes to Real Userscited by 14
- 2025Inferix: A Block-Diffusion based Next-Generation Inference Engine for World Simulationcited by 8
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Trainingcited by 7
- 2025Helix Parallelism: Rethinking Sharding Strategies for Interactive Multi-Million-Token LLM Decodingcited by 7
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMscited by 4
- 2025Tensor-Parallelism with Partially Synchronized Activationscited by 4
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agentscited by 4
- 2026GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Servingcited by 3
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelismcited by 1
13 more
- 2025Design Space Exploration of DMA based Finer-Grain Compute Communication Overlapcited by 1
- 2025Mesh-Attention: A New Communication-Efficient Distributed Attention with Improved Data Localitycited by 1
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 1
- 2026Stage-Aware Communication Scheduling for Disaggregated LLM Servingcited by 1
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabricscited by 1
- 2026Achieving Cloud-Grade SLOs for Local Mixture-of-Experts Inference through CPU-GPU Hybrid Designcited by 1
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottleneckscited by 0
- 2026NEST: Network- and Memory-Aware Device Placement For Distributed Deep Learningcited by 0
- 2026The qs Inequality: Quantifying the Double Penalty of Mixture-of-Experts at Inferencecited by 0
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Servingcited by 0
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decodingcited by 0
- 2026KernelFlume: Elastic Core-Attention Scaling for Agentic Long-Context Decodingcited by 0
- 2026SPLASH: Switching Parallel Layouts of Attention with Seamless Handoff for LLM Servingcited by 0
- 2026SPLASH: Switching Parallel Layouts of Attention with Seamless Handoff for LLM Serving29 Sep 2026
- 2026KernelFlume: Elastic Core-Attention Scaling for Agentic Long-Context Decoding28 Jun 2026
- 2026Achieving Cloud-Grade SLOs for Local Mixture-of-Experts Inference through CPU-GPU Hybrid Design9 Jun 2026
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabrics31 May 2026
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decoding20 May 2026
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents19 May 2026
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Serving17 Apr 2026
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstruction9 Apr 2026
- 2026GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Serving26 Mar 2026
- 2026Stage-Aware Communication Scheduling for Disaggregated LLM Serving18 Mar 2026
- 2026The qs Inequality: Quantifying the Double Penalty of Mixture-of-Experts at Inference9 Mar 2026
- 2026NEST: Network- and Memory-Aware Device Placement For Distributed Deep Learning6 Mar 2026
13 more
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks5 Mar 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2025Mesh-Attention: A New Communication-Efficient Distributed Attention with Improved Data Locality24 Dec 2025
- 2025Design Space Exploration of DMA based Finer-Grain Compute Communication Overlap11 Dec 2025
- 2025Inferix: A Block-Diffusion based Next-Generation Inference Engine for World Simulation25 Nov 2025
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelism9 Nov 2025
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Serving24 Aug 2025
- 2025Helix Parallelism: Rethinking Sharding Strategies for Interactive Multi-Million-Token LLM Decoding7 Jul 2025
- 2025Tensor-Parallelism with Partially Synchronized Activations24 Jun 2025
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMs23 May 2025
- 2025FSPO: Few-Shot Optimization of Synthetic Preferences Personalizes to Real Users26 Feb 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training20 Nov 2024
- 2025Helix Parallelism: Rethinking Sharding Strategies for Interactive Multi-Million-Token LLM Decodingcited by 7
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
- 2026GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Servingcited by 3
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelismcited by 1
- 2026Stage-Aware Communication Scheduling for Disaggregated LLM Servingcited by 1
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabricscited by 1
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Servingcited by 0
- 2026KernelFlume: Elastic Core-Attention Scaling for Agentic Long-Context Decodingcited by 0
- 2026SPLASH: Switching Parallel Layouts of Attention with Seamless Handoff for LLM Servingcited by 0
- 2026SPLASH: Switching Parallel Layouts of Attention with Seamless Handoff for LLM Serving29 Sep 2026
- 2026KernelFlume: Elastic Core-Attention Scaling for Agentic Long-Context Decoding28 Jun 2026
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabrics31 May 2026
- 2026Accuracy Is Speed: Towards Long-Context-Aware Routing for Distributed LLM Serving17 Apr 2026
- 2026GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Serving26 Mar 2026
- 2026Stage-Aware Communication Scheduling for Disaggregated LLM Serving18 Mar 2026
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelism9 Nov 2025
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Serving24 Aug 2025
- 2025Helix Parallelism: Rethinking Sharding Strategies for Interactive Multi-Million-Token LLM Decoding7 Jul 2025
- 2026Achieving Cloud-Grade SLOs for Local Mixture-of-Experts Inference through CPU-GPU Hybrid Designcited by 1
- 2026The qs Inequality: Quantifying the Double Penalty of Mixture-of-Experts at Inferencecited by 0
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decodingcited by 0
- 2026Achieving Cloud-Grade SLOs for Local Mixture-of-Experts Inference through CPU-GPU Hybrid Design9 Jun 2026
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decoding20 May 2026
- 2026The qs Inequality: Quantifying the Double Penalty of Mixture-of-Experts at Inference9 Mar 2026
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstructioncited by 25
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Trainingcited by 7
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMscited by 4
- 2025Tensor-Parallelism with Partially Synchronized Activationscited by 4
- 2025Design Space Exploration of DMA based Finer-Grain Compute Communication Overlapcited by 1
- 2025Mesh-Attention: A New Communication-Efficient Distributed Attention with Improved Data Localitycited by 1
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 1
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottleneckscited by 0
- 2026NEST: Network- and Memory-Aware Device Placement For Distributed Deep Learningcited by 0
- 2026Scal3R: Scalable Test-Time Training for Large-Scale 3D Reconstruction9 Apr 2026
- 2026NEST: Network- and Memory-Aware Device Placement For Distributed Deep Learning6 Mar 2026
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks5 Mar 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2025Mesh-Attention: A New Communication-Efficient Distributed Attention with Improved Data Locality24 Dec 2025
- 2025Design Space Exploration of DMA based Finer-Grain Compute Communication Overlap11 Dec 2025
- 2025Tensor-Parallelism with Partially Synchronized Activations24 Jun 2025
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMs23 May 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training20 Nov 2024