A phase transition between positional and semantic learning in a solvable model of dot-product attention<sup>*</sup>

Abstract Many empirical studies have provided evidence for the emergence of algorithmic mechanisms (abilities) in the learning of language models, that lead to qualitative improvements in the model capabilities. Yet, a theoretical characterization of how such mechanisms emerge remains elusive. In this paper, we take a step in this direction by providing a tight theoretical analysis of the emergence of semantic attention in a solvable model of dot-product attention. More precisely, we consider a non-linear self-attention layer with trainable tied and low-rank query and key matrices. In the asymptotic limit of high-dimensional data and using a comparably large number of training samples, we provide a tight closed-form characterization of the global minimum of the non-convex empirical loss landscape. We show that this minimum corresponds to either a positional attention mechanism (with tokens attending to each other based on their respective positions) or a semantic attention mechanism (with tokens attending to each other based on their meaning), and evidence of an emergent phase transition from the former to the latter with increasing sample complexity. Finally, we compare the dot-product attention layer to a linear positional baseline, and show that it outperforms the latter using the semantic mechanism, provided it has access to sufficient data.

Authors

Publication Details

Journal
Journal of Statistical Mechanics Theory and Experiment
Published
2025-07-01
DOI
https://doi.org/10.1088/1742-5468/ade137
Citations
3
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
7.44
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A phase transition between positional and semantic learning in a solvable model of dot-product attention*

Freya Behrens, Hugo Cui, Florent Krząkała, Lenka Zdeborová
3 citations
Journal of Statistical Mechanics Theory and Experiment
Neural Networks and Applications
7.44
article

A phase transition between positional and semantic learning in a solvable model of dot-product attention*

Freya Behrens, Hugo Cui, Florent Krząkała, Lenka Zdeborová
article en
3 citations

Abstract

Abstract Many empirical studies have provided evidence for the emergence of algorithmic mechanisms (abilities) in the learning of language models, that lead to qualitative improvements in the model capabilities. Yet, a theoretical characterization of how such mechanisms emerge remains elusive. In this paper, we take a step in this direction by providing a tight theoretical analysis of the emergence of semantic attention in a solvable model of dot-product attention. More precisely, we consider a non-linear self-attention layer with trainable tied and low-rank query and key matrices. In the asymptotic limit of high-dimensional data and using a comparably large number of training samples, we provide a tight closed-form characterization of the global minimum of the non-convex empirical loss landscape. We show that this minimum corresponds to either a positional attention mechanism (with tokens attending to each other based on their respective positions) or a semantic attention mechanism (with tokens attending to each other based on their meaning), and evidence of an emergent phase transition from the former to the latter with increasing sample complexity. Finally, we compare the dot-product attention layer to a linear positional baseline, and show that it outperforms the latter using the semantic mechanism, provided it has access to sufficient data.

Journal of Statistical Mechanics Theory and ExperimentVol. 2025(7)
Openalex Percentile: Top 3%
Neural Networks and Applications
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A phase transition between positional and semantic learning in a solvable model of dot-product attention<sup>*</sup> — Freya Behrens, Hugo Cui, et al. · Journal of Statistical Mechanics Theory and Experiment (2025) | TGRS Research Map | TGRS