Augmenting Physical Models with Deep Networks for Complex Dynamics Forecasting

Yuan Yin, Vincent Le Guen, Jérémie Donà, Emmanuel de Bézenac, Ibrahim Ayed, Nicolas Thome, Patrick Gallinari

Overview

The APHYNITY framework provides a principled way to combine incomplete physical models (ODEs/PDEs) with deep learning to forecast complex systems. By enforcing a "least action" principle on the neural network—forcing it to only model what the physics cannot—the framework achieves superior forecasting accuracy and accurately identifies underlying physical parameters.

The Challenge of Complex Dynamics

Forecasting complex dynamical systems, such as weather patterns, chemical reactions, or mechanical vibrations, usually falls into two distinct camps:

  1. Model-Based (MB) approaches: These use differential equations derived from first principles.
  2. Machine Learning (ML) approaches: These learn patterns directly from data.

The problem is that MB models are often over-simplistic (e.g., ignoring friction or complex interactions), leading to "model drift." Conversely, pure ML models act as "black boxes" that require massive amounts of data and often fail to generalize to new conditions because they lack an understanding of the underlying laws of nature.

Existing hybrid methods often struggle with a "competition" between the two paradigms: the neural network might "over-explain" the data, effectively ignoring the physical model and making the system uninterpretable. This paper seeks a way to let physics do the heavy lifting while letting deep learning gracefully handle the "missing pieces."

The APHYNITY Method

The authors introduce APHYNITY, which decomposes the total dynamics ($F$) into two additive components:

  • $F_p$ (Physical): A parametric model representing our prior knowledge (e.g., a wave equation with an unknown speed).
  • $F_a$ (Augmentation): A deep neural network that captures the residual dynamics not explained by the physics.

The core innovation is the optimization objective. Instead of just minimizing prediction error, APHYNITY minimizes the norm of the augmentation term ($\|F_a\|$) subject to the constraint that the combined model fits the observed trajectories. This forces the physical model to explain as much of the data as possible, leaving only the "unexplainable" parts to the neural network.

Technically, the paper:

  • Provides mathematical guarantees for the existence and uniqueness of this decomposition.
  • Uses an adaptive optimization scheme (a variant of the method of multipliers) to balance the data-fitting and the minimization of the neural network's influence.
  • Employs trajectory-based training, where the model is trained by integrating the differential equations over time rather than just looking at instantaneous derivatives, making it more robust to noise and sparse data.

Experimental Datasets

The framework was evaluated on three simulated use cases representing different families of physical phenomena:

  • Reaction-Diffusion Equations: Specifically the 2D FitzHugh-Nagumo model, common in biology and chemistry.
  • Wave Equations: Damped wave propagation, relevant to acoustics and electromagnetism.
  • Non-linear Damped Pendulum: A classic mechanical system with friction.

The authors used simulated data to ensure they had a "ground truth" for physical parameters (like damping coefficients or propagation speeds) to verify if the model was actually learning the correct physics.

Key Insights

  • The "Least Action" for ML: By penalizing the size of the neural network's contribution, the authors prevent the "black box" from cannibalizing the physics. This ensures the physical parameters remain interpretable and physically meaningful.
  • Correcting Biased Parameters: When a physical model is incomplete (e.g., trying to fit a damped pendulum with a frictionless model), standard fitting techniques produce "biased" parameters to compensate for the error. APHYNITY allows the neural network to "soak up" the friction, allowing the physical component to correctly identify the true period of the pendulum.
  • Trajectory over Derivatives: Supervising on derivatives (finite differences) is numerically unstable. By integrating the ODE/PDE during training, the model learns the long-term evolution of the system more effectively.

Key Results

APHYNITY consistently outperformed purely data-driven models (like Neural ODEs and PredRNN++) and purely physical models across all three tasks.

Comparison of forecasting trajectories: Data-driven Neural ODE, Simple physical model, and the APHYNITY framework.
  • Forecasting Accuracy: For the wave equation, APHYNITY achieved a log Mean Squared Error (MSE) of -4.64 compared to -2.51 for a standard Neural ODE. As seen in the trajectory comparisons, it maintains phase and amplitude far better than baselines.
  • Parameter Identification: In the reaction-diffusion case, an incomplete physical model had a 67.6% error in identifying physical parameters. APHYNITY reduced this error to just 2.3%, effectively "finding" the true physics despite the missing terms.
  • Interpretability: The norm of the augmentation term ($\|F_a\|$) serves as a diagnostic tool. If the norm is high, it indicates the physical model is a poor fit; if it's low, the physics is doing most of the work.

Limitations and Future Work

  • Simulated vs. Real Data: While the results on simulated data are rigorous, real-world data often contains measurement noise and hidden variables that might complicate the decomposition.
  • Computational Complexity: Integrating differential equations inside the training loop (especially for PDEs) is computationally expensive compared to standard deep learning.
  • Partial Observability: The current work assumes we can see the full state of the system. Extending APHYNITY to partially observable settings (e.g., forecasting from video pixels) is a key next step.

Summary updated

BibTeX
@inproceedings{yin2021augmenting,
  author = {Yuan Yin and Vincent Le Guen and Jérémie Donà and Emmanuel de Bézenac and Ibrahim Ayed and Nicolas Thome and Patrick Gallinari},
  title = {{Augmenting Physical Models with Deep Networks for Complex Dynamics Forecasting}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure