atlas

Research map / Architectures and efficiency / Attention and transformers

Simplifying Transformer Blocks

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 10 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that a Transformer block can be simplified by removing skip connections, value/projection parameters, sequential sub-blocks, and normalisation layers while matching Pre-LN training speed per update and gaining ~16% throughput with ~15% fewer parameters.

Problem

Standard Pre-LN transformer blocks are complex and brittle; it is unclear which components (skip connections, value/projection matrices, sequential sub-blocks, normalisation) are necessary for fast training.

Approach

Combine signal propagation theory with empirical findings to build skipless attention (Shaped Attention with identity-initialised, fixed value/projection matrices), then use a parallel attention/MLP block with no skip connections, downweighted MLP residual, and optionally no normalisation, matching Pre-LN per-update speed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the Pre-LN block with SASBERT · GLUEGLUE: 78.9_{\pm.7} -> 78.4_{\pm.8}No clear effect
replace the Pre-LN block with SAS-PBERT · GLUESpeed: 1 -> 1.16Helped
replace the Pre-LN block with SASBERT · GLUEParams: 120M -> 101MHelped
replace the Parallel block with SAS-PBERT · GLUEGLUE: 78.5_{\pm.6} -> 78.3_{\pm.4}No clear effect
replace the Parallel block with SAS-PBERT · GLUESpeed: 1.05 -> 1.16Helped
remove normalisation layers from SAS-P (ablation)SAS-P · GLUEGLUEHurt
remove value and projection parameters by fixing them to identity (ablation)skipless attention block · CodeParrotper-update training speedHelped
add trainable value and projection parameters initialized to identity (ablation)Pre-LN block · CodeParrotloss reduction per updateHurt
add Shaped Attention instead of Value-SkipInit attention (ablation)SAS and SAS-P · CodeParrottraining performanceHelped
remove the MLP skip connection (ablation)SAS block · CodeParrottraining speedHurt
linearise ReLU using Leaky ReLU (ablation)skipless MLP block · CodeParrottraining speedHurt
replace the linear learning-rate decay schedule with cosine decay (ablation)SAS and baseline models · CodeParrotfinal performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: CodeParrot The Pile GLUE Languini Books

Benchmarks: GLUE CodeParrot next-token prediction loss Pile masked language modelling loss Languini books perplexity

Metrics: training loss per step wall-clock runtime speed GLUE score parameter count throughput

Baselines: Pre-LN Parallel block Value-SkipInit Crammed BERT

Builds on: Value-SkipInit Shaped Attention Pre-LN transformer parallel transformer block Crammed BERT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy