The reviewed record of science sign in
Pith

arxiv: 2411.07176 · v3 · pith:E6TGNSWX · submitted 2024-11-11 · cs.CL · cs.AI· cs.LG

More Expressive Attention with Negative Weights

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:E6TGNSWXrecord.jsonopen to challenge →

classification cs.CL cs.AIcs.LG
keywords attentionmodelssoftmaxtraditionalweightsenablesenhancesheads
0
0 comments X
read the original abstract

We propose a novel attention mechanism, named Cog Attention, that enables attention weights to be negative for enhanced expressiveness, which stems from two key factors: (1) Cog Attention enhances parameter flexibility. For example, unlike traditional softmax attention heads that use a static output-value (OV) matrix to delete or copy inputs that the heads attend to, Cog Attention naturally learns to use the sign of dynamic query-key (QK) inner products to represent these operations. This enables Cog Attention to perform multiple operations simultaneously within a single head. Meanwhile, Cog Attention's OV matrix can focus more on refinement or modification. (2) Cog Attention enhances the model's robustness against representational collapse by preventing the ``over-squashing'' of earlier tokens into later positions. We develop Transformer-like models which use Cog Attention as attention modules, including decoder-only models at various scales for language modeling and U-ViT diffusion models for image generation. Experiments show that models using Cog Attention exhibit superior performance compared to those employing traditional softmax attention modules. Our approach suggests a promising research direction for rethinking and breaking the entrenched constraints of traditional softmax attention, such as the requirement for non-negative weights.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. DnA: Denoising Attention for Visual Tasks

    cs.CV 2026-06 unverdicted novelty 5.0

    DnA adds positive/negative query interactions projected into separated subspaces to standard attention, reporting 0.8% absolute gain on ImageNet-1K with ViT-B and smaller gains on video tasks.