NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Simplifying Transformer Blocks

Bobby He, Thomas Hofmann

TL;DR: Researchers have discovered that the complex "building blocks" of modern Transformers can be significantly stripped down without losing performance. By removing skip connections, normalization layers, and even half of the parameters in the attention sub-block, they created a simplified architecture that trains 16% faster and uses 15% fewer parameters while matching the convergence speed of standard models.

The Complexity of Standard Transformers

Since the original Attention is All You Need paper in 2017, the basic Transformer block has remained surprisingly unchanged. A standard block is a delicate "sandwich" of self-attention and Multi-Layer Perceptrons (MLPs), held together by skip connections (residual links) and normalization layers (like LayerNorm).

This complexity makes architectures brittle—seemingly minor changes to the arrangement can make a model impossible to train. Furthermore, there is a massive gap between the complex models used in industry and the simplified versions studied by theorists. The authors set out to bridge this gap, asking: Can we remove these "essential" components and still get a world-class model?

A Step-by-Step Simplification

The authors used Signal Propagation Theory—a mathematical framework predicting how information flows through a network at initialization—to guide their simplifications. Their approach followed a systematic removal process:

Comparison of standard Pre-LN, Parallel, and the proposed Simplified architectures.
  1. Removing Skip Connections: They replaced the standard attention skip connection with Shaped Attention. This involves initializing the attention matrix to have a strong "identity" component, essentially forcing tokens to "attend to themselves" more at the start, mimicking the effect of a skip connection.
  2. Removing Value and Projection Parameters ($W^V$ and $W^P$): In a standard Transformer, the attention mechanism uses four weight matrices (Query, Key, Value, and Projection). The authors found that in their simplified blocks, the Value and Projection matrices naturally drifted toward becoming identity matrices during training. They decided to fix them as identity matrices from the start, removing them as trainable parameters entirely.
  3. Parallelizing Sub-blocks: Instead of running Attention and then the MLP in sequence, they ran them in parallel and summed the results.
  4. Removing Normalization: By carefully tuning the initialization of the MLP (downweighting its contribution), they successfully removed LayerNorm/RMSNorm while maintaining training stability.

Key Insights: The "Identity" Bias

One of the most surprising discoveries was that in "skipless" blocks, the model's training dynamics naturally push the value and projection matrices toward identity.

Evaluation loss demonstrating that initializing Value and Projection matrices as identity approaches standard Pre-LN performance.

By removing $W^V$ and $W^P$, the researchers weren't just simplifying; they were aligning the architecture with how the model actually wants to learn. Because the "mixing" of information still happens via the Query and Key matrices, the model loses almost no expressivity while cutting the attention sub-block's parameters in half. Furthermore, the paper proves that if attention is initialized correctly (Shaped Attention), the traditional skip connection becomes redundant even in very deep networks.

Performance and Scaling

The authors validated their "Simplified Attention Sub-block" (SAS) across several major benchmarks, including CodeParrot (autoregressive), The Pile (bidirectional pre-training), GLUE (downstream tasks), and Languini (long sequences).

  • Speed & Efficiency: The simplified models achieved 16% higher training throughput (tokens processed per second) and used 15% fewer parameters.
  • Matching Performance: On the GLUE benchmark, the SAS-Parallel model achieved a score of 78.3, statistically indistinguishable from the standard Pre-LN Transformer's 78.9, despite being much leaner.
  • Superior Scaling: Previous attempts to remove skip connections struggled as models got deeper. The SAS blocks, however, scaled beautifully up to 72 layers, improving in performance as depth increased—just like standard Transformers.

Limitations and Future Work

While the results are impressive, the authors acknowledge a few hurdles:

  • Fine-tuning Instability: While normalization layers could be removed during massive pre-training, their absence caused some numerical instability (NaNs) during fine-tuning on specific downstream tasks.
  • Scale Limits: Experiments were conducted on models in the 100M to 300M parameter range. It remains to be seen if these simplifications hold up for Large Language Models (LLMs) with tens of billions of parameters.
  • Hardware Specifics: The 16% speedup was observed using standard PyTorch. With custom-written CUDA kernels designed specifically for this simplified layout, the speed gains could be even more dramatic.

Summary updated

BibTeX
@inproceedings{he2024simplifying,
  author = {Bobby He and Thomas Hofmann},
  title = {{Simplifying Transformer Blocks}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=RtDok9eS3s},
}
Figure