Standard attention mechanisms, governed by the Softmax operator, are fundamentally additive. By constraining attention weights to a probability distribution between 0 and 1, Transformers are limited to performing weighted averages of input features. While this "blending" is effective for many tasks, it prevents models from explicitly negating, subtracting, or suppressing information. A growing body of research suggests that allowing signed attention weights—weights that can be negative—transforms the attention head from a simple integrator into a powerful tool for contrastive reasoning and feature sculpting.
The Constraint of Non-Negativity
In a traditional Transformer, the Softmax function ensures that every token contributes positively to the final representation. However, as Soroush Abbasi Koohpayegani and Hamed Pirsiavash note in their work on SimA, this restriction prevents tokens from exerting an "inhibitory" influence on one another. This limitation manifests in several ways:
- Over-smoothing: In deep Graph Neural Networks, repeated positive aggregation causes node features to collapse into a uniform distribution. Soo Yong Lee et al. argue in AERO-GNN that negative coefficients are mathematically necessary to counteract this smoothing and preserve structural signals.
- Information Blurring: In Vision Transformers, the inability to assign negative weights can lead to a loss of discriminative detail. Weikang Meng et al. demonstrate in PolaFormer that explicitly modeling negative query-key interactions helps reconstruct the sharp details found in high-resolution images.
- Inverse Dynamics: For periodic data like time series, a "peak" in one variable might be perfectly correlated with a "valley" in another. Jiaming Ma et al. show in PHAT that standard attention misses these essential inverse relationships, which signed weights can easily capture.
Mechanisms for Signed Interaction
To move beyond the "weighted sum" paradigm, researchers have proposed several mathematical alternatives to Softmax that allow for bipolar or signed weights.
One common approach is replacing Softmax with the hyperbolic tangent ($tanh$) function. Yi Tay et al. introduced this in Compositional De-Attention (CoDA), allowing the model to perform vector subtraction. Similarly, in the context of image restoration, Yuning Cui et al. use $tanh$ in IRNeXt and DDANet to enable the model to actively suppress noise and artifacts rather than just reweighting them.
Other researchers focus on modifying the linear attention framework. Jiecheng Lu et al. propose ZeroS, which removes the constant "averaging" term from the Taylor expansion of Softmax. This forces weights to sum to zero, enabling the attention head to perform contrastive operations that highlight differences between tokens. In a different vein, Ang Lv et al. introduce the SignExp function in Cog Attention, which preserves the sign of the query-key dot product while applying exponential scaling, allowing for dynamic token deletion.
Intuition: From Blending to Sculpting
The primary intuition behind signed attention is that it grants the model a "subtractive" degree of freedom. In standard attention, if a model wants to ignore a piece of information, it can only reduce its weight toward zero. With signed attention, the model can actively negate that information.
This is particularly powerful in tasks requiring high precision. Yifei Zuo et al. explain in their work on Local Linear Attention that signed weights allow the model to subtract interfering information from the context, leading to sharper retrieval and better handling of non-stationary data. In video coding, Jian Yue et al. use this bidirectional control in GL-Fusion to correct structured distortions by emphasizing helpful features while suppressing harmful ones.
Theoretical Advantages
Beyond empirical performance, signed weights offer theoretical benefits for model expressivity. Yingqian Cui et al. provide a proof in Superiority of Multi-Head Attention showing that multi-head attention (MHA) is fundamentally more flexible than single-head attention because the combination of multiple heads allows the model to effectively assign negative weights to context examples. This subtractive capability allows MHA to fit complex functions that are unreachable for purely additive systems.
Furthermore, Zichen Miao et al. demonstrate in Coeff-Tuning that even at the level of head-mixing, allowing negative coefficients significantly boosts a model's ability to suppress irrelevant spatial information. By treating attention as a graph filter, the authors show that signed weights prevent the representational collapse that often plagues large-scale models.
Key Foundational Work
Compositional De-Attention Networks (2019) — contributed 1 concept elements to this direction.
Decoupled Spatial-Temporal Attention Network for Skeleton-Based Action-Gesture Recognition (2020) — contributed 1 concept elements to this direction.