Homogenized Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Koubbi, Hugo, Geshkovski, Borjan, Rigollet, Philippe
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911563002150912
author Koubbi, Hugo
Geshkovski, Borjan
Rigollet, Philippe
author_facet Koubbi, Hugo
Geshkovski, Borjan
Rigollet, Philippe
contents We study a random model of deep multi-head self-attention in which the weights are resampled independently across layers and heads, as at initialization of training. Viewing depth as a time variable, the residual stream defines a discrete-time interacting particle system on the unit sphere. We prove that, under suitable joint scalings of the depth, the residual step size, and the number of heads, this dynamics admits a nontrivial homogenized limit. Depending on the scaling, the limit is either deterministic or stochastic with common noise; in the mean-field regime, the latter leads to a stochastic nonlinear Fokker--Planck equation for the conditional law of a representative token. In the Gaussian setting, the limiting drift vanishes, making the homogenized dynamics explicit enough to study representation collapse. This yields quantitative trade-offs between dimension, context length, and temperature, and identifies regimes in which clustering can be mitigated.
format Preprint
id arxiv_https___arxiv_org_abs_2604_01978
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Homogenized Transformers
Koubbi, Hugo
Geshkovski, Borjan
Rigollet, Philippe
Probability
Machine Learning
We study a random model of deep multi-head self-attention in which the weights are resampled independently across layers and heads, as at initialization of training. Viewing depth as a time variable, the residual stream defines a discrete-time interacting particle system on the unit sphere. We prove that, under suitable joint scalings of the depth, the residual step size, and the number of heads, this dynamics admits a nontrivial homogenized limit. Depending on the scaling, the limit is either deterministic or stochastic with common noise; in the mean-field regime, the latter leads to a stochastic nonlinear Fokker--Planck equation for the conditional law of a representative token. In the Gaussian setting, the limiting drift vanishes, making the homogenized dynamics explicit enough to study representation collapse. This yields quantitative trade-offs between dimension, context length, and temperature, and identifies regimes in which clustering can be mitigated.
title Homogenized Transformers
topic Probability
Machine Learning
url https://arxiv.org/abs/2604.01978