paper-with-me

Papers

More Expressive Attention with Negative Weights

2024-11-11 · Ang Lv, Ruobing Xie, Shuaipeng Li, Jiayi Liao, Xingwu Sun, Zhanhui Kang, Di Wang, Rui Yan

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.

📄 PDF Abstract BibTeX arXiv:2411.07176

Code (1)

trestad/cogattn 공식 구현 pytorch

Tasks

DecoderImage GenerationLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Focus 설명 없음
Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Compositional De-Attention Networks

2019-12-01 · NeurIPS 2019 12 · Yi Tay, Anh Tuan Luu, Aston Zhang, Shuohang Wang 외

Attentional models are distinctly characterized by their ability to learn relative importance, i.e., assigning a different weight to input values. This paper proposes a new quasi-attention that is compositional in nature…

Machine TranslationNatural Language InferenceOpen-Domain Question AnsweringQuestion Answering+3

Synthesizing Human Faces using Latent Space Factorization and Local Weights (Extended Version)

2021-07-19 · Minyoung Kim, Young J. Kim

We propose a 3D face generative model with local weights to increase the model's variations and expressiveness. The proposed model allows partial manipulation of the face while still learning the whole face mesh. For thi…

Signed Dual Attention: Capturing Signed Dependencies in Time Series Forecasting

2026-06-03 · Balthazar Courvoisier, Tristan Cazenave arxiv

Initially developed for natural language processing, Transformer architectures and attention mechanisms are now central to a wide range of deep learning models, including applications in time series forecasting. A standa…

Time Series Forecasting

Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse

2025-05-22 · Josh Alman, Zhao Song

Attention mechanisms lie at the heart of modern large language models (LLMs). Straightforward algorithms for forward and backward (gradient) computation take quadratic time, and a line of work initiated by [Alman and Son…

FEAST: Fully Connected Expressive Attention for Spatial Transcriptomics

2026-03-26 · Taejin Jeong, Joohyeok Kim, Jinyeong Kim, Chanyoung Kim 외 arxiv

Spatial Transcriptomics (ST) provides spatially-resolved gene expression, offering crucial insights into tissue architecture and complex diseases. However, its prohibitive cost limits widespread adoption, leading to sign…