Most physical systems are governed by surprisingly simple mathematical laws. While a system's behavior might appear chaotic or high-dimensional, the underlying equations—like Newton’s laws or the Navier-Stokes equations—typically consist of only a few terms. This observation is the foundation of a research direction that treats the discovery of physical laws as a sparse regression problem.
The Intuition of Sparsity
If you observe a swinging pendulum, its acceleration could theoretically be a function of anything: the angle, the velocity, the square of the angle, the sine of the angle, or even the current temperature of the room. However, physics tells us that only one or two of these terms actually matter.
In the framework of Sparse Identification of Nonlinear Dynamics (SINDy), first introduced by Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz in Sparse Identification of Nonlinear Dynamics with Control (SINDYc), we don't try to "learn" a black-box function. Instead, we construct a massive "library" of candidate mathematical terms—polynomials, trigonometric functions, and derivatives—and ask the algorithm to pick the smallest subset that explains the data.
Building the Library
The core mechanism involves a data matrix $X$ (measurements over time) and its derivative $\dot{X}$. We construct a library $\Theta(X)$ containing all the functions we suspect might be part of the governing equation:
$$\dot{X} = \Theta(X)\Xi$$
Here, $\Xi$ is a matrix of coefficients. If the system is truly sparse, most of the entries in $\Xi$ should be zero. By using sparse regression techniques (like LASSO or sequential thresholded least squares), the algorithm "zeros out" the irrelevant terms, leaving behind a human-readable differential equation. This approach has been standardized in the PySINDy library by Brian M. de Silva and colleagues.
The Library Bottleneck
A recurring theme across the literature is the completeness of the library. As noted by Yannis Pantazis in A Unified Approach for Sparse Dynamical System Inference from Temporal Measurements, the algorithm is fundamentally constrained by the predefined functions. If the true physical mechanism (e.g., a fractional derivative or a specific nonlinearity) is not in the library, the algorithm will either fail or produce an inaccurate approximation.
To overcome this, researchers like Hao Xu have proposed generative approaches like EqGPT, which uses large language models to "suggest" candidate terms from mathematical handbooks, moving beyond manually curated dictionaries.
Robustness to Noise and Scarcity
Real-world data is rarely as clean as a textbook example. Standard sparse regression often fails when measurements are noisy or sampled at irregular intervals. Several strategies have emerged to make equation discovery more robust:
- Ensembling: Urban Fasel and Steven L. Brunton developed Ensemble-SINDy (E-SINDy), which uses statistical "bagging" to identify the most stable terms across different subsets of data.
- Physics-Informed Neural Networks (PINNs): Yang Liu and Hao Sun introduced PINN-SR, which uses neural networks to "denoise" the data and compute derivatives before applying sparse regression.
- Weak Formulations: Instead of calculating noisy derivatives directly, methods like the Weak Collocation Regression by Liwei Lu integrate the equations against test functions, which naturally smooths out noise.
Preserving Physical Structure
A significant evolution in this field is the shift from purely data-driven discovery to structure-preserving discovery. Even if an equation looks correct, it might violate basic physics, like the conservation of energy.
Kookjin Lee and Nathaniel Trask addressed this in Structure-preserving Sparse Identification of Nonlinear Dynamics for Data-driven Modeling. By embedding geometric formalisms (like Hamiltonian or GENERIC brackets) directly into the regression architecture, they ensure that the discovered equations are guaranteed to obey thermodynamic consistency and conservation laws by construction.
Beyond Simple ODEs
The reach of sparse identification has expanded into increasingly complex domains:
- Stochastic Systems: SpIDES uses generative modeling to discover the drift and diffusion terms of stochastic differential equations from snapshots of data.
- Fractional Calculus: Xiangnan Yu and colleagues have extended the framework to discover fractional differential equations, capturing long-term memory effects in complex materials.
- Reinforcement Learning: By using SINDy to learn a world model, Bruno Castro da Silva showed that agents can achieve massive speedups in sample efficiency compared to black-box neural network models.
By framing the discovery of physics as a search for sparsity, this research direction provides a bridge between the interpretability of classical physics and the power of modern machine learning.