Nonlocal Mean-Field Control and Layer-Decoupled Training for Transformers

Dixi Wang, Yuan Gao, Rongjie Lai
11/28/2026
cs.LGmath.APmath.OC
transformer-attention

No confident code implementation found for this paper.

Abstract

In this paper, we study the self-attention dynamics of Transformers through a mean-field control perspective. We first establish a rigorous mean-field limit for the particle system associated with the residual self-attention dynamics, showing that, as the number of particles tends to infinity, the empirical measure converges to a probability measure evolving under a continuity equation with an attention-induced velocity field.

Show full abstract

We then formulate training as a soft constrained mean-field control problem, for which we establish the existence of optimizers in an admissible class. We derive the first order optimality condition for the soft-constrained control problem and the discretized finite-dimensional problem. Building on this, we propose an auxiliary-control method of successive approximations (Aux-MSA) algorithm for training self-attention residual networks. By exploiting the strong concavity of the Hamiltonian with respect to the auxiliary controls, the algorithm admits explicit layerwise control updates. We establish the convergence of the algorithm. Finally, numerical experiments demonstrate the applicability of the proposed framework and its performance compared with gradient-based training.

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{wang2026nonlocal,
  title  = {Nonlocal Mean-Field Control and Layer-Decoupled Training for Transformers},
  author = {Dixi Wang and Yuan Gao and Rongjie Lai},
  year   = {2026},
  eprint = {2611.38475},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.38475v1}
}

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/2611.38475.svg)](https://codeofpaper.com/paper/2611.38475)

Discussion