Rodent: Relevance determination in ODE

Niklas Heim, Václav Smídl, Tomás PevnýarXiv 2019

Abstract

Discovering the underlying symbolic equations of dynamical systems from noisy, partial observations remains a significant challenge in scientific modeling. Traditional methods often require pre-defined libraries of basis functions or produce uninterpretable "black-box" models. We present Rodent (Relevant ODE identifier), a framework that combines Variational Auto-Encoders (VAEs) with differentiable ODE solvers and sparsity-promoting priors to identify the simplest mathematical manifold explaining a family of systems. By leveraging Neural Arithmetic Units and Automatic Relevance Determination, Rodent recovers human-readable equations and generalizes to unseen system parameters.

Introduction

Scientists frequently observe complex dynamical systems—ranging from planetary motion to predator-prey dynamics—without a complete understanding of the governing differential equations. While modern machine learning can accurately mimic these systems, most models lack physical insight and fail to generalize outside their training distribution.

Existing equation discovery methods, such as SINDy, are effective but limited by their reliance on a pre-defined library of potential mathematical terms. If the governing term is missing from the library, the discovery fails. Furthermore, these methods typically learn a single model for a single dataset. Rodent addresses these limitations by discovering equations without a fixed library and learning a general manifold of models (e.g., the universal rule for harmonic oscillators) rather than a single instance.

The Rodent Framework

Rodent utilizes a VAE architecture where the traditional neural network decoder is replaced by a differentiable ODE solver. This architectural choice bakes the laws of calculus directly into the model, forcing the latent space to represent actual physical parameters and initial states.

The Rodent architecture: A VAE where the decoder is a differentiable ODE solver, enabling the discovery of physical parameters and initial states.

Architecture Components

  • Dual-Part Encoder: The encoder is split into two specialized networks. A dense part estimates the initial conditions ($\xi(0)$), while a Convolutional Neural Network (CNN) estimates the ODE parameters ($\theta$). The CNN's architecture allows it to process trajectories of varying lengths.
  • ODE Solver Decoder: By using a standard solver (e.g., Tsit5) as the decoder, the network learns the derivative that generates the entire path rather than just predicting the next point.
  • Neural Arithmetic Units (NAU/NMU): To ensure the discovered equations are human-readable, Rodent employs specialized layers that perform basic arithmetic operations (addition, subtraction, multiplication) instead of standard non-linear activations. This allows the model to output symbolic expressions directly.
  • Automatic Relevance Determination (ARD): This "pruning" engine applies a Bayesian prior to the latent space, aggressively pushing unnecessary parameters to zero. This results in the simplest possible mathematical description of the system.

Key Insights and Results

Rodent was evaluated on synthetic benchmarks including harmonic oscillators, superimposed signals, and the non-linear Lotka-Volterra system.

Interpretability and Sparsity

A critical advantage of Rodent is its ability to find sparse solutions. Standard neural networks are typically dense, where every parameter contributes to the output. In contrast, Rodent's combination of NAUs and ARD identifies the minimal set of terms required to describe the physics.

Comparison of NAU weight and initial state estimation between Rodent (with ARD) and Odent (without ARD), highlighting Rodent's superior sparsity.

As shown in the comparison with "Odent" (a version without ARD), Rodent successfully zeros out irrelevant parameters, making the resulting equations significantly easier to interpret. In harmonic oscillator tests, Rodent reduced a 12-parameter potential model to the 4 essential parameters, effectively reconstructing the correct second-order ODE.

Generalization and Extrapolation

Because Rodent learns the underlying physics rather than memorizing patterns, it demonstrates remarkable extrapolation power. Once trained, the encoder can analyze a new trajectory and instantly identify its specific frequency and starting position, even for systems with frequencies far outside the training range.

Limitations and Future Directions

While Rodent represents a significant step forward, several challenges remain. Observation ambiguity is a primary concern: if a system is only partially observed (e.g., seeing position but not velocity), multiple valid mathematical descriptions may exist. Additionally, while NAUs and NMUs cover basic arithmetic, they currently struggle with complex functions like divisions or arbitrary power laws. Future work will explore extending the framework to Partial Differential Equations (PDEs) and incorporating more complex mathematical units to capture a broader range of physical phenomena.

Summary updated

BibTeX
@misc{heim2019rodent,
  author = {Niklas Heim and Václav Smídl and Tomás Pevný},
  title = {{Rodent: Relevance determination in ODE}},
  year = {2019},
  eprint = {1912.00656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.00656},
}
Figure