English

Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutions

Machine Learning 2026-03-09 v1 Optimization and Control Machine Learning

Abstract

Understanding the intricate non-convex training dynamics of softmax-based models is crucial for explaining the empirical success of transformers. In this article, we analyze the gradient flow dynamics of the value-softmax model, defined as L(Vσ(a)){L}(\mathbf{V} \sigma(\mathbf{a})), where V\mathbf{V} and a\mathbf{a} are a learnable value matrix and attention vector, respectively. As the matrix times softmax vector parameterization constitutes the core building block of self-attention, our analysis provides direct insight into transformer's training dynamics. We reveal that gradient flow on this structure inherently drives the optimization toward solutions characterized by low-entropy outputs. We demonstrate the universality of this polarizing effect across various objectives, including logistic and square loss. Furthermore, we discuss the practical implications of these theoretical results, offering a formal mechanism for empirical phenomena such as attention sinks and massive activations.

Keywords

Cite

@article{arxiv.2603.06248,
  title  = {Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutions},
  author = {Aditya Varre and Mark Rofin and Nicolas Flammarion},
  journal= {arXiv preprint arXiv:2603.06248},
  year   = {2026}
}

Comments

35 pages, 21 figures

R2 v1 2026-07-01T11:06:47.613Z