[Paper Review] AdjointNet: Constraining machine learning models with physics-based codes
AdjointNet is a physics-constrained machine learning framework that embeds existing physics-based simulation codes—such as PFLOTRAN and Navier-Stokes solvers—directly into neural network training to enforce conservation laws (e.g., mass, momentum) everywhere in the domain. By leveraging adjoint sensitivities from the physics code, it enables accurate inverse modeling of material parameters with limited, sparse, or noisy data, achieving high accuracy in parameter estimation without re-discretizing PDEs.
Physics-informed Machine Learning has recently become attractive for learning physical parameters and features from simulation and observation data. However, most existing methods do not ensure that the physics, such as balance laws (e.g., mass, momentum, energy conservation), are constrained. Some recent works (e.g., physics-informed neural networks) softly enforce physics constraints by including partial differential equation (PDE)-based loss functions but need re-discretization of the PDEs using auto-differentiation. Training these neural nets on observational data showed that one could solve forward and inverse problems in one shot. They evaluate the state variables and the parameters in a PDE. This re-discretization of PDEs is not necessarily an attractive option for domain scientists that work with physics-based codes that have been developed for decades with sophisticated discretization techniques to solve complex process models and advanced equations of state. This paper proposes a physics constrained machine learning framework, AdjointNet, allowing domain scientists to embed their physics code in neural network training workflows. This embedding ensures that physics is constrained everywhere in the domain. Additionally, the mathematical properties such as consistency, stability, and convergence vital to the numerical solution of a PDE are still satisfied. We show that the proposed AdjointNet framework can be used for parameter estimation (and uncertainty quantification by extension) and experimental design using active learning. The applicability of our framework is demonstrated for four flow cases. Results show that AdjointNet-based inversion can estimate process model parameters with reasonable accuracy. These examples demonstrate the applicability of using existing software with no changes in source code to perform accurate and reliable inversion of model parameters.
Motivation & Objective
- To address the limitation of existing physics-informed ML methods that softly enforce PDE constraints via auto-differentiation and re-discretization, which disrupts established physics codes.
- To enable domain scientists to use mature, verified physics-based simulators—without modification—as the core of ML training workflows.
- To ensure that physical constraints such as mass, momentum, and energy conservation are strictly satisfied throughout the domain, preserving numerical stability and convergence.
- To support inverse problems, uncertainty quantification, and active learning by directly incorporating real-time observational data into the training loop.
- To demonstrate the framework’s applicability across diverse physical systems, including porous media flow and incompressible Navier-Stokes flows.
Proposed method
- AdjointNet embeds a physics-based simulator (e.g., PFLOTRAN, Navier-Stokes solver) as a differentiable layer in a neural network, allowing gradients to be backpropagated through the simulator.
- It computes adjoint sensitivities of the state variables (e.g., pressure, velocity) with respect to model parameters (e.g., permeability, viscosity) using the adjoint method, ensuring accurate gradient computation.
- The loss function combines data misfit and physics residual terms, with gradients computed via the adjoint sensitivities, enabling end-to-end training while preserving the original code’s numerical properties.
- The framework supports both forward and inverse problems, including parameter estimation and experimental design via active learning.
- It avoids re-implementation of PDEs by reusing existing, validated numerical discretizations from the physics code, ensuring consistency, stability, and convergence.
- The method is compatible with any physics code that can compute state variables and their adjoint sensitivities, enabling broad applicability across scientific domains.
Experimental results
Research questions
- RQ1Can physics-based simulation codes be directly integrated into machine learning training without code modification, preserving their numerical properties?
- RQ2Can adjoint sensitivities from existing physics codes be used to train neural networks while strictly enforcing conservation laws?
- RQ3Can AdjointNet achieve accurate parameter inversion with limited, sparse, or noisy observational data?
- RQ4How does AdjointNet perform in inverse problems involving heterogeneous porous media and incompressible flow governed by the Navier-Stokes equations?
- RQ5Can the framework support real-time data assimilation and active learning without retraining from scratch?
Key findings
- AdjointNet successfully estimated the kinematic viscosity in a lid-driven cavity flow with a ground truth of 0.1000, achieving an estimated value of 0.1021, demonstrating high accuracy in parameter inversion.
- The method converged in approximately 200 epochs with a final loss value below 10^-8, indicating stable and efficient training.
- For homogeneous porous media, AdjointNet accurately inverted permeability using only 1,681 pressure data points, showing robustness with sparse data.
- In heterogeneous porous media, AdjointNet successfully inverted spatially varying permeability fields, maintaining physical consistency across the domain.
- The framework enabled data assimilation by integrating real-time observational data directly into the training process, avoiding the need for retraining with new simulation data.
- AdjointNet maintained numerical stability and convergence by inheriting the discretization properties of the underlying physics code, unlike PINNs that require re-discretization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.