Physics Constrained Learning

Impose physics priors into the ML workflow (data, architecture, loss function, optimization).

Overview

In the rapidly evolving field of machine learning, establishing a robust workflow is crucial. A typical workflow encompasses several stages: identifying a problem, curating data, designing an architecture, crafting a loss function, and employing optimization techniques. By integrating physics-based priors into each stage, we can develop models that are not only robust and capable of learning from small sample sizes but are also truly reflective of underlying physical principles rather than merely fitting curves. This approach paves the way for creating models that can generalize well and potentially simulate real-world physics accurately.

Physics constrained loss function

Our project’s first phase has successfully integrated physics priors into the machine learning workflow, particularly within the loss function design. We have developed “Physics-Constrained Graph Galerkin Learning,” an innovative method tailored for solving spatio-temporal partial differential equations (PDEs). This method combines the Galerkin method for spatial discretization with an autoregressive scheme for capturing temporal dynamics. Conceptualized through a map-reduce operation, the mapping phase of our approach is fully parallelizable, and the reduction phase leverages Sparse Matrix Multiplication (SPMM). This integration is operationalized within a graph-based network framework, utilizing native PyTorch operators for seamless execution across diverse computing platforms. (Wen et al., 2024)

Comparison of long-term rollout between Galerkin loss autoregressive model and data loss one.

The efficiency of our approach is further enhanced by minimizing the computational graph, which facilitates rapid back-propagation and enhances overall performance. Our method has shown to achieve training speeds comparable to those of data-driven loss models and excels in scalability, efficiency, accuracy, and capability for long-term predictions.

Comparison of learning efficiency and convergent speed between Galerkin loss model and data loss model.

References

2024

  1. preprint
    preprint_physics.gif
    Physics-Constrained Graph Galerkin Learning for Solving Spatio-Temporal PDEs
    Shizheng Wen, Mingyuan Chi, Ben Moseley, Mike Yan Michelis, Pu Ren, and Hao Sun
    under review, 2024