Predicting the behavior of chaotic dynamical systems—such as weather patterns, ocean currents, or neural firing—is notoriously difficult because microscopic initial errors grow exponentially over time. While deep learning has made significant strides in this domain, most models struggle to capture "extreme events" like floods, rogue waves, or sudden voltage spikes. These events live in the long tails of probability distributions, making them rare but highly impactful.
Generative models, particularly Diffusion Models, excel at learning complex distributions. However, "steering" them at inference time to produce specific outcomes (conditional sampling) remains a challenge. Existing methods often force the model to satisfy a hard constraint (e.g., "make the trajectory end at point X"), which frequently results in samples that violate the actual physics or statistics of the system. Furthermore, these constraint-enforcement methods often fail when paired with continuous-time solvers due to a lack of proper numerical scaling.
This paper demonstrates that diffusion models can be effectively adapted to predict trajectories and quantify uncertainty in chaotic physical systems. The authors introduce a novel probabilistic approximation for the conditional score function that allows for sampling rare, user-defined extreme events at inference time without retraining, outperforming existing constraint-enforcement methods.
Methodology: Approximating the Conditional Score
The authors propose a moment-matching based approximation to the conditional score function to steer the diffusion process. Key components of their approach include:
- Tweedie’s Formula: They leverage this classical statistical tool to estimate not just the mean (the "best guess" for the clean data) but also the conditional covariance of the data given a noisy sample.
- Linearization of Constraints: To handle nonlinear user-defined events (e.g., "a spike occurs within this specific time window"), the authors use a first-order Taylor expansion to approximate the probability of the event occurring.
- SNR-Aware Scaling: Crucially, their derived score function includes a scaling factor based on the Signal-to-Noise Ratio ($s_t^2/\sigma_t^2$). This prevents the "stiffness" issues that typically cause standard ODE integrators to crash when trying to enforce constraints in continuous time.
- Likelihood Integration: By leveraging the "probability flow ODE" connection inherent to diffusion models, they provide a mechanism to compute the actual marginal likelihood of these rare events occurring.
Experimental Setup
The researchers evaluated their approach on three classic dynamical systems, generating 4,000 trajectories for each to serve as benchmarks for chaos and extreme event frequency:
- Lorenz Attractor: The iconic "butterfly" system representing chaotic atmospheric flow.
- FitzHugh-Nagumo Model: A simplified model of a neuron that exhibits rare, high-magnitude voltage spikes.
- Double Pendulum: A mechanical system that is highly sensitive to initial conditions and energy levels.
Key Findings and Results
Physics without the Equations: Remarkably, the diffusion models performed as well as NeuralODEs in point prediction, despite having no built-in knowledge of the underlying differential equations governing the systems.
Diversity over Mode Collapse: Unlike optimization-based methods that might find a single "optimal" trajectory to satisfy a constraint, this probabilistic approach preserves the diversity of the distribution. It successfully maps out all the statistically viable ways an extreme event might unfold.
Sampling the Tail: In the FitzHugh-Nagumo system, where extreme spikes occur in only ~3% of trajectories, the proposed method successfully sampled these rare events. Naive constraint methods failed to capture the correct statistics of these spikes.
Well-Calibrated Uncertainty: The model’s uncertainty estimates proved to be highly calibrated. If the model predicts an 80% chance that a trajectory stays within a certain range, the ground truth falls in that range approximately 80% of the time.
Numerical Stability: Thanks to the proper SNR scaling, the method converged significantly faster and more reliably than previous state-of-the-art methods (like Manifold Constrained Gradients) when using adaptive-step ODE solvers.
The Importance of Second-Order Info: By utilizing the Jacobian of the score function (the Hessian of the log-probability), the model gains a much more accurate "map" of how to move toward the desired constraint during the denoising process. The authors also provide a theoretical guarantee that their approximation becomes exact as the noise level in the diffusion process approaches zero.
Limitations and Future Directions
While highly effective, the approach has limitations. Calculating the Jacobian of the score function introduces significant computational overhead, especially as the dimensionality of the system increases. For very high-dimensional tasks, the authors suggest exploring "cruder" diagonal approximations.
Additionally, the current framework is designed for deterministic physical systems. Extending this methodology to systems with inherent stochasticity (noise in the physics itself) remains an open area for future research. Finally, while the model handles nonlinear equality and inequality constraints well, more complex "set-based" constraints (e.g., "the trajectory must stay inside this complex 3D shape") are currently difficult to express within this framework.
Summary updated