Abstract
In this paper, we present a machine learning method for the discovery of analytic solutions to differential equations. The method utilizes an inherently interpretable algorithm, genetic programming based symbolic regression. Unlike conventional accuracy measures in machine learning we demonstrate the ability to recover true analytic solutions, as opposed to a numerical approximation. The method is verified by assessing its ability to recover known analytic solutions for two separate differential equations. The developed method is compared to a conventional, purely data-driven genetic programming based symbolic regression algorithm. The reliability of successful evolution of the true solution, or an algebraic equivalent, is demonstrated.
Introduction
In engineering and physics, Ordinary and Partial Differential Equations (ODEs and PDEs) are the primary language for describing physical phenomena. While simple cases can be solved analytically, complex real-world problems typically rely on numerical methods like Finite Element Analysis (FEA). Recently, Physics-Informed Neural Networks (PINNs) have emerged as a popular alternative. However, PINNs are essentially "black boxes"—they provide numerical mappings without yielding readable formulas.
There is a critical need for interpretability in engineering. Understanding the sensitivity of a coefficient or the nature of an asymptote requires a symbolic expression. This research addresses this gap by developing a method to automatically "discover" closed-form analytical solutions using machine learning.
Methods: Physics-Regularized Genetic Programming
The researchers developed Physics-Regularized Genetic Programming Based Symbolic Regression (PR-GPSR). Standard symbolic regression evolves a population of mathematical expressions (represented as trees) to fit data points. PR-GPSR introduces several key innovations:
- Augmented Fitness Function: The algorithm minimizes a combined fitness score consisting of a standard data-driven term and a "physics-regularized" term. This latter term is the residual of the differential equation; for a true analytical solution, this residual is zero.
- Automatic Differentiation: To evaluate residuals, the algorithm must differentiate evolved symbolic expressions. The authors utilize PyTorch’s Autograd to compute these derivatives efficiently.
- Local Optimization: Once a promising symbolic structure is identified, the Levenberg-Marquardt (LM) algorithm is used to fine-tune constant coefficients.
- Bingo Framework: The implementation leverages "Bingo," an open-source NASA GPSR code optimized for high-performance computing.
Key Results and Discussion
The method was tested on two benchmark problems: the 4th-order Euler-Bernoulli beam equation and Poisson’s equation (in 1D, 2D, and 3D).
Data Efficiency and Reliability
PR-GPSR demonstrated remarkable data efficiency. For the Euler-Bernoulli beam, it recovered the exact solution using only 2 training points (the boundary conditions). In contrast, standard data-driven GPSR required at least 11 points to achieve similar results.
As shown in the figure above, PR-GPSR (solid lines) converges to a 100% success rate much faster and with significantly less data than standard GPSR (dashed lines). In Poisson experiments, the algorithm achieved a 100% success rate across 30 repeated trials for all dimensional configurations.
Precision and "Exact" Solutions
Unlike neural networks that minimize error to a small decimal, PR-GPSR can recover the exact algebraic equivalent of the analytical solution. Once the correct symbolic form is discovered, the error effectively drops to the limits of machine precision.
The figure above illustrates the difference in residuals. While data-driven fitness ($F^{dd}$) fluctuates, the physics-regularized residual ($F^{pr}$) remains consistently near machine precision ($10^{-21}$) across the domain, confirming the discovery of the true analytical form.
Conclusion
PR-GPSR offers a powerful bridge between "black-box" machine learning and classical symbolic derivation. By using physics as a "compass," the algorithm can navigate vast search spaces to find mathematically consistent formulas even with sparse data.
Future work will focus on applying this method to differential equations where analytical solutions are currently unknown. Additionally, the researchers aim to address "model bloat"—the tendency of the algorithm to find correct but unnecessarily complex versions of a formula—and the computational cost associated with symbolic search in high-dimensional spaces.
Summary updated