Deep Lagrangian Networks: Using Physics as Model Prior for Deep Learning
Michael Lutter, Christian Ritter, Jan Peters
TL;DR
Problem: learn accurate, extrapolatable dynamics for physically embodied systems with limited data. Approach: Deep Lagrangian Networks (DeLaN) impose a Lagrangian mechanics prior by parameterizing the inertia as $\hat{\mathbf{H}}(\mathbf{q}) = \hat{\mathbf{L}}(\mathbf{q}) \hat{\mathbf{L}}(\mathbf{q})^{T}$ and learning $\hat{\mathbf{g}}(\mathbf{q})$, thereby enforcing the Euler–Lagrange equation with $L = T - V$ and $T = \frac{1}{2} \dot{\mathbf{q}}^{T} \mathbf{H}(\mathbf{q}) \dot{\mathbf{q}}$. Key contributions: a three-headed network topology that encodes the physics, analytic derivations for $d/dt\mathbf{H}$ and $\partial (\dot{\mathbf{q}}^{T} \mathbf{H} \dot{\mathbf{q}})/\partial \mathbf{q}_i$, and end-to-end trainable derivatives enabling real-time control; extensive experiments on simulated and physical robots. Findings: DeLaN achieves lower sample complexity and better extrapolation to unseen trajectories and higher velocities than a standard FF-NN and can match or exceed analytic baselines in several settings, while maintaining physical plausibility. Significance: provides a principled, data-efficient method to fuse physics with deep learning for safe, extrapolative model-based control across diverse mechanical systems, with potential extensions to non-conservative forces.
Abstract
Deep learning has achieved astonishing results on many tasks with large amounts of data and generalization within the proximity of training data. For many important real-world applications, these requirements are unfeasible and additional prior knowledge on the task domain is required to overcome the resulting problems. In particular, learning physics models for model-based control requires robust extrapolation from fewer samples - often collected online in real-time - and model errors may lead to drastic damages of the system. Directly incorporating physical insight has enabled us to obtain a novel deep model learning approach that extrapolates well while requiring fewer samples. As a first example, we propose Deep Lagrangian Networks (DeLaN) as a deep network structure upon which Lagrangian Mechanics have been imposed. DeLaN can learn the equations of motion of a mechanical system (i.e., system dynamics) with a deep network efficiently while ensuring physical plausibility. The resulting DeLaN network performs very well at robot tracking control. The proposed method did not only outperform previous model learning approaches at learning speed but exhibits substantially improved and more robust extrapolation to novel trajectories and learns online in real-time
