[Paper Review] Optimizing a DIscrete Loss (ODIL) to solve forward and inverse problems for partial differential equations using machine learning tools
ODIL formulates the solution of partial differential equations (PDEs) as a discrete optimization problem by minimizing residuals of their finite-difference or finite-element discretizations using gradient and Newton methods. It achieves orders-of-magnitude lower computational cost and faster convergence than physics-informed neural networks (PINNs), while preserving the accuracy, sparsity, and conservation properties of classical numerical methods, making it highly effective for forward and inverse PDE problems with missing parameters or limited data.
We introduce the Optimizing a Discrete Loss (ODIL) framework for the numerical solution of Partial Differential Equations (PDE) using machine learning tools. The framework formulates numerical methods as a minimization of discrete residuals that are solved using gradient descent and Newton's methods. We demonstrate the value of this approach on equations that may have missing parameters or where no sufficient data is available to form a well-posed initial-value problem. The framework is presented for mesh based discretizations of PDEs and inherits their accuracy, convergence, and conservation properties. It preserves the sparsity of the solutions and is readily applicable to inverse and ill-posed problems. It is applied to PDE-constrained optimization, optical flow, system identification, and data assimilation using gradient descent algorithms including those often deployed in machine learning. We compare ODIL with related approach that represents the solution with neural networks. We compare the two methodologies and demonstrate advantages of ODIL that include significantly higher convergence rates and several orders of magnitude lower computational cost. We evaluate the method on various linear and nonlinear partial differential equations including the Navier-Stokes equations for flow reconstruction problems.
Motivation & Objective
- To address the limitations of physics-informed neural networks (PINNs) in solving PDEs, especially for ill-posed and inverse problems with high computational cost and poor convergence.
- To develop a framework that combines the robustness of classical numerical discretizations with the flexibility of machine learning optimization tools.
- To enable efficient solution of PDE-constrained optimization, data assimilation, optical flow, and system identification using gradient-based and Newton-type methods.
- To preserve the sparsity, consistency, and conservation properties of classical solvers while achieving high convergence rates.
- To provide a scalable, accurate, and computationally efficient alternative to PINNs for large-scale scientific simulations such as weather prediction and fluid dynamics.
Proposed method
- The ODIL framework formulates PDEs as a minimization of discrete residuals over a structured grid, using a loss function that combines the residual of the discrete PDE and constraints on initial/boundary conditions.
- The loss function is defined as the sum of squared residuals of the discrete PDE and squared deviations from known initial and boundary values, with optional regularization terms.
- Gradient-based optimization (e.g., L-BFGS-B) and Newton’s method are applied, leveraging automatic differentiation to compute gradients and sparse Hessian approximations.
- The method inherits the sparsity of classical discretizations, enabling efficient solution of the Newton system via sparse linear solvers such as direct or multigrid methods.
- The framework is implemented in TensorFlow, using automatic differentiation to compute derivatives of the loss with respect to the discrete solution field.
- The approach is applied to various PDEs, including the wave equation, advection equation, and Navier-Stokes equations, with validation on forward and inverse problems.
Experimental results
Research questions
- RQ1Can a discrete residual minimization framework outperform physics-informed neural networks (PINNs) in computational efficiency and convergence speed for solving PDEs?
- RQ2To what extent can classical numerical discretization properties—such as sparsity, conservation, and stability—be preserved in a machine learning optimization framework?
- RQ3How effective is the ODIL framework for solving inverse problems, such as optical flow or system identification, when initial or final conditions are known but the governing field is unknown?
- RQ4Can Newton’s method achieve quadratic convergence in PDE solving when applied to a discrete residual formulation, unlike in PINNs where dense Hessian matrices hinder this?
- RQ5What is the computational cost and accuracy trade-off of ODIL compared to standard finite-difference or finite-element solvers for well-posed problems?
Key findings
- ODIL achieves significantly faster convergence than PINNs, with Newton’s method converging quadratically due to the sparsity of the Hessian, unlike PINNs where dense Hessian matrices prevent efficient Newton optimization.
- The computational cost per evaluation in ODIL is constant per grid point, while in PINNs it scales with the number of network weights, leading to orders of magnitude lower cost in ODIL for large problems.
- For the advection equation with unknown velocity fields, ODIL successfully reconstructs the velocity field from two tracer snapshots, matching the reference solution with high fidelity.
- In the Navier-Stokes flow reconstruction problem, ODIL recovers the velocity and pressure fields with high accuracy using only sparse measurements, demonstrating robustness in inverse problems.
- The method preserves discrete conservation laws and stability properties of underlying finite-difference or finite-element schemes, ensuring reliable numerical behavior.
- The framework is applicable to PDE-constrained optimization, data assimilation, and system identification, with results showing superior performance compared to PINN baselines in both speed and accuracy.
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.