PreprintCC BY 4.0arXiv
The Role of Feed-Forward Layers in Transformer Dynamics
Abstract
We study the dynamical behavior of tokens in transformers from a control-theoretic perspective. Our model includes the feed-forward layer present after the self-attention mechanism, with the self-attention mechanism interpreted as an interacting particle system and the feed-forward layer as an independent control. Our main theoretical result establishes that the feed-forward network can steer the tokens arbitrarily close to consensus regardless of the key, query, and value matrices. Our result are easily extended to convergence to many clusters and to multi-head attention. We conduct numerical experiments to verify our results, and compare thresholding behavior from our theory to real-world LLMs.
Related
- From forward-backward sweep to backpropagation for optimal control in tumor-immune dynamics.
- Second order estimates on transition layers for the Allen-Cahn equation with homogeneous Neumann boundary conditions: Part I - Boundary-orthogonal transition layers
- Content Exploration Beyond the Feed: Creator Supply and the Shared Corpus
- Spectral stability for strong ideal-gas shock layers
- Ekman Boundary Layers Under Transport Noise
BibTeX
@misc{maranzatto2026role,
title = {{The Role of Feed-Forward Layers in Transformer Dynamics}},
author = {Thomas Jacob Maranzatto and Semih Akkoc and Sennur Ulukus},
howpublished = {arXiv},
year = {2026},
month = sep,
doi = {10.48550/arxiv.2609.36230},
eprint = {2609.36230},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2609.36230},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - The Role of Feed-Forward Layers in Transformer Dynamics
AU - Thomas Jacob Maranzatto
AU - Semih Akkoc
AU - Sennur Ulukus
PY - 2026
DA - 2026/09/28
PB - arXiv
DO - 10.48550/arxiv.2609.36230
UR - https://arxiv.org/abs/2609.36230
AB - We study the dynamical behavior of tokens in transformers from a control-theoretic perspective. Our model includes the feed-forward layer present after the self-attention mechanism, with the self-attention mechanism interpreted as an interacting particle system and the feed-forward layer as an independent control. Our main theoretical result establishes that the feed-forward network can steer the tokens arbitrarily close to consensus regardless of the key, query, and value matrices. Our result are easily extended to convergence to many clusters and to multi-head attention. We conduct numerical experiments to verify our results, and compare thresholding behavior from our theory to real-world LLMs.
ER -