Discrete Lagrangian Neural Networks with Automatic Symmetry Discovery

Yana Lishkova, Paul Scherer, Steffen Ridderbusch, Mateja Jamnik, Pietro Liò, Sina Ober-Blöbaum, Christian Offen · DOI

Abstract

This paper presents Discrete Lagrangian Neural Networks (DLNN) and SymDLNN, a novel framework for learning dynamical systems directly in the discrete domain. By utilizing variational integrators and Lie group theory, the proposed models learn a discrete Lagrangian from configuration snapshots, ensuring consistency between the learned physics and numerical simulation. Furthermore, SymDLNN automatically discovers hidden affine symmetries and their associated conservation laws. Experimental results on the pendulum-on-a-cart and Kepler problems demonstrate superior long-term stability, energy conservation, and noise robustness compared to continuous-time Lagrangian Neural Networks.

Introduction

In classical physics-informed machine learning, models like Lagrangian Neural Networks (LNNs) typically learn a continuous-time function and then employ standard numerical integrators for prediction. This approach suffers from two major flaws: discretization error, which leads to energy drift over long periods, and a failure to exploit hidden symmetries without prior expert knowledge. This work introduces a framework that learns a discrete Lagrangian directly from snapshot observations, perfectly aligning the learned physics with numerical simulation while identifying symmetries on the fly.

Methods

The authors propose two primary innovations to bridge the gap between continuous models and discrete simulations:

Discrete Lagrangian Learning (DLNN)

Instead of learning a continuous function $\mathcal{L}(q, \dot{q})$, the model uses a Multi-Layer Perceptron (MLP) to learn a discrete Lagrangian $L_d(q_k, q_{k+1})$. Training is performed by minimizing the residual of the Discrete Euler-Lagrange equations. To prevent convergence to trivial solutions, a novel degeneracy regularization term ensures the Jacobian of the equations of motion remains non-singular.

Automatic Symmetry Discovery (SymDLNN)

SymDLNN incorporates Lie group theory into the loss function to find affine transformations (rotation, translation, scaling) that leave the learned Lagrangian invariant. The symmetry parameters are trained alongside the network weights, allowing the model to analytically derive conserved quantities like momentum or energy via Noether's theorem.

Figure 1: Overview of the DLNN and SymDLNN framework, contrasting discrete and continuous equations of motion (EOM).

Experimental Results

The models were evaluated on classic physical benchmarks: a pendulum on a cart (translational symmetry) and the Kepler problem (rotational symmetry).

Trajectory Stability and Recreation

DLNN and SymDLNN significantly outperformed standard LNNs in long-term trajectory prediction. As shown in the Kepler problem results, standard LNNs exhibit rapid orbital drift. In contrast, the discrete models maintain stable orbits, internalizing the integration scheme to eliminate the mismatch between learned physics and simulation tools.

Figure 2: Trajectory recreation and prediction for the Kepler problem. DLNN and SymDLNN (green and red) maintain the orbit, while the standard LNN (purple) drifts significantly.

Symmetry and Conservation

Using Variational Backward Error Analysis (VBEA), the authors demonstrated that their models preserve energy and symmetry-related constants with much higher precision than baseline methods. SymDLNN successfully identified correct symmetry parameters from scratch, even when trained on noisy measurements ($\sigma^2 = 0.001$), where non-symmetric models typically fail.

Discussion and Conclusion

Learning in the discrete domain provides a powerful inductive bias by ensuring the model "internalizes" the integration scheme. Symmetry discovery further constrains the search space, improving performance with limited data. While currently limited to affine linear transformations, future work may generalize this to non-linear coordinate symmetries and higher-dimensional systems like complex robotics or fluid dynamics. This framework represents a significant step toward autonomous discovery of physical laws from raw observational data.

Summary updated

BibTeX
@inproceedings{lishkova2023discrete,
  author = {Yana Lishkova and Paul Scherer and Steffen Ridderbusch and Mateja Jamnik and Pietro Liò and Sina Ober-Blöbaum and Christian Offen},
  title = {{Discrete Lagrangian Neural Networks with Automatic Symmetry Discovery}},
  booktitle = {IFAC-PapersOnLine},
  year = {2023},
  doi = {10.1016/j.ifacol.2023.10.1457},
}
Figure