Non-sum-to-one Attention for Robust Transformers

This direction is split into other directions: sigmoid-based attention. Its last version stays readable and citable here.

Version 1 of 1104 papers164 conceptsfrozen 2026-10-04

The standard Transformer architecture is built on a mathematical constraint known as the "probability cage." In the self-attention mechanism, the Softmax function ensures that the attention weights for any given query sum exactly to one. While this normalization helps stabilize training, it forces every token to "compete" for a fixed budget of attention.

As Oliver Richter and Roger Wattenhofer argue in Normalized Attention Without Probability Cage, this constraint limits the model's expressivity. Recent research suggests that breaking this cage—allowing attention weights to sum to less than one or even zero—is the key to solving some of the most persistent "enigmas" in Large Language Models (LLMs), including massive activation outliers and the strange dominance of the first token.

The Problem of the Attention Sink

When a Transformer layer processes a sequence, there are often moments where a specific attention head finds nothing relevant to the current query. Ideally, the head should perform a "no-op" (no operation) and pass through a zero signal. However, Softmax is mathematically incapable of producing a vector of zeros. Because the weights must sum to one, the model is forced to put that "energy" somewhere.

Researchers like Yelysei Bondarenko, Markus Nagel, and Tijmen Blankevoort in Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing discovered that models learn a "workaround" for this: they dump all irrelevant attention into a single token—usually the first token in the sequence (the "attention sink").

To make this sink token appear irrelevant to the rest of the network, the model must learn to generate massive activation outliers in its hidden states to effectively "zero out" the contribution of that token in later stages. These outliers, sometimes thirty times larger than average values, are the primary reason LLMs are difficult to quantize into efficient INT8 or 4-bit formats.

Softmax-1: Providing a Mathematical Exit

A simple but profound fix is the Softmax-1 (or unit-offset) function. As detailed by Chengcheng Ma, Prannay Kaul, and Ismail Elezi in From Attention to Activation: Unravelling the Enigmas of Large Language Models, this variant adds a constant value of one to the denominator of the Softmax function:

$$\text{Softmax}_1(x_i) = \frac{e^{x_i}}{1 + \sum e^{x_j}}$$

This "1" acts as an implicit "null token." If all $e^{x_i}$ values are small, the total attention sum approaches zero rather than being forced to one. This allows the model to "abstain" from attending to anything, eliminating the need for attention sinks and the resulting activation outliers. Jerry Yao-Chieh Hu and colleagues further grounded this in associative memory theory, showing in Outlier-Efficient Hopfield Layers that this "abstention" capability makes models significantly more robust to quantization.

Sigmoid Attention: From Competition to Independence

While Softmax-1 allows for a "no-op," it still retains a competitive relationship between tokens: increasing attention on token A still decreases the potential attention for token B. In many tasks, this zero-sum competition is physically or logically incorrect.

In Sigmoid Self-Attention is Better than Softmax Self-Attention, Fanqi Yan and Nhat Ho argue that element-wise Sigmoid activation is often superior. By applying a Sigmoid to each attention score independently, the model can:

  1. Attend to multiple items simultaneously without diluting the signal of any single one.
  2. Ignore all items if none are relevant.
  3. Avoid the "winner-take-all" effect where a single dominant feature suppresses secondary but important context.

This independence is crucial in specialized domains. For instance, Hawoong Jeong used Sigmoid-based attention in AgentNet to model complex physical systems like bird flocks. In physics, forces are additive, not relative; the influence of one neighbor shouldn't automatically decrease just because another neighbor is present. Similarly, in medical imaging, Linfeng Ye and Mert Pilanci showed in ASMIL that Sigmoid attention allows for better localization of multiple cancerous regions in pathology slides, where Softmax would typically highlight only the single most "obvious" area.

Broadening the Scope: Beyond Probability

The move away from Softmax is not just about Sigmoid or Softmax-1. It represents a broader shift toward unconstrained or differently-constrained attention:

  • Linear Normalization: Soroush Abbasi Koohpayegani and Hamed Pirsiavash proposed SimA, which uses simple $\ell_1$-normalization. This allows for negative influence between tokens, which their experiments show can be a viable and more efficient alternative to strictly positive attention.
  • Relational Kernels: In video understanding, Manjin Kim and Minsu Cho found that removing Softmax in Relational Self-Attention allows the model to capture subtractive interactions, which are essential for detecting motion gradients and relative changes over time.
  • Spectral Centering: Alireza Naderi and Jared Tanner demonstrated in Mind the Gap that simply subtracting the mean from the attention matrix—centering it—can remove the dominant spectral outliers caused by Softmax, preventing the "rank collapse" that makes deep Transformers unstable.

By treating attention as a flexible feature transformation rather than a rigid probability distribution, these researchers are building a new generation of Transformers that are more numerically stable, easier to deploy on hardware, and better at capturing the independent, multi-faceted nature of real-world data.

Papers in this version

Showing 60 of 104 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_non_sum_to_one_attention_for_robust_tran_0cc28374,
  title = {Non-sum-to-one Attention for Robust Transformers},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-sum-to-one-attention-for-robust-transformers/rdr_0cc283748b4244c887695bdb1f671bd4},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_non_sum_to_one_attention_for_robust_tran_0cc28374_v1,
  title = {Non-sum-to-one Attention for Robust Transformers},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-sum-to-one-attention-for-robust-transformers/rdr_0cc283748b4244c887695bdb1f671bd4/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}