ZeroS: Zero-Sum Linear Attention for Efficient Transformers

Jiecheng Lu, Xu Han, Yan Sun, Viresh Pati, Yubin Kim +2 more
2/5/2026
cs.LGcs.AIstat.ML
transformer-attention

No confident code implementation found for this paper.

Abstract

Linear attention methods offer Transformers $O(N)$ complexity but typically underperform standard softmax attention. We identify two fundamental limitations affecting these approaches: the restriction to convex combinations that only permits additive information blending, and uniform accumulated weight bias that dilutes attention in long contexts.

Show full abstract

We propose Zero-Sum Linear Attention (ZeroS), which addresses these limitations by removing the constant zero-order term $1/t$ and reweighting the remaining zero-sum softmax residuals. This modification creates mathematically stable weights, enabling both positive and negative values and allowing a single attention layer to perform contrastive operations. While maintaining $O(N)$ complexity, ZeroS theoretically expands the set of representable functions compared to convex combinations. Empirically, it matches or exceeds standard softmax attention across various sequence modeling benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2026zeros,
  title  = {ZeroS: Zero-Sum Linear Attention for Efficient Transformers},
  author = {Jiecheng Lu and Xu Han and Yan Sun and Viresh Pati and Yubin Kim and Siddhartha Somani and Shihao Yang},
  year   = {2026},
  eprint = {2602.05230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.05230v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.05230.svg)](https://codeofpaper.com/paper/2602.05230)

Discussion