atlas

Research map / Architectures and efficiency / Attention and transformers

Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Long-context KV and memory attention · 15 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.

Systematically compares 30 gating variants in softmax attention on 15A2B MoE and 1.7B dense models trained on up to 3.5T tokens, finding a head-specific sigmoid gate after SDPA improves performance, stability, and long-context extrapolation by adding non-linearity and input-dependent sparsity that removes attention sinks.

Problem

Gating is widely used in neural networks but its specific effects in softmax attention are poorly understood, and prior gated-attention comparisons are confounded by other architectural factors.

Approach

Apply a head-specific, query-dependent sigmoid gate to the scaled dot-product attention output (G1). The gate adds non-linearity to the low-rank W_V W_O mapping and induces input-dependent sparsity that suppresses attention sinks and massive activations, improving stability and context-length extension.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add head-specific elementwise sigmoid gating after SDPA15A2B MoE · 400B tokensAvg PPL: 6.026 -> 5.761Helped
Add elementwise sigmoid gating after SDPA1.7B dense · 400B tokensAvg PPL: 7.499 -> 7.404Helped
Add elementwise sigmoid gating after SDPA1.7B dense · 3.5T tokensAvg PPL: 6.180 -> 6.130Helped
Add SDPA output gating1.7B dense, 48 layers · 1T tokens, max LR 8.0 × 10^-3training convergenceHelped
Move the gate from SDPA output to value projection (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.820Hurt
Move the gate to key projection (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 6.016Hurt
Move the gate to query projection (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.981Hurt
Move gating after the dense output layer (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 6.017Hurt
Use headwise rather than elementwise gating (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.792Hurt
Share gate scores across attention heads (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.801Hurt
Use additive SiLU gating instead of multiplicative sigmoid gating (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.821Hurt
Replace sigmoid with SiLU for multiplicative gating (ablation)15A2B MoE · 400B tokensAvg PPL: 5.761 -> 5.822Hurt

Surprising findings

Limitations

Experimental setup

Datasets: 3.5T high-quality token pretraining corpus (multilingual, math, general knowledge)

Benchmarks: Hellaswag MMLU GSM8k HumanEval C-eval CMMLU RULER

Metrics: perplexity accuracy RULER score

Baselines: Baseline MoE (q32, kv4) Switch Heads sandwich norm Forgetting Transformer Quantizable Transformers gated attention

Builds on: softmax attention Switch Heads Native Sparse Attention YaRN sandwich 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