Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMs
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
This study introduces bifurcated attention, a method designed to enhance language model inference in shared-context batch decoding scenarios. Our approach addresses the challenge of redundant memory IO costs, a critical factor contributing to latency in high batch sizes and extended context lengths. Bifurcated attention achieves this by strategically dividing the attention mechanism during incremental decoding into two separate GEMM operations: one focusing on the KV cache from prefill, and another on the decoding process itself. While maintaining the computational load (FLOPs) of standard attention mechanisms, bifurcated attention ensures precise computation with significantly reduced memory IO. Our empirical results show over 2.1× speedup when sampling 16 output sequences and more than 6.2× speedup when sampling 32 sequences at context lengths exceeding 8k tokens on a 7B model that uses multi-head attention. The efficiency gains from bifurcated attention translate into lower latency, making it particularly suitable for real-time applications. For instance, it enables massively parallel answer generation without substantially increasing latency, thus enhancing performance when integrated with post-processing techniques such as re-ranking.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 58 of its 73 references that are in the map. First posted on arXiv 13 Mar 2024.
Builds on
58 of 73 references.
Closest ancestors · 1
Same direction, newest first
Other references · 57
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 821
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2022Efficiently Scaling Transformer Inferencecited by 529
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decodingcited by 295
- 2022Teaching language models to support answers with verified quotescited by 290
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 227
- 2022Co-Writing Screenplays and Theatre Scripts with Language Models: An Evaluation by Industry Professionalscited by 191
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2023Learning Performance-Improving Code Editscited by 103
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 1.
7 papers.
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inferencecited by 19
- 2024Accelerating Direct Preference Optimization with Prefix Sharingcited by 3
- 2025Learned Structure in Cartridges: Keys as Shareable Routers in Self-Studied Representationscited by 2
- 2026DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contextscited by 2
- 2026DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts14 May 2026
- 2025Learned Structure in Cartridges: Keys as Shareable Routers in Self-Studied Representations23 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024Accelerating Direct Preference Optimization with Prefix Sharing27 Oct 2024
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Sampling31 Jul 2024
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference30 Mar 2024
Similar, not cited
Close in wording, no citation either way
- 2026Multi-Head Low-Rank Attention
- 2025Hardware-Efficient Attention for Fast Decoding
- 2026ART: Attention Run-time Termination for Efficient Large Language Model Decoding
- 2026LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decoding
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMs
- 2026Elastic Threshold Attention: Learned Contextual Sparsity for Long-Context Decoding
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs
- 2026MAC-Attention: a Match-Amend-Complete Scheme for Fast and Accurate Attention Computation