Universal Approximation of Mean-Field Models via Transformers
Shiba Biswal, Karthik Elamvazhuthi, Rishi Sonthalia
Abstract
This paper investigates the use of transformers to approximate the mean-field dynamics of interacting particle systems exhibiting collective behavior. Such systems are fundamental in modeling phenomena across physics, biology, and engineering, including opinion formation, biological networks, and swarm robotics. The key characteristic of these systems is that the particles are indistinguishable, leading to permutation-equivariant dynamics. First, we empirically demonstrate that transformers are well-suited for approximating a variety of mean field models, including the Cucker-Smale model for flocking and milling, and the mean-field system for training two-layer neural networks. We validate our numerical experiments via mathematical theory. Specifically, we prove that if a finite-dimensional transformer effectively approximates the finite-dimensional vector field governing the particle system, then the L 2 distance between the expected transformer and the infinite-dimensional mean-field vector field can be uniformly bounded by a function of the number of particles observed during training. Leveraging this result, we establish theoretical bounds on the distance between the true meanfield dynamics and those obtained using the transformer.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e3f0fba8-8822-4c7f-a7e2-a44d16007b68Cited by top-tier papers2
- Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and EfficiencyKelvin Kan, Xingjian Li, Benjamin J. Zhang, Tuhin Sahai et al.NeurIPS 2025 · 9 citations
- DiScoFormer: Plug-In Density and Score Estimation with TransformersVasily Ilin, Peter Sushko, Ranjay KrishnaICML 2026 · 4 citations
Builds on3
- The Lipschitz Constant of Self-AttentionHyunjik Kim, George Papamakarios, Andriy MnihICML 2021 · 208 citations
- Universal Approximation Under Constraints is Possible with TransformersAnastasis Kratsios, Behnoosh Zamanlooy, Tianlin Liu, Ivan DokmanicICLR 2022 · 38 citations
- Transformers are Universal In-context LearnersTakashi Furuya, Maarten V. de Hoop, Gabriel PeyréICLR 2025 · 2 citations
Related papers
- A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 citations
- Emergence of meta-stable clustering in mean-field transformer modelsGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziICLR 2025 · 2 citations
- Clustering in Deep Stochastic TransformersLev Fedorov, Michael Sander, Romuald Elie, Pierre Marion et al.ICML 2026 · 7 citations
- The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 citations
- Relational Reasoning via Set Transformers: Provable Efficiency and Applications to MARLFengzhuo Zhang, Boyi Liu, Kaixin Wang, Vincent Y. F. Tan et al.NeurIPS 2022 · 16 citations
