Lune

ICLR2024顶会

Simplifying Transformer Blocks

Bobby He, Thomas Hofmann

摘要

A simple design recipe for deep Transformers is to compose identical building blocks. But standard transformer blocks are far from simple, interweaving attention and MLP sub-blocks with skip connections&normalisation layers in precise arrangements. This complexity leads to brittle architectures, where seemingly minor changes can significantly reduce training speed, or render models untrainable. In this work, we ask to what extent the standard transformer block can be simplified? Combining signal propagation theory and empirical observations, we motivate modifications that allow many block components to be removed with no loss of training speed, including skip connections, projection or value parameters, sequential sub-blocks and normalisation layers. In experiments on both autoregressive decoder-only and BERT encoder-only models, our simplified transformers emulate the per-update training speed and performance of standard transformers, while enjoying 15% faster training throughput, and using 15% fewer parameters.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Models 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Models 引用了 Going deeper with Image Transformers
  • Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Models 引用了 On Layer Normalization in the Transformer Architecture
  • Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Models 引用了 High-Performance Large-Scale Image Recognition Without Normalization
  • Stronger Normalization-Free Transformers 引用了 On Layer Normalization in the Transformer Architecture
  • Stronger Normalization-Free Transformers 引用了 High-Performance Large-Scale Image Recognition Without Normalization
  • Going deeper with Image Transformers 引用了 High-Performance Large-Scale Image Recognition Without Normalization
  • Understanding and Minimising Outlier Features in Transformer Training 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Understanding and Minimising Outlier Features in Transformer Training 引用了 Going deeper with Image Transformers
  • Understanding and Minimising Outlier Features in Transformer Training 引用了 Scaling Vision Transformers to 22 Billion Parameters
  • Understanding and Minimising Outlier Features in Transformer Training 引用了 On Layer Normalization in the Transformer Architecture
  • Understanding and Minimising Outlier Features in Transformer Training 引用了 High-Performance Large-Scale Image Recognition Without Normalization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper13

  1. DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted AveragingMatteo Pagliardini, Amirkeivan Mohtashami, François Fleuret, Martin JaggiNeurIPS 2024 · 60 次引用
  2. Understanding and Minimising Outlier Features in Transformer TrainingBobby He, Lorenzo Noci, Daniele Paliotta, Imanol Schlag 等NeurIPS 2024 · 27 次引用
  3. Transformers Get Stable: An End-to-End Signal Propagation Theory for Language ModelsAkhil Kedia, Mohd Abbas Zaidi, Sushil Khyalia, Jungho Jung 等ICML 2024 · 16 次引用
  4. Stronger Normalization-Free TransformersMingzhi Chen, Taiming Lu, Jiachen Zhu, Mingjie Sun 等CVPR 2026 · 16 次引用
  5. Clustering in Deep Stochastic TransformersLev Fedorov, Michael Sander, Romuald Elie, Pierre Marion 等ICML 2026 · 7 次引用

它引用的 Paper25

  1. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng 等ICML 2020 · 1,388 次引用
  2. Going deeper with Image TransformersHugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve 等ICCV 2021 · 1,279 次引用
  3. Scaling Vision Transformers to 22 Billion ParametersMostafa Dehghani, Josip Djolonga, Basil Mustafa, Piotr Padlewski 等ICML 2023 · 848 次引用
  4. High-Performance Large-Scale Image Recognition Without NormalizationAndy Brock, Soham De, Samuel L. Smith, Karen SimonyanICML 2021 · 613 次引用
  5. Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 次引用

相关 Paper

  1. Attention-Only Transformers via Unrolled Subspace DenoisingPeng Wang, Yifu Lu, Yaodong Yu, Druv Pai 等ICML 2025
  2. An Efficient Transformer Decoder with Compressed Sub-layersYanyang Li, Ye Lin, Tong Xiao, Jingbo ZhuAAAI 2021 · 32 次引用
  3. Pay Attention to MLPsHanxiao Liu, Zihang Dai, David R. So, Quoc V. LeNeurIPS 2021 · 912 次引用
  4. Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal PropagationBobby He, James Martens, Guodong Zhang, Aleksandar Botev 等ICLR 2023 · 5 次引用
  5. What Layers When: Learning to Skip Compute in LLMs with Residual GatesFilipe Laitenberger, Dawid Jan Kopiczko, Cees G. M. Snoek, Yuki M. AsanoICLR 2026 · 6 次引用
黄昏的海面,两侧是细线勾勒的悬崖