Stochastic Scaling Limits and Synchronization by Noise in Deep Transformer Models

Andrea Agazzi, Giuseppe Bruno, Eloy Mosig García, Samuele Saviozzi, Marco Romito
4/29/2026
math.PRcs.LGstat.ML
transformer-attention

No confident code implementation found for this paper.

Abstract

We prove pathwise convergence of the layerwise evolution of tokens in a finite-depth, finite-width transformer model with MultiLayer Perceptron (MLP) blocks to a continuous-time stochastic interacting particle system. We also identify the stochastic partial differential equation describing the evolution of the tokens' distribution in this limit and prove propagation of chaos when the number of such tokens is large.

Show full abstract

The bounds we establish are quantitative and the limits we consider commute. We further prove that the limiting stochastic model displays synchronization by noise and establish exponential dissipation of the interaction energy on average, provided that the common noise is sufficiently coercive relative to the deterministic self-attention drift. We finally characterize the activation functions satisfying the former condition.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agazzi2026stochastic,
  title  = {Stochastic Scaling Limits and Synchronization by Noise in Deep Transformer Models},
  author = {Andrea Agazzi and Giuseppe Bruno and Eloy Mosig García and Samuele Saviozzi and Marco Romito},
  year   = {2026},
  eprint = {2604.26898},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.26898v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.26898.svg)](https://codeofpaper.com/paper/2604.26898)

Discussion