Panda: A pretrained forecast model for chaotic dynamics

Jeffrey B. Lai, Anthony Bao, William Gilpin

TL;DR

Panda is a pretrained foundation model designed to forecast chaotic nonlinear dynamics. By learning from a massive, synthetically generated dataset of 20,000 unique chaotic systems, it demonstrates remarkable zero-shot generalization. Panda accurately predicts unseen real-world experimental data and even high-dimensional partial differential equations (PDEs), despite being trained exclusively on low-dimensional ordinary differential equations (ODEs).

What Problem Does This Paper Address?

Chaotic systems are notoriously difficult to model because they are intrinsically sensitive to small errors—the famous "butterfly effect." A tiny discrepancy in the initial state or the model's parameters leads to exponentially growing errors, making long-term forecasting nearly impossible.

Historically, researchers have taken two paths: building specialized models for a single system (like a specific fluid flow) or using general-purpose "foundation" time-series models trained on vast, unstructured databases. The former lacks generalization, while the latter often ignores the underlying mathematical structure of dynamical systems. The authors of Panda ask a fundamental question: Can we build a global forecast model that understands the "language" of dynamics well enough to predict a system it has never seen before?

Methods

The researchers introduce Panda (Patched Attention for Nonlinear Dynamics), an encoder-only transformer architecture with several key innovations:

  1. Evolutionary Dataset Discovery: To provide enough "background knowledge," the authors used an evolutionary algorithm to discover 20,000 novel chaotic ODEs. They started with 129 human-curated systems (like the Lorenz attractor) and used mutation and "skew-product coupling" to create complex, diverse offspring systems, filtering them for true chaotic behavior.
  2. Dynamic Mode Embedding: Instead of simple linear projections, Panda uses embeddings inspired by dynamical systems theory. It incorporates Takens' delays (time-lagged coordinates), random Fourier features, and polynomial features. This "lifts" the input into a higher-dimensional space where nonlinear relationships are easier for the transformer to process.
  3. Cross-Channel Transformer: Unlike univariate models that treat each variable independently, Panda uses interleaved temporal and channel attention. This allows the model to capture the strong inter-dependencies between variables that define physical systems.
Overview of the Panda framework, including evolutionary dataset generation and the dynamics-informed architecture.

Datasets

  • Training: A novel synthetic dataset of roughly 20,000 chaotic ODEs discovered via evolutionary search.
  • Synthetic Evaluation: A held-out set of 9,300 unique chaotic systems.
  • Real-World Experimental Data: Mechanical motion of C. elegans, electronic circuit voltages, and double pendulum trajectories.
  • PDE Benchmarks: The Kuramoto-Sivashinsky equation (flame fronts) and the von Kármán vortex street (fluid flow past a cylinder).

Key Insights and Ideas

  • Diversity Over Volume: The authors discovered a neural scaling law for differential equations. They found that the model's performance scales predictably with the number of unique dynamical systems it encounters during training, rather than just the total number of data points.
  • Emergent PDE Forecasting: Perhaps the most surprising finding is that Panda, trained exclusively on low-dimensional ODEs (3-10 variables), can zero-shot forecast high-dimensional PDEs. This suggests that low-dimensional dynamics act as the "building blocks" for more complex, extended systems.
  • Nonlinear Resonance in Attention: By "shaking" the model with different input frequencies, the authors observed that Panda's attention heads develop complex, multiscale structures resembling nonlinear resonance patterns found in physical systems.
  • Physics Priors Work: Ablation studies showed that the "Dynamic Mode Embedding" significantly improves long-term rollout performance compared to standard embeddings.

Key Results

Panda consistently outperformed state-of-the-art time-series foundation models like Chronos and TimesFM in zero-shot tasks.

  • Accuracy: On held-out chaotic systems, Panda achieved significantly lower sMAPE and MAE across various prediction horizons compared to leading baselines.
  • Real-World Generalization: In tests on experimental data (e.g., electronic circuits), Panda's advantage grew as the "coupling strength" between variables increased, highlighting the value of its multivariate attention mechanism.
  • PDE Performance: Panda outperformed specialized baselines like Fourier Neural Operators (FNO) in zero-shot forecasting of turbulent flows, despite never seeing a PDE during training.
Zero-shot performance of Panda compared to baselines on unseen chaotic systems, evaluated by sMAPE and MAE.

Limitations and Future Work

While powerful, Panda has its limits:

  • Low-Dimensional Focus: The current training regime focuses on systems with relatively few variables. Future versions could explore more complex coupling patterns (like sparsity) found in massive physical simulations.
  • Pretraining Trade-offs: The authors noted that Masked Language Modeling (MLM) pretraining, while helpful for some tasks, can actually degrade performance on long-term autoregressive rollouts. Finding the "perfect" pretraining task for dynamics remains an open question.
  • Scaling Up: The authors suggest that future iterations could exploit specific coupling structures to better handle high-dimensional spatial data.

Summary updated

BibTeX
@inproceedings{lai2026panda,
  author = {Jeffrey B. Lai and Anthony Bao and William Gilpin},
  title = {{Panda: A pretrained forecast model for chaotic dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=DgnsohAUMn},
}
Figure