Tensorized Transformer for Dynamical Systems Modeling

Anna Shalova, Ivan V. OseledetsarXiv 2020

Introduction

Modeling complex, nonlinear dynamical systems—particularly those characterized by deterministic chaos—presents a significant challenge in computational science. In such systems, the "butterfly effect" ensures that trajectories originating from nearly identical initial conditions diverge exponentially over time. Traditional neural network approaches typically employ regression to predict the subsequent state $x_{t+1}$. However, even marginal approximation errors can lead to "drift," where the model deviates from the system's invariant set or attractor.

While probabilistic modeling provides a more robust framework for handling uncertainty, it often necessitates discretizing the phase space into a grid. For a $d$-dimensional system with $N$ segments per axis, the state space grows exponentially as $N^d$, leading to the "curse of dimensionality." This paper introduces a Tensorized Transformer architecture designed to overcome these limitations by treating dynamical modeling as a language modeling task while utilizing tensor factorization to maintain scalability.

Methodology

Discretization as Language Modeling

The core innovation lies in mapping continuous trajectories to sequences of discrete grid indices. By discretizing the phase space, predicting the next state is reformulated as predicting the next "word" in a sequence. This allows for the deployment of a Transformer decoder, leveraging its ability to capture long-range dependencies in sequential data.

Discretization of a trajectory into a sequence of grid-based 'words' for Transformer-based prediction.

Tensor Coding and Factorized Probability

To mitigate the exponential parameter explosion, the authors implement two key strategies:

  1. Tensor Coding Layer: Instead of a massive $O(N^d)$ embedding matrix, the model uses Tensor-Train (TT) decomposition. The state is represented by $d$ smaller components, reducing parameter complexity to $O(d \cdot N)$. This "geometry-aware" embedding respects the spatial proximity of grid cells.
  2. Factorized Probability Heads: Rather than predicting a joint probability for the entire $d$-dimensional state, the model utilizes separate classification heads to predict coordinates for each dimension independently, conditioned on historical context.
The overall architecture of the Tensorized Transformer, mapping continuous states to factorized probability distributions.

Progressive Iterative Training

Directly training on a fine grid often results in convergence issues. To address this, the authors propose a multigrid training strategy. The model is initially trained on a coarse grid (e.g., $2 \times 2 \dots$) and progressively refined. Linear interpolation is used to initialize embeddings for finer grids from their coarser predecessors, allowing the model to learn macro-dynamics before focusing on micro-details.

Experimental Evaluation

The model was evaluated on two benchmark chaotic systems:

  • Rossler Attractor (3D): Used to assess the model's capability in capturing complex geometric structures.
  • Lorenz-96 System (16D): A high-dimensional system used in meteorology. With a grid size of $N=33$, the effective vocabulary size is approximately $2 \cdot 10^{24}$, a scale manageable only through the proposed tensorization.

Results and Discussion

Experimental results demonstrate that the Tensorized Transformer significantly outperforms LSTM and Deep Koopman baselines in long-term Root Mean Squared Error (RMSE) on the Rossler system. Qualitatively, the model excels at "attractor preservation," maintaining the correct geometric shape of the system's trajectory where regression models often fail.

In the 16D Lorenz-96 system, the model demonstrated impressive scalability. The divergence of its predictions mirrored the natural divergence of the physical system, indicating successful capture of underlying chaotic physics.

Limitations and Future Directions

Despite its successes, the approach faces a dimensionality ceiling; systems exceeding 50 dimensions remain challenging for iterative training. Additionally, the assumption that conditional probabilities can be factorized into independent dimensions may not hold for extremely tightly coupled systems. Future research may explore mapping dynamical systems to lower-dimensional latent feature spaces before applying tensorized transformers, potentially extending the method to fluid dynamics or video data.

Summary updated

BibTeX
@misc{shalova2020tensorized,
  author = {Anna Shalova and Ivan V. Oseledets},
  title = {{Tensorized Transformer for Dynamical Systems Modeling}},
  year = {2020},
  eprint = {2006.03445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.03445},
}
Figure