Panda: A pretrained forecast model for chaotic dynamics
Jeffrey Lai, Anthony Bao, William Gilpin
TL;DR
Panda introduces a pretrained, patch-based transformer for forecasting chaotic dynamics by training on a large synthetic corpus of chaotic ODEs discovered through evolutionary search. It demonstrates strong out-of-domain generalization, including zero-shot PDE forecasting, and reveals a scaling law where increasing dynamical-system diversity in training data improves generalization. The model employs dynamics-aware embeddings (PolyEmbed and Random Fourier Features), channel-attentive multivariate processing, and MLM pretraining, achieving superior short-term accuracy and better preservation of long-term attractor structure compared to baselines. This work suggests pretrained models can effectively probe abstract nonlinear dynamics and offers a practical path toward generalizable SciML forecasting.
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 chaotic systems preserving both short-term accuracy and long-term statistics. Despite having been trained only on low-dimensional ordinary differential equations, Panda spontaneously develops the ability to predict partial differential equations without retraining. We also demonstrate a neural scaling law for differential equations, underscoring the potential of pretrained models for probing abstract mathematical domains like nonlinear dynamics.
