atlas

Research map / Architectures and efficiency / Attention and transformers

ZeroS: Zero‑Sum Linear Attention for Efficient Transformers

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 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 ZeroS, a linear-time attention that removes the constant 1/t zero-order softmax term and reweights the zero-sum residuals with learned gates, enabling signed weights and contrastive operations.

Problem

Linear attention is O(N) but typically underperforms softmax attention; convex-combination weights only permit additive blending and accumulate uniform bias that dilutes attention in long contexts.

Approach

Subtract the uniform 1/t zero-order softmax term and the first-order deviation, then gate the resulting zero-sum residuals with learned sigmoid gates and multiply by a signed cosine angular term. Prefix-sum scans of three d x d states make this linear time while allowing negative weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Reintroduce the 0-th order softmax term (ablation)ZeroS · WikiText-103PPL: 23.91 -> 24.05 (val); 24.61 -> 24.74 (test)Hurt
Reintroduce the 0-th order softmax term (ablation)ZeroS · MADAverage: 73.5 -> 69.4Hurt
Replace reweighted zero-sum softmax with standard softmax (ablation)ZeroS · MADAverage: 73.5 -> 67.6Hurt
Replace reweighted zero-sum softmax with standard softmax (ablation)ZeroS · WikiText-103PPL: 23.91 -> 24.21 (val); 24.61 -> 24.97 (test)Hurt
Remove gating (ablation)ZeroS · MADAverage: 73.5 -> 70.8Hurt
Remove normalization (ablation)ZeroS · MADAverage: 73.5 -> 69.4Hurt
Remove the angular component (ablation)ZeroS · MADAverage: 73.5 -> 42.2Hurt
Remove positional embeddings from the angular component (ablation)ZeroS · MADAverage: 73.5 -> 46.1Hurt
Use additive positional embeddings in the angular component (ablation)ZeroS · MADAverage: 73.5 -> 69.0Hurt
Remove the radial component (ablation)ZeroS · MADAverage: 73.5 -> 65.9Hurt
Use alternative radial scoring (linear projection, quadratic form, 2-distance, or averaging) (ablation)ZeroS · MADAverage: 73.5 -> 70.0; 70.8; 71.1; 73.0Hurt
Replace causal linear ZeroS with zero-sum reweighting on standard softmax attentionZeroS · MADAverage: 73.5 -> 75.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: MAD MQAR RegBench WikiText-103 OpenWebText2 ImageNet-1k Weather Solar ETT

Benchmarks: MAD MQAR RegBench WikiText-103 OpenWebText2 ImageNet-1k time series forecasting benchmarks

Metrics: accuracy perplexity top-1 accuracy MSE MAE latency throughput memory

Baselines: Hyena Mamba GLA DeltaNet LinAttn Transformer FLASH cosFormer HGRN2 GatedDeltaNet Mamba2 iTransformer

Builds on: linear attention RoPE Taylor expansion of softmax Differential Transformer

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