atlas

Research map / Architectures and efficiency / Attention and transformers

nGPT: Normalized Transformer with Representation Learning on the Hypersphere

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 0 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.

Proposes nGPT, a Transformer whose embeddings, attention and MLP matrices and hidden states are all unit-norm on a hypersphere with learnable eigen learning rates, reaching the same validation loss 4-20x faster than GPT on OpenWebText.

Problem

Standard Transformers have unconstrained weight and hidden-state norms, which make training slow and ill-conditioned (e.g., high condition numbers in attention matrices) and rely on weight decay and normalization layers.

Approach

Normalize all embedding-dimension vectors of matrices, embeddings and hidden states to the unit hypersphere, treat each attention/MLP block output as a gradient-like direction, and update the hidden state via learnable per-dimension eigen learning rates (LERP on the sphere with renormalization as Riemannian retraction), removing weight decay and warmup.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace GPT with the normalized Transformer (nGPT)GPT · OpenWebText, 1k contexttraining speedup (tokens): 4xHelped
replace GPT with the normalized Transformer (nGPT)GPT · OpenWebText, 4k contexttraining speedup (tokens): 10xHelped
replace GPT with the normalized Transformer (nGPT)GPT · OpenWebText, 8k contexttraining speedup (tokens): 20xHelped
replace GPT with the normalized Transformer (nGPT)GPT · OpenWebText, 1B model, 4k contexttraining speedup (iterations): 20k iterations vs 200k iterationsHelped
use fixed values for s_qk, s_u, and s_v and a single global learnable s_z (ablation)nGPT · OpenWebText downstream tasksaccuracy: ≤0.3% in validation lossHurt
remove QK normalization (ablation)nGPT · in-distribution downstream tasksaccuracyNo clear effect
remove QK normalization (ablation)nGPT · length extrapolationperplexityHurt
remove QK normalization (ablation)nGPT · QK normalization computationcomputational savings: about 12%Helped
use unconstrained rather than positive eigen learning rates (ablation)nGPT · experimental resultsperformanceNo clear effect
simplify per-element scaling factors or eigen learning rates to a learned scalar or fixed value (ablation)nGPT · validation lossvalidation loss: ≤0.3%Mixed

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText PG19

Benchmarks: downstream task suite (average accuracy) PG19 perplexity WMT14 FR-EN translation (BLEU)

Metrics: validation loss downstream accuracy perplexity BLEU condition number

Baselines: GPT (Transformer with RMSNorm, weight decay) ReZero NormFormer

Builds on: Transformer RoPE SwiGLU Adam QK-normalization

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