acceptodds
Under review as a conference paper at ICLR 2027

Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutions

Abstract

Sparse attention patterns are prevalent in trained transformers, yet the mechanisms that favor their emergence during training remain poorly understood. In this work, we investigate the role of softmax in shaping these patterns by studying the gradient flow dynamics of an attention head trained to produce a fixed bias vector for all inputs, a task that dense and sparse attention solve equally well. Leveraging symmetries of this task, we show that the dynamics of the head simplify to a *value–softmax* model , where and are a learnable value matrix and attention vector. We prove that gradient flow on this model drives the attention scores toward low entropy: under logistic loss they converge to a one-hot vector, and under square loss we obtain quantitative polarization bounds. Finally, we use experiments in trained transformers to examine how the choice of attention nonlinearity affects the influence of individual tokens and sparse attention patterns.

open until 14 Dec 2026

est. 32% chance this paper gets accepted at ICLR 2027.

Reject 68%Accept 32%

What do you think this paper will get?

All positions stay anonymous.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.