StagFormer: Time Staggering Transformer Decoding for RunningLayers In Parallel
Not on the map. Why?
Abstract (arXiv)
Decoding in a Transformer based language model is inherently sequential as a token's embedding needs to pass through all the layers in the network before the generation of the next token can begin. In this work, we propose a new architecture StagFormer (Staggered Transformer), which staggers execution along the sequence axis and thereby enables parallelizing the decoding process along the depth of the model. We achieve this by breaking the dependency of the token representation at time step i in layer l upon the representations of tokens until time step i from layer l-1. Instead, we stagger the execution and only allow a dependency on token representations until time step i-1. The later sections of the Transformer still get access to the "rich" representations from the prior section but only from those token positions which are one time step behind. StagFormer allows for different sections of the model to be executed in parallel yielding a potential speedup in decoding while being quality neutral in our simulations. We also explore many natural extensions of this idea. We present how weight-sharing across the different sections being staggered can be more practical in settings with limited memory. We explore the efficacy of using a bounded window attention to pass information from one section to another which helps drive further latency gains for some applications. We also explore the scalability of the staggering idea over more than 2 sections of the Transformer. Finally, we show how one can approximate a recurrent model during inference using weight-sharing. This variant can lead to substantial gains in quality for short generations while being neutral in its latency impact.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 31 of its 39 references that are in the map. First posted on arXiv 26 Jan 2025.
Builds on
31 of 39 references.
References · 31
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
19 more
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 284
- 2022Matryoshka Representation Learningcited by 282
- 2023SpecTr: Fast Speculative Decoding via Optimal Transportcited by 129
- 2023Accelerating Transformer Inference for Translation via Parallel Decodingcited by 124
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 111
- 2022Block-Recurrent Transformerscited by 110
- 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
- 2024Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?cited by 65
- 2023Are More Layers Beneficial to Graph Transformers?cited by 15
- 2021Staircase Attention for Recurrent Processing of Sequencescited by 14
- 2023Alternating Updates for Efficient Transformerscited by 13
- 2023Sci-CoT: Leveraging Large Language Models for Enhanced Knowledge Distillation in Small Models for Scientific QAcited by 13
- 2024Efficient Stagewise Pretraining via Progressive Subnetworkscited by 10
Built on by
Citing papers per year: 2025: 2.
2 papers.
- 2025Parallel Loop Transformer for Efficient Test-Time Computation Scalingcited by 24
- 2025Leveraging the true depth of LLMscited by 7
- 2025Parallel Loop Transformer for Efficient Test-Time Computation Scaling28 Oct 2025
- 2025Leveraging the true depth of LLMs5 Feb 2025