This paper introduces Discrete Lagrangian Neural Networks (DLNN) and their symmetric extension, SymDLNN. By combining discrete mechanics with Lie group theory, the authors present a framework that learns the underlying physics of a dynamical system from configuration data alone, automatically discovering conservation laws (like energy or momentum) without needing them to be hard-coded.
TL;DR
The authors propose a neural network framework that learns discrete Lagrangians directly from motion observations, avoiding the discretization errors common in continuous models. By integrating Lie group theory into the loss function, the model automatically discovers system symmetries and conservation laws, leading to significantly more stable and physically consistent long-term predictions, even in the presence of noise.
What Problem Does This Paper Address?
Modeling dynamical systems (like a swinging pendulum or orbiting planets) using standard neural networks often results in "unphysical" behavior—energy might drift, or the system might fail to respect basic symmetries like rotational invariance.
Existing physics-informed approaches, such as Lagrangian Neural Networks (LNNs), typically learn a continuous Lagrangian and then discretize it for simulation. This introduces discretization error, where the learned model and the numerical integrator don't perfectly align. Furthermore, most models require observations of both position and velocity (or momentum), which are often noisy or unavailable. Finally, while symmetries are crucial for physical accuracy, they usually have to be manually specified rather than learned from the data itself.
Methods
The authors introduce two primary innovations:
- Learning in the Discrete Domain: Instead of learning a continuous Lagrangian $L(q, \dot{q})$, the DLNN learns a discrete Lagrangian $L_d(q_k, q_{k+1})$. This allows the model to work directly with the discrete Euler-Lagrange equations, matching the way computers actually simulate motion. This approach only requires configuration data ($q$), eliminating the need for explicit velocity measurements.
- Automatic Symmetry Discovery (SymDLNN): The authors incorporate Lie group theory into the training process. They define a "symmetry loss" term based on affine linear transformations (translations, rotations, and scaling). During training, the network learns both the Lagrangian and the parameters of the symmetry group simultaneously.
- Degeneracy Cost: Learning a Lagrangian is an "ill-posed" problem because many different functions can result in the same equations of motion. The authors introduce a novel cost term to prevent the network from converging to trivial (constant) solutions or Lagrangians that are numerically difficult to solve.
The relationship between these learned discrete functions and their continuous physical counterparts is managed through Variational Backward Error Analysis (VBEA), as illustrated in the diagram below:
Datasets
The models were evaluated on two classic physical systems:
- Pendulum on a Cart: A system with translational symmetry.
- The Kepler Problem: A two-body orbiting system characterized by rotational symmetry.
The authors tested these systems across three scenarios: single-trajectory learning, multi-trajectory learning, and learning from noisy data.
Key Insights and Ideas
- Discrete is Robust: By learning the discrete Lagrangian, the model bypasses the "gap" between continuous theory and discrete simulation. This leads to much better qualitative behavior over long time scales.
- Symmetry as Regularization: Discovering symmetries isn't just a "nice-to-have" feature; it acts as a powerful inductive bias. Forcing the model to find a symmetric representation regularizes the learning process, helping it generalize better from less data.
- Configuration-Only Learning: The ability to train using only triples of positions $(q_{k-1}, q_k, q_{k+1})$ is a significant practical advantage for real-world sensor data where velocities are often derived and thus highly noisy.
Key Results
The DLNN and SymDLNN models consistently outperformed standard LNNs in both recreation (fitting the training data) and prediction (extending the trajectory into the future).
- Accuracy: In the Kepler problem, standard LNNs quickly diverged from the true orbit, while DLNN and SymDLNN maintained stable, physically accurate trajectories.
- Symmetry Identification: SymDLNN successfully identified the correct symmetry parameters (e.g., the rotational invariance in the Kepler problem) from scratch.
- Noise Resilience: Even with Gaussian noise added to the observations, SymDLNN preserved energy and symmetry significantly better than baselines.
As seen in Figure 3, the DLNN and SymDLNN (green and red) stay on the ground truth orbit much longer than the standard LNN (purple):
Furthermore, the energy and symmetry error plots (Figures 4 and 5) demonstrate that the SymDLNN maintains these physical quantities with very low drift compared to non-symmetric approaches.
Limitations and Future Work
- Symmetry Scope: The current framework is explicitly worked out for affine linear transformations. While this covers many common cases (rotation, translation), it doesn't yet cover more complex, non-linear symmetries.
- Optimization Complexity: The loss function involves second-order derivatives and determinants (for the degeneracy term), which can be computationally expensive for very high-dimensional systems.
- Future Directions: The authors suggest extending this to non-conservative systems (those with friction or external driving forces) and exploring more complex Lie groups.
Summary updated