Bayesian autoencoders for data-driven discovery of coordinates, governing equations and fundamental constants

Liyao Gao, J. Nathan KutzProceedings of the Royal Society A Mathematical Physical and Engineering Sciences 2024 · DOI

TL;DR

This paper introduces Bayesian SINDy Autoencoders, a novel framework that combines deep learning with Bayesian inference to automatically discover underlying physical laws and coordinate systems from noisy, low-data spatio-temporal observations, like video. This approach offers robust physics discovery and uncertainty quantification, outperforming previous methods in challenging real-world scenarios.

What Problem Does This Paper Address?

Discovering the fundamental equations that govern a physical system from observational data is a grand challenge in science. Traditional methods often struggle with real-world data, which is frequently noisy, limited in quantity, and lacks direct measurements of key variables. Specifically, identifying both the underlying "hidden" state variables (coordinates) and the equations of motion from raw data like video frames is particularly difficult. Existing methods like SINDy autoencoders, while powerful, falter in these low-data, high-noise regimes, leading to incorrect identifications or unreliable uncertainty estimates. This paper aims to bridge this gap by developing a more robust and interpretable approach for data-driven physics discovery.

Methods

The core innovation is the Bayesian SINDy Autoencoder. This framework builds upon the SINDy Autoencoder by:

  • Bayesian Sparsifying Prior: Instead of relying on simpler sparsity-inducing priors, they employ a hierarchical Spike-and-Slab Gaussian-Laplace (SSGL) prior. This prior is more effective at distinguishing truly relevant terms from noise in sparse regression, especially under challenging data conditions.
  • Computationally Tractable Bayesian Inference: Traditional Bayesian methods can be computationally expensive. To overcome this, they integrate Stochastic Gradient Langevin Dynamics (SGLD). SGLD allows for efficient posterior sampling from mini-batches of data, making the Bayesian approach scalable to large datasets and deep neural networks.
  • Adaptive Empirical Bayes: They also incorporate an adaptive empirical Bayesian method using Expectation-Maximization (EM) to optimize prior hyperparameters and perform variable selection, further enhancing efficiency and robustness.

The overall architecture consists of an encoder that learns a low-dimensional latent representation of the input data, a decoder that reconstructs the original data from the latent representation, and a SINDy layer that identifies the governing equations within the latent space. The Bayesian framework allows for uncertainty quantification at multiple levels, including parameter uncertainty and prediction uncertainty.

Datasets

The authors evaluate their method on several datasets:

  • Synthetic Data:
    • Chaotic Lorenz System: A well-known chaotic system used to test the ability to discover dynamics from high-dimensional data.
  • Reaction-Diffusion System: A partial differential equation (PDE) system to assess performance on complex spatio-temporal dynamics.
  • Single Pendulum: A simpler nonlinear system to evaluate basic physics discovery.
  • Real Video Data:
    • Moving Rod: A 14-second video of a moving rod, presenting a significant challenge due to high dimensionality, noise, and missing temporal derivatives. This dataset is particularly highlighted for its difficulty and its ability to showcase the method's robustness.

Key Insights and Ideas

  • The SSGL Prior is Crucial for Low-Data, High-Noise: The paper strongly suggests that the SSGL prior is significantly more effective than simpler priors (like Laplace) when dealing with limited and noisy data, leading to more accurate identification of governing equations.
  • Bayesian Uncertainty is Key for Trustworthy Discovery: By providing uncertainty estimates on both the discovered parameters and future predictions, the Bayesian framework offers a level of trustworthiness that is often missing in purely data-driven methods. This is vital for scientific discovery.
  • SGLD Bridges the Gap to Scalable Bayesian Deep Learning: The successful application of SGLD demonstrates a practical path towards using sophisticated Bayesian inference techniques within deep learning architectures for complex scientific problems.
  • Latent Space Discovery is as Important as Equation Discovery: The ability to learn a meaningful low-dimensional coordinate system (latent space) is shown to be as critical as identifying the equations themselves, enabling the discovery of underlying physics that might be obscured in the raw, high-dimensional data.
  • Real-World Video Data is a Tough Benchmark: The successful identification of the pendulum's physics from a short, noisy video clip highlights the practical utility of the method for real-world applications where data is often imperfect.

Key Results

  • Accurate Physics Discovery: The Bayesian SINDy Autoencoder successfully identifies governing equations and fundamental constants (e.g., gravity g for the pendulum) across synthetic and real-world datasets.
  • Improved Performance in Low-Data/High-Noise: For the real moving rod video, the SSGL prior achieved a 100% success discovery rate compared to 70% for the Laplace prior, and significantly outperformed LASSO-based methods.
  • Uncertainty Quantification: The method provides reliable uncertainty estimates for both parameter discovery and future predictions, which are visualized and discussed.
  • Efficient Training: The use of SGLD and adaptive empirical Bayes allows for computationally tractable training, often requiring fewer epochs than previous methods. For example, the SSGL prior required 1,500 epochs for the moving rod, compared to 3,000+ for LASSO.
  • Pendulum Gravity Estimation: For the pendulum experiment, the estimated gravity constant ĝ was -9.876, very close to the true value of approximately -9.807, with a slightly overconfident but reasonable estimate.

Limitations and Future Work

  • Hyperparameter Tuning: The authors acknowledge that the current framework still requires a significant manual effort for hyperparameter tuning, which is a limitation for broader applicability.
  • Suboptimal Solutions and Global Minima: The non-convex nature of neural network training means that the model might converge to suboptimal solutions rather than the true global minimum (the correct governing equation and coordinate system).
  • Encoder-Decoder Architecture: The current study uses fixed neural network depths and widths, and further research is needed to understand how to optimally design these structures to avoid overfitting and ensure correct latent dimension extraction. Convolutional filters are suggested as a potential improvement.
  • Computational Cost of Full Bayesian Inference: While SGLD makes it tractable, a full Bayesian inference setup for hyperparameter tuning would significantly increase computational requirements.
  • Future Work:
    • Develop automated hyperparameter tuning strategies (e.g., multi-objective optimization, Bayesian model averaging).
  • Explore more complex scenarios and broader applications with real video data.
  • Investigate the use of convolutional filters for improved latent space discovery.
  • Further research into ensuring convergence to global minima in neural network training.

Summary updated

BibTeX
@inproceedings{gao2024bayesian,
  author = {Liyao Gao and J. Nathan Kutz},
  title = {{Bayesian autoencoders for data-driven discovery of coordinates, governing equations and fundamental constants}},
  booktitle = {Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences},
  year = {2024},
  doi = {10.1098/rspa.2023.0506},
}
Figure