arXiv:2610.35967cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35967

Data-driven Discovery of Lie Symmetries and First Integrals with Latent ODEs

Matt L. Wiemman, Peter Melchior

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present LATENTLIEODE, a novel neural ODE method to discover linear Lie symmetries and first integrals of the learned dynamics from timeseries observations such as video inputs. It starts with an autoencoder, which learns a low dimensional representation of the observed system and then maps trajectories to decorrelated latent coordinates z∈Rdz \in \mathbb{R}^d. A bank of linear infinitesimal generators Ak∈Rd×d\mathbf{A}_k \in \mathbb{R}^{d \times d} is fitted jointly against a differentiable Lie-bracket residual Jf(z)Az−Af(z)\mathbf{J}_f(z)\mathbf{A}z - \mathbf{A}f(z), while an MLP optimises the latent ODE f(z)=dz/dtf(z) = \mathrm{d}z/\mathrm{d}t to reconstruct the observation-space timeseries. After suitable generators and ff are found, we fit a third network HϕH_\phi to generate the first integral of the system. Across six benchmark systems (harmonic oscillator, simple and twin pendulums, Lotka–Volterra, pixel pendulum, sphere geodesics) we find each system’s relevant symmetries, and the discovered invariants match ground-truth conserved quantities at ∣ρ∣≥0.978|\rho| \geq 0.978. On the sphere, the pipeline recovers a non-abelian so(3)\mathfrak{so}(3), certified by the negative-definite Killing form of its recovered structure constants. This work presents significant advances in data-driven discovery of symmetries and provides a new pathway for neural surrogates of dynamical systems.

Keywords: Lie symmetries, latent ODEs, conservation laws, symmetry discovery, neural ODEs

Figure

latent chart: orbits become circles; the latent ODE z˙=f(z)\dot{z}=f(z) carries the motion

observations x(t)x(t) (video or states)

encoder E

circle + speed priors

norm spectrum ⇒\Rightarrow rank

read off

rank · algebra · H

algebra: [Ai,Aj]=cijkAk[A_i, A_j] = c_{ij}^k A_k

invariant

generator bank minimises the bracket residual

E∥Jf(z)Az−Af(z)∥2/∥f(z)∥2\mathbb{E}\|J_f(z)\mathbf{A}z-\mathbf{A}f(z)\|^2/\|f(z)\|^2

outputs: the symmetry group of the dynamics, its dimension, structure constants, and conserved quantity

Figure 1: An autoencoder maps observations (states or video) to a decorrelated latent chart where a latent ODE z˙=f(z)\dot{z} = f(z) carries the dynamics and orbits are circular. A linear generator A is then fitted by minimising the normalised Lie-bracket residual Ez∼data∥Jf(z)Az−Af(z)∥2/∥f(z)∥2\mathbb{E}_{z \sim data} \| \mathbf{J}_f(z) \mathbf{A} z - \mathbf{A} f(z) \|^2 / \| f(z) \|^2 on encoded data.

1. Introduction

Symmetry is one of the fundamental frameworks of physics. Continuous symmetries are linked with conservation laws via Noether's theorem (Noether, 1918), they constrain dynamics, and they reduce the dimensionality of systems. A growing body of work aims to build known symmetries into networks as equivariance constraints (Cohen and Welling, 2016; Bronstein et al., 2017; Villar et al., 2021) or to learn dynamics that respect an assumed analytic structure such as a Hamiltonian (Greydanus et al., 2019; Cranmer et al., 2020; Toth et al., 2020). However, the inverse problem is also of great interest: Given only noisy observations of a system, can one determine which symmetries (if any) it has? Existing approaches search for symmetries directly in observation space (Liu and Tegmark, 2021; Desai et al., 2022) or learn group actions with adversarial objectives (Yang et al., 2023, 2024), typically on state-space observations with the symmetry group's dimension fixed in advance.

We take a different route, motivated by the work of Yang et al. (2024). A symmetry that is nonlinear and incomprehensible in observation space is often linear in the right coordinate system. Hence, we create a neural pipeline that (1) automatically finds a reduced dimensional representation of a given dynamical system; (2) learns a latent ODE (Chen et al., 2018; Rubanova et al., 2019) from trajectories, mapping observations into a low-dimensional decorrelated coordinate chart; (3) fits a deliberately over-complete bank of linear generators against a differentiable Lie-bracket residual; and (4) reads off the algebra's dimension from the generator-norm spectrum, its structure constants from pairwise brackets, and its conservation laws from jointly-fitted first-integral networks.