Softmax attention powers Transformers, but its inner workings are still not fully understood. Earlier theoretical work on Gaussian prompts found that in the infinite-prompt limit, softmax attention collapses to a linear map, losing the query-dependent selection that sets it apart from simpler linear attention. A new preprint extends this analysis to Gaussian mixtures, which preserve the tractability of Gaussian data while adding latent structure, multimodality, and nonlinear dependencies.

The paper shows that softmax attention can represent and learn optimal solutions to supervised classification and denoising through gradient-based methods. On linear tasks, it performs as well as linear attention. On nonlinear tasks, however, it exploits query-dependent context selection to go beyond what linear attention can achieve.

These results give a clearer picture of when attention is "linear when it can, selective when it must." The advantage of softmax attention appears to lie in its ability to adapt to latent structure in the data, rather than in a universal superiority over linear attention.