mlsanityData to 14 Oct 2026

Block Transformer: Global-to-Local Language Modeling for Fast Inference

arXiv 2406.02657 ↗First posted 4 Jun 2024cs.CL cs.AI cs.LGcited by 32

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

Abstract (arXiv)

We introduce the Block Transformer which adopts hierarchical global-to-local modeling to autoregressive transformers to mitigate the inference bottlenecks associated with self-attention. Self-attention requires the key-value (KV) cache of all previous sequences to be retrieved from memory at every decoding step to retrieve context information, leading to two primary bottlenecks during batch inference. First, there is a significant delay in obtaining the first token, as the information of the entire prompt must first be processed to prefill the KV cache. Second, computation of subsequent tokens is bottlenecked by the high memory I/O demand of fetching the entire KV cache, which grows linearly with sequence length, incurring quadratic memory reads overall. We design the Block Transformer to strategically mitigate these costs, by incorporating coarsity and locality into an integrated global-to-local architecture. At the lower layers, we aggregate tokens into fixed size blocks to apply attention across the entire sequence at coarse-grained detail, to capture the global context while minimizing KV cache overhead. At upper layers, we apply attention within each block to decode individual tokens, to model fine-grained details with a lightweight local KV cache. We pretrain vanilla and Block Transformers from scratch and demonstrate that Block Transformers reach 10--20x inference throughput compared to vanilla transformers with equivalent perplexity and zero-shot task performance. Code is available at https://github.com/itsnamgyu/block-transformer.

Key facts. Cited by 32 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 80 of its 89 references that are in the map. First posted on arXiv 4 Jun 2024.

Builds on

80 of 89 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attention21 May
  2. 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
  3. 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Models17 May
  4. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  5. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  7. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  8. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 72

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  9. 2020Scaling Laws for Neural Language Modelscited by 6,586
  10. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  11. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  12. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
38 more
  1. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  3. 2020Longformer: The Long-Document Transformercited by 3,413
  4. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  5. 2023Mistral 7Bcited by 3,164
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  11. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  13. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  14. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  15. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  16. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  17. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  18. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  19. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
  20. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
  21. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  22. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
  23. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
  24. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  25. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  26. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  27. 2018Universal Transformerscited by 647
  28. 2021Transformer in Transformercited by 633
  29. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertaintycited by 578
  30. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  31. 2022Efficiently Scaling Transformer Inferencecited by 539
  32. 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 526
  33. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
  34. 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 379
  35. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
  36. 2022Confident Adaptive Language Modelingcited by 310
  37. 2023Think before you speak: Training Language Models With Pause Tokenscited by 264
  38. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258

50 most cited of 72 All 72 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 18; 2026: 8.

32 papers.

Sort:

By area:

  1. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  2. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
  3. 2025Self-Training Elicits Concise Reasoning in Large Language Modelscited by 99
  4. 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 72
  5. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 60
  6. 2024SynerGen-VL: Towards Synergistic Image Understanding and Generation with Vision Experts and Token Foldingcited by 42
  7. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compressioncited by 41
  8. 2025Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inferencecited by 18
  9. 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 14
  10. 2026SpiralFormer: Looped Transformers Can Learn Hierarchical Dependencies via Multi-Resolution Recursioncited by 12
  11. 2025Learning to Skip the Middle Layers of Transformerscited by 10
  12. 2025Continuous Autoregressive Language Modelscited by 10
20 more
  1. 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 9
  2. 2024Beyond Next Token Prediction: Patch-Level Training for Large Language Modelscited by 7
  3. 2024MultiMed: Multilingual Medical Speech Recognition via Attention Encoder Decodercited by 7
  4. 2025Context-level Language Modeling by Learning Predictive Context Embeddingscited by 6
  5. 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generationcited by 4
  6. 2025HAMburger: Accelerating LLM Inference via Token Smashingcited by 4
  7. 2026Orthrus: Memory-Efficient Parallel Token Generation via Dual-View Diffusioncited by 4
  8. 2025Controllably Efficient Language Modelscited by 3
  9. 2025MambaTron: Efficient Cross-Modal Point Cloud Enhancement using Aggregate Selective State Space Modelingcited by 2
  10. 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 2
  11. 2026Prefix Sliding for efficient test-time scalingcited by 2
  12. 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformerscited by 1
  13. 2025GQ-VAE: A gated quantized VAE for learning variable length tokenscited by 1
  14. 2026Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Modelscited by 1
  15. 2025Synergy: End-to-end Concept Modelcited by 0
  16. 2025From Characters to Tokens: Dynamic Grouping with Hierarchical BPEcited by 0
  17. 2025PHOTON: Hierarchical Autoregressive Modeling for Lightspeed and Memory-Efficient Language Generationcited by 0
  18. 2026Distilling Token-Trained Models into Byte-Level Modelscited by 0
  19. 2026Reasoning to Align: Implicit Reasoning in Diffusion Transformers for Video Editingcited by 0
  20. 2026Shared Global KV with Layer-Specific Local Historycited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Model Partitioning for Low-Latency Inference at the Edge
  2. 2026Block-Based Double Decoders
  3. 2023Block-State Transformers
  4. 2024Accelerating Large Language Model Inference with Self-Supervised Early Exits
  5. 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
  6. 2024A Method for Building Large Language Models with Predefined KV Cache Capacity
  7. 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference
  8. 2025HeadInfer: Memory-Efficient LLM Inference by Head-wise Offloading