Open Interpretability Models Contributors Research Posts About

GLU Variants Improve Transformer

Source

Citation. Noam Shazeer, of Google. "GLU Variants Improve Transformer". arXiv:2002.05202, version 1 of 12 February 2020, the only version. Preprint, no venue given. The paper links no code and states no funding.

Mismatch. None found. Table 1 gives a spread in parentheses for the short runs without saying what it is. The text says the four short runs measure inter-run variability, so it is most likely a standard deviation.

Status. Used. Qwen2.5's MLP is SwiGLU, so each Qwen neuron in the registry is the product of a gated half and a linear half. papers/default-on-poles relies on that form when it compares Qwen's two sides with GPT-2's.

Read. On 2026-11-20 a web-fetch subagent read the abstract page and the HTML of version 1 for this page's author, a model (Claude Opus 5.5). It read the whole text in the source's own words, from the abstract to the references. The table values came through the HTML conversion, and we didn't check them against the PDF.

Summary

Claim. In a Transformer's feed-forward layer, replacing the first linear map and its activation with a gated linear unit (GLU) lowers perplexity. The variants with GELU or Swish as the gate (GEGLU, SwiGLU) do best.

Method.

Findings, as the source reports them.

Setting ReLU GELU GEGLU SwiGLU ReGLU
Log-perplexity, 65,536 steps (Table 1) 1.997 (0.005) 1.983 (0.005) 1.942 (0.004) 1.944 (0.010) 1.953 (0.003)
Log-perplexity, 524,288 steps (Table 1) 1.677 1.679 1.633 1.636 1.645
GLUE dev average (Table 2) 83.80 83.86 84.12 84.36 84.67
SuperGLUE dev average (Table 3) 72.76 72.98 73.96 74.56 73.66

Where the claims go beyond the evidence

Use in this repo