mlsanityData to 7 Oct 2026

Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMs

arXiv 2403.08845 ↗First posted 13 Mar 2024cs.LG cs.AIcited by 7

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

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 57

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  7. 2020Scaling Laws for Neural Language Modelscited by 6,411
  8. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  10. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  11. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  12. 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  3. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  5. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  6. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  8. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  9. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  10. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  13. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  14. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  15. 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
  16. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  17. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  18. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  19. 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
  20. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  21. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  22. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 821
  23. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  24. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  25. 2022Efficiently Scaling Transformer Inferencecited by 529
  26. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  27. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  28. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  29. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  30. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  31. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decodingcited by 295
  32. 2022Teaching language models to support answers with verified quotescited by 290
  33. 2020Unsupervised Translation of Programming Languagescited by 262
  34. 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 227
  35. 2022Co-Writing Screenplays and Theatre Scripts with Language Models: An Evaluation by Industry Professionalscited by 191
  36. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  37. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  38. 2023Learning Performance-Improving Code Editscited by 103

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 2; 2026: 1.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Multi-Head Low-Rank Attention
  2. 2025Hardware-Efficient Attention for Fast Decoding
  3. 2026ART: Attention Run-time Termination for Efficient Large Language Model Decoding
  4. 2026LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decoding
  5. 2025CoDec: Prefix-Shared Decoding Kernel for LLMs
  6. 2026Elastic Threshold Attention: Learned Contextual Sparsity for Long-Context Decoding
  7. 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs
  8. 2026MAC-Attention: a Match-Amend-Complete Scheme for Fast and Accurate Attention Computation