Specialization of softmax attention heads: insights from the high-dimensional single-location model

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sagitova, M., Duranthon, O., Zdeborová, L.
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908865955627008
author Sagitova, M.
Duranthon, O.
Zdeborová, L.
author_facet Sagitova, M.
Duranthon, O.
Zdeborová, L.
contents Multi-head attention enables transformer models to represent multiple attention patterns simultaneously. Empirically, head specialization emerges in distinct stages during training, while many heads remain redundant and learn similar representations. We propose a theoretical model capturing this phenomenon, based on the multi-index and single-location regression frameworks. In the first part, we analyze the training dynamics of multi-head softmax attention under SGD, revealing an initial unspecialized phase followed by a multi-stage specialization phase in which different heads sequentially align with latent signal directions. In the second part, we study the impact of attention activation functions on performance. We show that softmax-1 significantly reduces noise from irrelevant heads. Finally, we introduce the Bayes-softmax attention, which achieves optimal prediction performance in this setting.
format Preprint
id arxiv_https___arxiv_org_abs_2603_03993
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Specialization of softmax attention heads: insights from the high-dimensional single-location model
Sagitova, M.
Duranthon, O.
Zdeborová, L.
Machine Learning
Disordered Systems and Neural Networks
Multi-head attention enables transformer models to represent multiple attention patterns simultaneously. Empirically, head specialization emerges in distinct stages during training, while many heads remain redundant and learn similar representations. We propose a theoretical model capturing this phenomenon, based on the multi-index and single-location regression frameworks. In the first part, we analyze the training dynamics of multi-head softmax attention under SGD, revealing an initial unspecialized phase followed by a multi-stage specialization phase in which different heads sequentially align with latent signal directions. In the second part, we study the impact of attention activation functions on performance. We show that softmax-1 significantly reduces noise from irrelevant heads. Finally, we introduce the Bayes-softmax attention, which achieves optimal prediction performance in this setting.
title Specialization of softmax attention heads: insights from the high-dimensional single-location model
topic Machine Learning
Disordered Systems and Neural Networks
url https://arxiv.org/abs/2603.03993