paper-with-me

Papers

On the Invariants of Softmax Attention

2026-04-06 · Wonsuk Lee arxiv

Softmax attention maps every query--key interaction into a probability distribution, but the underlying structure remains largely unexplored. We define the \emph{energy field}, the row-centered attention logit, and show that it exhibits invariant properties across models, architectures, and inputs. Two classes of invariants emerge. \emph{Mechanism-level} invariants follow from the algebraic structure of softmax attention. They include a per-row zero-sum constraint, a rank bound determined by the head dimension, and spectral signatures that follow from them. \emph{Model-level} regularities are not required by the mechanism, yet hold in every autoregressive language model we test, spanning several architecture families. The energy field distributes its variance over key positions without concentrating at a few. This delocalization traces to a property of the key matrix we call \emph{key incoherence}. These invariants have practical consequences. The rank bound confines the energy field to a low-dimensional subspace. Key incoherence yields a per-head training monitor. All results are verified at multiple context lengths and input texts.

📄 PDF Abstract BibTeX arXiv:2605.02907

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Softmax as a Lagrangian-Legendrian Seam

2025-09-17 · Christopher R. Lee-Jenkins arxiv

This note offers a first bridge from machine learning to modern differential geometry. We show that the logits-to-probabilities step implemented by softmax can be modeled as a geometric interface: two potential-generated…

Algebraic Invariants of Lightning Self-Attention

2026-04-17 · Yulia Alexandr, Hao Duan, Guido Montúfar arxiv

We study the polynomial coefficients of lightning self-attention as coordinates of an algebraic variety. We identify linear and nonlinear families of algebraic invariants, including Chow-type, low-rank, Veronese-type, an…

Learning Non-Linear Invariants for Unsupervised Out-of-Distribution Detection

2024-07-04 · Lars Doorenbos, Raphael Sznitman, Pablo Márquez-Neila

The inability of deep learning models to handle data drawn from unseen distributions has sparked much interest in unsupervised out-of-distribution (U-OOD) detection, as it is crucial for reliable deep learning models. De…

Out-of-Distribution Detection

On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective

2025-07-31 · Gabriel Mongaras, Eric C. Larson arxiv

Since its introduction, softmax attention has become the backbone of modern transformer architectures due to its expressiveness and scalability across a wide range of tasks. However, the main drawback of softmax attentio…

Self-Adjust Softmax

2025-02-25 · Chuanyang Zheng, Yihang Gao, Guoxuan Chen, Han Shi 외

The softmax function is crucial in Transformer attention, which normalizes each row of the attention scores with summation to one, achieving superior performances over other alternative functions. However, the softmax fu…