Universal Approximation of Mean-Field Models via Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Biswal, Shiba, Elamvazhuthi, Karthik, Sonthalia, Rishi
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910970878623744
author Biswal, Shiba
Elamvazhuthi, Karthik
Sonthalia, Rishi
author_facet Biswal, Shiba
Elamvazhuthi, Karthik
Sonthalia, Rishi
contents 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 \textit{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 mean-field dynamics and those obtained using the transformer.
format Preprint
id arxiv_https___arxiv_org_abs_2410_16295
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Universal Approximation of Mean-Field Models via Transformers
Biswal, Shiba
Elamvazhuthi, Karthik
Sonthalia, Rishi
Computational Physics
Disordered Systems and Neural Networks
Statistical Mechanics
Machine Learning
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 \textit{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 mean-field dynamics and those obtained using the transformer.
title Universal Approximation of Mean-Field Models via Transformers
topic Computational Physics
Disordered Systems and Neural Networks
Statistical Mechanics
Machine Learning
url https://arxiv.org/abs/2410.16295