Learning Legged MPC with Smooth Neural Surrogates
Samuel A. Moore, Easop Lee, Boyuan Chen
TL;DR
The paper tackles the challenge of integrating learned dynamics with online planning for legged robots by identifying stiffness, nonsmoothness, and heavy-tailed residuals as key failure modes in gradient-based MPC. It introduces the Smooth Neural Surrogate (SNS), a Lipschitz-controlled MLP, paired with heavy-tailed (Cauchy) maximum-likelihood estimation, to provide well-behaved predictions and derivatives through contact. Coupled with a predictor–corrector state estimator and a gray-box Generalized Gauss–Newton MPC, the approach achieves robust zero-shot generalization and efficient planning, both in simulation and hardware, under domain randomization and partial observability. The results show substantial robustness and scalability gains, enabling reliable whole-body control across unseen terrains and gaits without task-specific retraining. Overall, the work demonstrates that carefully designed smoothness constraints and robust losses can dramatically improve the compatibility between learned dynamics and model-based planners in legged robotics.
Abstract
Deep learning and model predictive control (MPC) can play complementary roles in legged robotics. However, integrating learned models with online planning remains challenging. When dynamics are learned with neural networks, three key difficulties arise: (1) stiff transitions from contact events may be inherited from the data; (2) additional non-physical local nonsmoothness can occur; and (3) training datasets can induce non-Gaussian model errors due to rapid state changes. We address (1) and (2) by introducing the smooth neural surrogate, a neural network with tunable smoothness designed to provide informative predictions and derivatives for trajectory optimization through contact. To address (3), we train these models using a heavy-tailed likelihood that better matches the empirical error distributions observed in legged-robot dynamics. Together, these design choices substantially improve the reliability, scalability, and generalizability of learned legged MPC. Across zero-shot locomotion tasks of increasing difficulty, smooth neural surrogates with robust learning yield consistent reductions in cumulative cost on simple, well-conditioned behaviors (typically 10-50%), while providing substantially larger gains in regimes where standard neural dynamics often fail outright. In these regimes, smoothing enables reliable execution (from 0/5 to 5/5 success) and produces about 2-50x lower cumulative cost, reflecting orders-of-magnitude absolute improvements in robustness rather than incremental performance gains.
