A Mechanistic Analysis of Transformers for Dynamical Systems
Not on the map. Why?
Abstract (arXiv)
Transformers are increasingly adopted for modeling and forecasting time-series, yet their internal mechanisms remain poorly understood from a dynamical systems perspective. In contrast to classical autoregressive and state-space models, which benefit from well-established theoretical foundations, Transformer architectures are typically treated as black boxes. This gap becomes particularly relevant as attention-based models are considered for general-purpose or zero-shot forecasting across diverse dynamical regimes. In this work, we do not propose a new forecasting model, but instead investigate the representational capabilities and limitations of single-layer Transformers when applied to dynamical data. Building on a dynamical systems perspective, we interpret causal self-attention as a linear, history-dependent recurrence and analyze how it processes temporal information. Through a series of linear and nonlinear case studies, we identify distinct operational regimes. For linear systems, we show that in the single-head attention-only setting, the convexity constraint imposed by softmax attention restricts the class of autoregressive operators that can be represented, leading to oversmoothing when the target dynamics require mixed-sign lag coefficients. For nonlinear systems under partial observability, attention instead acts as an adaptive delay-embedding mechanism, enabling effective state reconstruction when sufficient temporal context and latent dimensionality are available. These results help bridge empirical observations with classical dynamical systems theory, providing insight into when and why Transformers succeed or fail as models of dynamical systems.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 26 of its 52 references that are in the map. First posted on arXiv 24 Dec 2025.
Builds on
26 of 52 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2022Toy Models of Superpositioncited by 928
- 2021Choose a Transformer: Fourier or Galerkincited by 333
- 2019Deep Lagrangian Networks: Using Physics as Model Prior for Deep Learningcited by 205
- 2024Poseidon: Efficient Foundation Models for PDEscited by 186
- 2020Transformers for Modeling Physical Systemscited by 105
- 2020Structure-preserving neural networkscited by 54
- 2024Transformers as Neural Operators for Solutions of Differential Equations with Finite Regularitycited by 33
- 2025PDE-Transformer: Efficient and Versatile Transformers for Physics Simulationscited by 29
14 more
- 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networkscited by 26
- 2024Zero-shot forecasting of chaotic systemscited by 25
- 2025True Zero-Shot Inference of Dynamical Systems Preserving Long-Term Statisticscited by 20
- 2022Double Diffusion Maps and their Latent Harmonics for Scientific Computations in Latent Spacecited by 16
- 2025Defining Foundation Models for Computational Science: A Call for Clarity and Rigorcited by 16
- 2021Physics-guided Deep Markov Models for Learning Nonlinear Dynamical Systems with Uncertaintycited by 11
- 2023Interpretable learning of effective dynamics for multiscale systemscited by 11
- 2023Implementation and (Inverse Modified) Error Analysis for implicitly-templated ODE-netscited by 6
- 2023Introducing Hybrid Modeling with Time-series-Transformers: A Comparative Study of Series and Parallel Approach in Batch Crystallizationcited by 5
- 2023Certified Invertibility in Neural Networks via Mixed-Integer Programmingcited by 3
- 2025Physics Steering: Causal Control of Cross-Domain Concepts in a Physics Foundation Modelcited by 3
- 2025Learning Effective Dynamics across Spatio-Temporal Scales of Complex Flowscited by 2
- 2025Bayesian Inference for PDE-based Inverse Problems using the Optimization of a Discrete Losscited by 1
- 2025Forecasting precipitation in the Arctic using probabilistic machine learning informed by causal climate driverscited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Why Do Transformers Fail to Forecast Time Series In-Context?
- 2025S2TX: Cross-Attention Multi-Scale State-Space Transformer for Time Series Forecasting
- 2026The Topological Trouble With Transformers
- 2024The Asymptotic Behavior of Attention in Transformers
- 2026Correct then Forecast: Observer State-Space Models for Time Series Forecasting
- 2024TimeDART: A Diffusion Autoregressive Transformer for Self-Supervised Time Series Representation
- 2026DiTS: Multimodal Diffusion Transformers Are Time Series Forecasters
- 2025Closed-Loop Transformers: Autoregressive Modeling as Iterative Latent Equilibrium