Identifying ODEs from Unstructured Data with Causal Representation Learning

Alessandro Trenta, Riccardo Massidda, Davide Bacciu, Sara MagliacanearXiv 2026

TL;DR

This paper introduces SPEED-AE (SParse Equivalent Equation Discovery AutoEncoder), a framework that recovers the governing physical equations of a dynamical system directly from high-dimensional observations like video. By bridging Causal Representation Learning (CRL) with sparse ODE discovery, it identifies underlying physical variables and their governing laws with theoretical guarantees, significantly outperforming existing baselines in both interpretability and long-term forecasting.

What Problem Does This Paper Address?

Scientific discovery often involves finding the simple mathematical laws (Ordinary Differential Equations, or ODEs) that govern complex systems. While methods like SINDy (Sparse Identification of Nonlinear Dynamics) work well when we can measure physical variables directly (e.g., position, velocity), they fail when we only have "unstructured" data, such as raw image pixels.

Recent advances in Causal Representation Learning (CRL) can extract "disentangled" latent variables from images, but there’s a catch: these variables are only identified up to a diffeomorphism—an arbitrary, smooth, non-linear warping. If you try to learn an ODE on these warped variables, the resulting equations become incredibly dense and complex, losing the sparsity and interpretability that characterize physical laws. This paper addresses the gap between learning disentangled variables and learning sparse, physically meaningful equations.

Methods

The authors propose a two-stage pipeline called SPEED-AE:

  1. CRL Pretraining: First, a standard CRL model (like CITRIS or DMSVAE) is used to extract disentangled latents from high-dimensional data. These latents are "correct" in that they separate the underlying causes, but they are non-linearly warped.
  2. The SPEED-AE Layer: The core innovation is a component-wise autoencoder placed after the CRL model. This layer learns a specific transformation for each variable to "unwarp" it.
  3. Sparse ODE Discovery: Simultaneously, the model learns a sparse ODE in this new "unwarped" latent space using a library of candidate functions (like polynomials).
The SPEED-AE pipeline: high-dimensional data is first processed by a CRL model, then refined by component-wise autoencoders to find a latent space where the governing ODE is sparse.

The key is the sparsity constraint. By forcing the discovered equations to be sparse, the model is incentivized to find a latent representation that is as close to the ground truth as possible. Standard autoencoders (like SINDyAE) lack the CRL stage and often fail to disentangle variables, while standard CRL lacks the "unwarping" stage needed for sparse discovery.

Datasets

The framework was evaluated on three classic dynamical systems, all mapped to high-dimensional observations (images or non-linear projections):

  • Lotka-Volterra: A predator-prey model (2 variables).
  • Lorenz System: A 3D system representing atmospheric convection, tested in both stable and chaotic regimes.
  • Two-Pendulum System: A system of two independent pendulums, observed as $64 \times 64$ images.

Key Insights and Ideas

  • Disentanglement is not enough: Even if a model perfectly separates the variables of a system, a non-linear warping of those variables makes equation discovery nearly impossible.
  • Sparsity as a Causal Anchor: The paper proves that for polynomial ODEs, requiring the discovered equations to be sparse narrows down the identifiability of variables from general polynomials to simple monomials (and often just linear transformations).
  • Component-wise is Crucial: By using component-wise autoencoders, the model preserves the disentanglement achieved by the CRL step while focusing solely on "unwarping" each individual variable.

Key Results

SPEED-AE demonstrated superior performance across multiple metrics:

  • Equation Recovery: It was the only method capable of recovering the exact sparse coefficients of the ground-truth ODEs from unstructured data. As shown in Figure 2, while other methods produce dense, messy equations, SPEED-AE recovers the simple physical law.
  • Disentanglement: It significantly reduced "correlation discrepancy," meaning its learned variables matched the true physical variables much more closely than standard CRL or SINDyAE.
  • Forecasting: In long-term trajectory prediction, SPEED-AE achieved errors up to 20 times lower than traditional ML baselines like LSTMs or Transformers, which tend to collapse over long horizons.
Figure 2: Comparison between SINDyAE, SINDy applied to CRL latents (using CITRIS), and SPEED-AE (with CITRIS as CRL method and SINDy as equation discovery method) on the Lotka- Volterra dataset ( ˙z1 = 0.66z1 −1.33z1z2, ˙z2 = −z2 + z1z2). For each model, the left box reports scatter plots of the true versus learned latents. We then compare a test trajectory with the one predicted from only the initial condition and the discovered equation, after converting both to the true latent space, following the evaluation protocol in Section 6. SPEED-AE is the only method that recovers a sparse equation and achieves strong long-term prediction performance.
Figure 3: Learned coefficients for Lotka-Volterra for each polynomial of the state variables (each row) and different methods (each column, where the last four are versions of SPEED-AE). The first column shows the ground truth coefficients and the black boxes highlight the non-zero coefficients.

Limitations and Future Work

  • Theoretical Assumptions: The current proofs rely on a "non-cancellation" assumption (terms don't perfectly cancel out during variable transformation) and assume polynomial diffeomorphisms.
  • CRL Dependency: The final performance is heavily dependent on the quality of the initial CRL disentanglement. If the CRL step fails to separate the variables, the subsequent sparse discovery cannot fix it.
  • Future Directions: The authors suggest extending this to non-polynomial libraries and exploring settings where the underlying functional form of the ODE is completely unknown.

Summary updated

BibTeX
@misc{trenta2026identifying,
  author = {Alessandro Trenta and Riccardo Massidda and Davide Bacciu and Sara Magliacane},
  title = {{Identifying ODEs from Unstructured Data with Causal Representation Learning}},
  year = {2026},
  eprint = {2609.37083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.37083},
}
Figure