The Principia Machina/Tools/LagrangianNN: Difference between revisions
DeltaS Zero (talk | contribs) Physics tool added 2026-10-06: Lagrangian and Hamiltonian networks; scores by the research pass, with references (tpm_toolkit 0.1.0) |
Published from the Principia Machina source |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Lagrangian and Hamiltonian Neural Networks}} | |||
'''Lagrangian and Hamiltonian Neural Networks: Learning an Action from Trajectories''' | '''Lagrangian and Hamiltonian Neural Networks: Learning an Action from Trajectories''' | ||
[[Category:Principia Machina]] [[Category:Tools]] | [[Category:Principia Machina]] [[Category:Tools]] | ||
| Line 31: | Line 32: | ||
* '''[[The Principia Machina/Research Toolkit/Bibliography#LNN2020|LNN2020]]''' – Cranmer M., Greydanus S., Hoyer S., Battaglia P., Spergel D., Ho S. (2020). Lagrangian Neural Networks. [https://arxiv.org/abs/2003.04630 arXiv:2003.04630]. | * '''[[The Principia Machina/Research Toolkit/Bibliography#LNN2020|LNN2020]]''' – Cranmer M., Greydanus S., Hoyer S., Battaglia P., Spergel D., Ho S. (2020). Lagrangian Neural Networks. [https://arxiv.org/abs/2003.04630 arXiv:2003.04630]. | ||
* '''[[The Principia Machina/Research Toolkit/Bibliography#HNN2019|HNN2019]]''' – Greydanus S., Dzamba M., Yosinski J. (2019). Hamiltonian Neural Networks. NeurIPS 2019, 15353–15363. [https://arxiv.org/abs/1906.01563 arXiv:1906.01563]. | * '''[[The Principia Machina/Research Toolkit/Bibliography#HNN2019|HNN2019]]''' – Greydanus S., Dzamba M., Yosinski J. (2019). Hamiltonian Neural Networks. NeurIPS 2019, 15353–15363. [https://arxiv.org/abs/1906.01563 arXiv:1906.01563]. | ||
Latest revision as of 19:34, 15 October 2026
Lagrangian and Hamiltonian Neural Networks: Learning an Action from Trajectories
Added to the survey on 2026-10-06 by the Research Toolkit's research pass. The scores below are that pass's assessment from the evidence cited under References, on the survey's four axes and scale; they are not the original survey's (2026-09-26), and no rule of the Principia Machina reads them. See the additions on the front page.
Overview & Architectural Fit
A Lagrangian neural network parameterizes a scalar with a network and gets the dynamics from the Euler-Lagrange equations by automatic differentiation; a Hamiltonian neural network parameterizes and uses Hamilton's equations, , . Either way, energy conservation is built into the model rather than learned. They are the only tools in the survey that learn the Lagrangian or Hamiltonian itself as a network, with its structure built in; PySR, by contrast, searches for a symbolic one. The Lagrangian network's reference code is in JAX; the Hamiltonian network's is in PyTorch.
Mathematical Evaluation for TPM
- Lagrangian / Action (8/10): Learns itself as a network; the accelerations follow as .
- Field / PDE (2.5/10): The reference code targets finite-dimensional systems; fields would need graph or grid architectures.
- Relativity (2/10): Nothing specific to relativity.
- Quantum / Data (7/10): Learning from data is the core, for classical systems only.
Integration Pipeline
- Fit to trajectory data, and an unstructured network to the same data as a control.
- Test whether the learned Lagrangian reproduces the dynamics and conserves energy where the control does not: evidence that the data come from an action.
- Look for cyclic coordinates (), which predict conserved momenta to confirm in the data.
- Distil a symbolic Lagrangian from the network with PySR.
Status, Licence and Limits
- Status: Frozen research reference code with no releases; the Lagrangian network's README keeps the original versions to reproduce the paper's environment.
- Licence: Apache-2.0 for both reference repositories.
- Home: https://github.com/MilesCranmer/lagrangian_nns and https://github.com/greydanus/hamiltonian-nn
- Limits: A Lagrangian is not unique (total time derivatives, overall scale), so a learned one is identified only up to equivalence. The inverse of the Hessian can be ill-conditioned. Dissipative or driven systems need extensions beyond the original papers. The publication venue of the Lagrangian network paper is not confirmed.
On the Principia Machina
A tool runs only where the sponsor installed and bound it, and what it returns is untrusted input, vetted before use; its numbers are never values of the site's calculator, TPC. A law it finds is not a register record: it can enter only as the kernel of a new container, and the data it was fitted to can never be the outside value of that law's verification. See Agent/Tools and the operator's guide.
References
- LNN2020 – Cranmer M., Greydanus S., Hoyer S., Battaglia P., Spergel D., Ho S. (2020). Lagrangian Neural Networks. arXiv:2003.04630.
- HNN2019 – Greydanus S., Dzamba M., Yosinski J. (2019). Hamiltonian Neural Networks. NeurIPS 2019, 15353–15363. arXiv:1906.01563.