Papers › Combining Physics and Deep Learning to learn Continuous-Time Dynamics Models

Combining Physics and Deep Learning to learn Continuous-Time Dynamics Models

5 Oct 2021arXiv:2110.01894archive 2025-07-28

Michael Lutter, Jan Peters

Deep learning has been widely used within learning algorithms for robotics. One disadvantage of deep networks is that these networks are black-box representations. Therefore, the learned approximations ignore the existing knowledge of physics or robotics. Especially for learning dynamics models, these black-box models are not desirable as the underlying principles are well understood and the standard deep networks can learn dynamics that violate these principles. To learn dynamics models with deep networks that guarantee physically plausible dynamics, we introduce physics-inspired deep networks that combine first principles from physics with deep learning. We incorporate Lagrangian mechanics within the model learning such that all approximated models adhere to the laws of physics and conserve energy. Deep Lagrangian Networks (DeLaN) parametrize the system energy using two networks. The parameters are obtained by minimizing the squared residual of the Euler-Lagrange differential equation. Therefore, the resulting model does not require specific knowledge of the individual system, is interpretable, and can be used as a forward, inverse, and energy model. Previously these properties were only obtained when using system identification techniques that require knowledge of the kinematic structure. We apply DeLaN to learning dynamics models and apply these models to control simulated and physical rigid body systems. The results show that the proposed approach obtains dynamics models that can be applied to physical systems for real-time control. Compared to standard deep networks, the physics-inspired models learn better models and capture the underlying structure of the dynamics.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2110.01894")

Code

Syntology Ran 0 of 15 code samples harvested from 1 repository linked to this paper; 15 have no recorded run.

By repository: official repository: 15 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

milutter/deep_lagrangian_networks officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 0 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from milutter/deep_lagrangian_networks. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

blackbox_hamiltonian_fn milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_HNN_model.py official repository unverified MIT (permissive) · 2667e258f0cdc0e2 · report
dynamics_model milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_Black_Box_model.py official repository unverified MIT (permissive) · 562dbed30a1e11c1 · report
dynamics_network milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_Black_Box_model.py official repository unverified MIT (permissive) · 5dfc2a678c2620d3 · report
explicit_euler milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_integrator.py official repository unverified MIT (permissive) · 0fe3cac41b65645a · report
forward_model milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_Black_Box_model.py official repository unverified MIT (permissive) · 65b06435097a5acb · report
init_env milutter/deep_lagrangian_networks/deep_lagrangian_networks/utils.py official repository unverified MIT (permissive) · 01efd7bb4e843c0e · report
kinetic_energy_fn milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_DeLaN_model.py official repository unverified MIT (permissive) · c155e05380e491f1 · report
load_dataset milutter/deep_lagrangian_networks/deep_lagrangian_networks/utils.py official repository unverified MIT (permissive) · b844b4778c786ead · report
mass_matrix_fn milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_DeLaN_model.py official repository unverified MIT (permissive) · 69ace0bd6b917694 · report
parition_params milutter/deep_lagrangian_networks/deep_lagrangian_networks/utils.py official repository unverified MIT (permissive) · a7b80c634651d1c5 · report
potential_energy_fn milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_DeLaN_model.py official repository unverified MIT (permissive) · 40239c8a6c8e8ebf · report
runge_kutta_4 milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_integrator.py official repository unverified MIT (permissive) · d679173a94867a01 · report
running_mean milutter/deep_lagrangian_networks/figure_forward_model.py official repository unverified MIT (permissive) · e213a81b3bb98d9d · report
symplectic_euler milutter/deep_lagrangian_networks/deep_lagrangian_networks/jax_integrator.py official repository unverified MIT (permissive) · e0b816555f4359ab · report
warning_on_one_line milutter/deep_lagrangian_networks/deep_lagrangian_networks/replay_memory.py official repository unverified MIT (permissive) · c515527842ec23ad · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections