Panda: A pretrained forecast model for universal representation of chaotic dynamics

Jeffrey Lai, Anthony Bao, William Gilpin · OpenReview

Abstract

Chaotic systems are intrinsically sensitive to small errors, challenging efforts to construct predictive data-driven models of real-world dynamical systems such as fluid flows or neuronal activity. Prior efforts comprise either specialized models trained separately on individual time series, or foundation models trained on vast time series databases with little underlying dynamical structure. Motivated by dynamical systems theory, we present Panda, Patched Attention for Nonlinear DynAmics. We train Panda on a novel synthetic, extensible dataset of $2 \times 10^4$ chaotic dynamical systems that we discover using an evolutionary algorithm. Trained purely on simulated data, Panda exhibits emergent properties: zero-shot forecasting of unseen real world chaotic systems, and nonlinear resonance patterns in cross-channel attention heads. Despite having been trained only on low-dimensional ordinary differential equations, Panda spontaneously develops the ability to predict partial differential equations without retraining. We demonstrate a neural scaling law for differential equations, underscoring the potential of pretrained models for probing abstract mathematical domains like nonlinear dynamics.

Introduction: The Challenge of Chaos

Chaotic systems—ranging from turbulent fluid flows to the complex firing patterns of neurons—are defined by their extreme sensitivity to initial conditions. In these systems, infinitesimal measurement errors grow exponentially over time, a phenomenon colloquially known as the "butterfly effect." This characteristic makes long-term pointwise prediction notoriously difficult.

Historically, researchers have approached this problem using two distinct paradigms. Local models are specialized architectures trained on specific systems; while accurate for their target, they generalize poorly to new physics. Conversely, general time-series foundation models (such as Chronos or TimesFM) leverage vast datasets from finance or retail. However, these models often lack an inherent understanding of the mathematical constraints governing physical dynamics, such as channel coupling and invariant statistical measures. Panda (Patched Attention for Nonlinear DynAmics) is designed to bridge this gap by learning the universal "language" of nonlinear dynamics.

Evolutionary Data Generation

A primary obstacle in developing a foundation model for chaos is the scarcity of diverse, high-quality dynamical data. To overcome this, the authors developed the Panda Dataset, a collection of approximately $2 \times 10^4$ unique chaotic ordinary differential equations (ODEs).

Evolutionary pipeline for generating the Panda dataset, scaling from human-curated founders to $10^4$ discovered chaotic systems.

The dataset was created using an evolutionary discovery process. Starting with 129 "founder" systems (e.g., the Lorenz attractor), the researchers employed an evolutionary algorithm to mutate parameters and recombine equations using skew-product coupling. This allowed for the discovery of entirely new chaotic regimes. To ensure data quality, every generated system was filtered through rigorous tests, including the calculation of Lyapunov exponents and the "0-1 test," to confirm true chaotic behavior rather than simple noise or periodicity.

The Panda Architecture

Panda introduces several architectural innovations tailored to the requirements of physical systems. Instead of standard linear projections, the model utilizes a Dynamics-Informed Embedding. This involves random polynomial and Fourier features to "lift" time-series patches into a higher-dimensional space, a technique inspired by Koopman operator theory which posits that nonlinear dynamics can be represented linearly in an appropriate feature space.

The Panda model pipeline, featuring dynamics-informed mode embedding and a cross-channel transformer architecture.

Key components of the architecture include:

  • Cross-Channel Attention: Unlike univariate models, Panda explicitly models interactions between different variables (channels), capturing the coupling essential to physical laws.
  • Patched Attention: By processing patches of time points, the model achieves high efficiency and captures local temporal motifs more effectively than point-wise tokenization.
  • Masked Pretraining: The model is trained to reconstruct missing data segments, encouraging it to learn the continuous underlying trajectories of dynamical systems.

Key Insights and Emergent Properties

The training of Panda revealed a significant new scaling law for dynamical systems: diversity of systems matters more than volume of data. Model performance scales predictably with the number of unique dynamical systems encountered during training, even when the total number of time points remains constant.

One of the most surprising emergent properties is Panda's ability to generalize from ODEs to partial differential equations (PDEs). Despite being trained only on low-dimensional ODEs (3-10 variables), the model spontaneously developed the ability to forecast high-dimensional PDEs, such as the Kuramoto-Sivashinsky equation. This suggests that Panda has learned abstract mathematical principles of dynamics that transcend specific dimensionality.

Furthermore, the model distinguishes between "weather" (short-term pointwise accuracy) and "climate" (long-term statistical properties). Even when pointwise predictions eventually diverge due to chaos, Panda maintains the geometric integrity of the system's "attractor," preserving its long-term statistical characteristics.

Results and Performance

Panda demonstrates state-of-the-art zero-shot performance, outperforming much larger foundation models like Chronos-20M and TimesFM-200M on chaotic forecasting tasks without any fine-tuning. Beyond accuracy, Panda is approximately 75x faster than Chronos during inference due to its patching strategy. The model also proves robust to real-world complexities, successfully generalizing to experimental data—such as the motion of C. elegans and fluid vortex streets—that include noise and non-stationarity not present in the synthetic training set.

Conclusion

Panda represents a significant step toward a universal foundation model for physical sciences. While currently focused on low-dimensional ODEs, its spontaneous generalization to PDEs suggests a path toward modeling even more complex high-dimensional systems. Future work may involve more structured attention masks to handle the sparsity of high-dimensional physics and exploring alternative pretraining tasks that go beyond next-step prediction to capture the full richness of mathematical physics.

Summary updated

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