Differentiable Physics-informed Graph Networks

Sungyong Seo, Yan LiuarXiv 2019

Abstract

While physics conveys knowledge of nature built from an interplay between observations and theory, it has been considered less importantly in deep neural networks. Especially, there are few works leveraging physics behaviors when the knowledge is given less explicitly. In this work, we propose a novel architecture called Differentiable Physics-informed Graph Networks (DPGN) to incorporate implicit physics knowledge which is given from domain experts by informing it in latent space. Using the concept of DPGN, we demonstrate that climate prediction tasks are significantly improved. Besides the experiment results, we validate the effectiveness of the proposed module and provide further applications of DPGN, such as inductive learning and multistep predictions.

Introduction: The Gap Between Data and Reality

Modeling natural phenomena—like climate patterns, traffic flow, or molecular dynamics—is notoriously difficult. Traditionally, researchers have relied on two distinct tools: physics-based models (Partial Differential Equations or PDEs) and data-driven models (Deep Learning).

Physics models are grounded in reality but are often incomplete; we rarely know every variable or rule governing a complex system like the weather. Conversely, deep learning models excel at finding patterns in large datasets but act as "black boxes" that can produce physically impossible results, overfit to noise, or fail when data distributions shift. DPGN addresses this gap by creating a model that learns from data while respecting fundamental physical laws, even when those laws are only partially understood.

Methods: Integrating Physics into Graph Networks

The DPGN architecture integrates differentiable physics equations into a Graph Network (GN) framework to leverage both structured knowledge and data-driven flexibility.

Conceptual overview of DPGN: mapping physical transitions to graph-based latent space modeling with physics constraints.

1. Graph Calculus

To bridge the gap between continuous physical fields and discrete graph structures, the authors define how standard vector calculus operators—such as Gradient ($\nabla$), Divergence ($\text{div}$), and Laplacian ($\Delta$)—can be translated into discrete operations on a graph. This allows the network to represent physical dynamics directly on the graph topology.

Mapping a continuous scalar field (a) to a discrete vertex function on a graph (c).

2. Physics in Latent Space

Instead of forcing raw input data to follow strict physical equations, DPGN uses an Encoder to map data into a latent space. The physics constraint (e.g., the Diffusion Equation) is applied to these latent representations. This allows the model to use its learnable parameters to capture "unknown" patterns while the "known" physics acts as a powerful regularizer.

3. Recurrent Architecture and Hybrid Objective

The model uses a recurrent GN block to simulate time evolution. For each time step, the model calculates a Physics-informed Loss ($\mathcal{L}_{phy}$), measuring how much latent states deviate from expected physical behavior. The total loss function is a weighted sum: $\mathcal{L} = \mathcal{L}_{sup} + \lambda \mathcal{L}_{phy}$, where $\mathcal{L}_{sup}$ is the standard supervised prediction error.

Experimental Evaluation

The researchers evaluated DPGN on two fronts:

  • Synthetic Data: Sequences generated from analytical solutions of the Diffusion and Wave Equations to prove the model could infer physical behaviors without supervised labels.
  • Climate Data: A real-world dataset of simulated climate observations (using the WRF model) over Southern California. It included 10 variables like air temperature and wind vectors across 18,189 grid patches, focusing on geographic generalization between Los Angeles (LA) and San Diego (SD).

Key Results and Insights

DPGN consistently outperformed standard baselines such as MLPs, LSTMs, and vanilla Graph Networks:

  • Superior Accuracy: In one-step temperature prediction for the LA area, DPGN achieved an MSE of 0.4435, significantly lower than the vanilla Graph Network (0.6035) and LSTM (0.7378).
  • Long-term Stability: In 10-step forecasts, the physics constraint acted as a "guardrail," preventing the model from drifting into unrealistic states and maintaining higher accuracy over time.
  • Generalization and Efficiency: When trained on LA data and tested on SD data, DPGN generalized better than other models, suggesting it learned underlying physical principles rather than local memorization. Furthermore, DPGN remained effective even when 30% of training labels were removed, showing that physical knowledge can compensate for missing data.

Conclusion

DPGN demonstrates that physics can be a guide rather than a cage. By applying constraints in the latent space, the model "fills in the gaps" where physical knowledge ends. While future work will address more complex, coupled non-linear equations and extremely noisy sensor data, DPGN represents a significant step toward robust, physically-consistent deep learning for natural phenomena.

Summary updated

BibTeX
@misc{seo2019differentiable,
  author = {Sungyong Seo and Yan Liu},
  title = {{Differentiable Physics-informed Graph Networks}},
  year = {2019},
  eprint = {1902.02950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.02950},
}
Figure