mlsanityData to 14 Oct 2026

StagFormer: Time Staggering Transformer Decoding for RunningLayers In Parallel

arXiv 2501.15665 ↗First posted 26 Jan 2025cs.LG cs.AIcited by 2

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  7. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  8. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  9. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  10. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  12. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
19 more
  1. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  2. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  3. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
  4. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
  5. 2022Efficiently Scaling Transformer Inferencecited by 539
  6. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
  7. 2024A Survey on Knowledge Distillation of Large Language Modelscited by 284
  8. 2022Matryoshka Representation Learningcited by 282
  9. 2023SpecTr: Fast Speculative Decoding via Optimal Transportcited by 129
  10. 2023Accelerating Transformer Inference for Translation via Parallel Decodingcited by 124
  11. 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 111
  12. 2022Block-Recurrent Transformerscited by 110
  13. 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
  14. 2024Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?cited by 65
  15. 2023Are More Layers Beneficial to Graph Transformers?cited by 15
  16. 2021Staircase Attention for Recurrent Processing of Sequencescited by 14
  17. 2023Alternating Updates for Efficient Transformerscited by 13
  18. 2023Sci-CoT: Leveraging Large Language Models for Enhanced Knowledge Distillation in Small Models for Scientific QAcited by 13
  19. 2024Efficient Stagewise Pretraining via Progressive Subnetworkscited by 10

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.