atlas

Research map / Architectures and efficiency / Attention and transformers

From Attention to Activation: Unraveling the Enigmas of Large Language Models

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Long-context KV and memory attention

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.

Identifies first-token attention dominance and outlier activations in autoregressive Transformers, proposes softmax-1 to remove attention sinks on the first token and OrthoAdam (orthogonally rotated Adam) to suppress outlier hidden-state activations, improving robustness to basic quantisation.

Problem

Autoregressive Transformers show two anomalies: the first token dominates attention in most heads, and large outlier activations appear in specific hidden-state channels; these hurt quantisation and long-context extension.

Approach

Attribute first-token attention dominance to the softmax normalisation constraint (fixed by adding 1 to the denominator so heads can attend nowhere) and outlier activations to adaptive optimisers tracking moments in the parameter basis (fixed by applying random orthogonal rotations to gradients before Adam moment updates).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace canonical softmax with softmax-1GPT2 attention · C4 en validationfirst-token attention proportion: 0.527 -> 0.024Helped
Use OrthoAdam instead of AdamGPT2 with softmax-1 · C4 en validation, GPT2 130Mmean kurtosis, tokens >1: 144.2 -> 7.3Helped
Use softmax-1 and OrthoAdamGPT2 350M · C4 en validationPPL: 16.4 -> 16.3No clear effect
Use OrthoAdam and softmax-1GPT2 1.4B · C4 en validation, 4-bit Zeropoint weight quantizationPPL: 3577.7 -> 13.6Helped
Remove biases from linear layers (ablation)GPT2 with canonical softmax and Adam · C4 en validation, GPT2 130M ablationfirst-token attention proportion: 0.333 -> 0.308No clear effect
Remove positional encodings (ablation)GPT2 with canonical softmax and Adam · C4 en validation, GPT2 130M ablationfirst-token attention proportion: 0.333 -> 0.197Mixed
Replace absolute positional encoding with rotary encoding (ablation)GPT2 with canonical softmax and Adam · C4 en validation, GPT2 130M ablationPPL: 26.9 -> 25.6Helped
Replace absolute positional encoding with no positional encoding (ablation)GPT2 with canonical softmax and Adam · C4 en validation, GPT2 130M ablationPPL: 26.9 -> 27.4Hurt
Replace LayerNorm with RMSNorm-M (ablation)GPT2 with softmax-1 and Adam · C4 en validation, GPT2 130M ablationmean kurtosis: 244.7 -> 230.4No clear effect
Replace LayerNorm with RMSNorm-S (ablation)GPT2 with softmax-1 and Adam · C4 en validation, GPT2 130M ablationmean kurtosis: 244.7 -> 140.0Helped
Replace Adam with RMSProp (ablation)GPT2 with softmax-1 and RMSNorm-S · C4 en validation, GPT2 130M ablationmean kurtosis: 140.0 -> 70.5Helped
Replace Adam with RMSProp (ablation)GPT2 with softmax-1 and RMSNorm-S · C4 en validation, GPT2 130M ablationPPL: 26.9 -> 27.4Hurt

Surprising findings

Limitations

Experimental setup

Datasets: C4 en

Benchmarks: C4 en validation

Metrics: perplexity activation kurtosis max absolute activation first-token attention percentage quantised perplexity

Baselines: canonical softmax Adam RMSProp SGD LayerNorm LLM.int8 SmoothQuant

Builds on: Adam GPT-2 Llama 2 RMSNorm

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