Structured Mechanical Models for Robot Learning and Control

Jayesh K. Gupta, Kunal Menda, Zachary Manchester, Mykel J. Kochenderfer

Abstract

Robotic control often requires a delicate balance between the physical consistency of first-principles models and the representational flexibility of deep learning. We present Structured Mechanical Models (SMMs), a framework that embeds the manipulator equation directly into neural network architectures. By decomposing dynamics into physically meaningful components—mass matrices, potential energy, dissipative forces, and input Jacobians—SMMs achieve up to 1,000x lower generalization error than standard black-box models and enable reliable control of complex, underactuated systems.

Introduction

The field of robotics is currently divided between two modeling paradigms. First-principles models, derived from Newton-Euler or Lagrangian mechanics, are physically consistent but often fail to capture complex real-world phenomena like friction or drag. Conversely, Black-Box Neural Networks (BBNNs) are highly flexible but data-inefficient and prone to violating basic physical laws, leading to poor generalization in unseen states.

A standard Black-Box Neural Network (BBNN) architecture, which maps state and control inputs directly to accelerations without physical priors.

Furthermore, many classical control techniques, such as feedback linearization, require a "control-affine" structure where inputs enter the system linearly. BBNNs lack this inherent structure, complicating their integration with standard control toolboxes.

Methodology: Structured Mechanical Models

SMMs address these limitations by enforcing the structure of the manipulator equation: $$M(q)\ddot{q} + C(q, \dot{q})\dot{q} + G(q) + \tilde{F}(q, \dot{q}) = B(q)u$$

Instead of a single monolithic network, SMMs utilize specialized sub-networks to learn individual terms of the equation:

  1. Mass Matrix ($M_\theta$): A network predicts system inertia based on configuration $q$.
  2. Potential Energy ($V_\theta$): A network predicts gravity and potential effects; the force $G(q)$ is derived as the gradient $\nabla_q V_\theta$.
  3. Dissipative Forces ($\tilde{F}_\theta$): A network captures non-conservative forces like friction.
  4. Input Jacobian ($B_\theta$): A network maps control inputs $u$ to generalized forces.
The Input Jacobian sub-network ($B_\theta$) within an SMM, which ensures the model maintains a control-affine structure.

A specific variant, SMM-C, strictly enforces the control-affine structure, making it directly compatible with advanced trajectory optimization and feedback controllers.

Experimental Evaluation

The proposed models were evaluated on four underactuated robotic benchmarks: the Furuta Pendulum, Cartpole, Acrobot, and Double Cartpole. These systems are characterized by complex dynamics and are notoriously difficult to control without high-fidelity models.

Key Insights

  • Analytical Generalization: Because SMMs derive velocity-dependent terms (like Coriolis forces) analytically from the learned mass matrix, they generalize to novel velocities far better than BBNNs.
  • Jacobian Accuracy: For control tasks, the accuracy of the dynamics' Jacobian (the gradient of the state transition) is often more critical than the raw prediction error. SMMs provide significantly more accurate Jacobian estimates than black-box alternatives.

Results

The performance gains of SMMs over BBNNs were substantial across all benchmarks:

  • Generalization: SMM-Cs achieved validation errors one to three orders of magnitude lower than BBNNs, regardless of the training data scale (ranging from 256 to over 32,000 samples).
  • Control Performance: In swing-up tasks, SMM-based controllers performed nearly as well as models using "True" physics. BBNNs frequently failed to solve these tasks or incurred costs several orders of magnitude higher.

Discussion and Future Work

While SMMs offer superior accuracy and control reliability, they involve a computational trade-off, requiring approximately 5x more training and query time due to the internal calculation of mass matrix Jacobians.

Future research will focus on extending SMMs to "contact-rich" environments involving impacts and constraints. The authors suggest that integrating variational integrators into the SMM framework could provide a robust path forward for modeling walking robots and complex manipulation tasks.

Summary updated

BibTeX
@inproceedings{gupta2020structured,
  author = {Jayesh K. Gupta and Kunal Menda and Zachary Manchester and Mykel J. Kochenderfer},
  title = {{Structured Mechanical Models for Robot Learning and Control}},
  booktitle = {L4DC},
  year = {2020},
}
Figure