Lagrangian neural ODEs: Measuring the existence of a Lagrangian with Helmholtz metrics

Luca Wolf, Tobias Buck, Bjoern Malte Schaefer
10/7/2025
cs.LGmath.DSphysics.comp-ph

No confident code implementation found for this paper.

Abstract

Neural ODEs are a widely used, powerful machine learning technique in particular for physics. However, not every solution is physical in that it is an Euler-Lagrange equation. We present Helmholtz metrics to quantify this resemblance for a given ODE and demonstrate their capabilities on several fundamental systems with noise. We combine them with a second order neural ODE to form a Lagrangian neural ODE, which allows to learn Euler-Lagrange equations in a direct fashion and with zero additional inference cost. We demonstrate that, using only positional data, they can distinguish Lagrangian and non-Lagrangian systems and improve the neural ODE solutions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wolf2025lagrangian,
  title  = {Lagrangian neural ODEs: Measuring the existence of a Lagrangian with Helmholtz metrics},
  author = {Luca Wolf and Tobias Buck and Bjoern Malte Schaefer},
  year   = {2025},
  eprint = {2510.06367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.06367v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.06367.svg)](https://codeofpaper.com/paper/2510.06367)

Discussion