Residual MPC: Blending Reinforcement Learning with GPU-Parallelized Model Predictive Control
Se Hwan Jeon, Ho Jae Lee, Seungwoo Hong, Sangbae Kim
TL;DR
This work addresses the robustness gap between model-based MPC and model-free RL in legged locomotion by embedding a GPU-parallelized kinodynamic whole-body MPC as a fixed control prior within an RL loop. A residual policy is trained to apply targeted torque-level corrections to the MPC outputs at 100 Hz, enabling in-the-loop learning across thousands of parallel agents. The approach yields higher sample efficiency, larger achievable velocity commands, improved self-collision handling, and zero-shot adaptability to unseen gaits and uneven terrain, with hardware validation on MIT Humanoid. Despite increased wall-clock training time due to MPC evaluation, the resulting policy demonstrates safer, more hardware-friendly locomotion and points to future directions in learning MPC parameters and uncertainty-aware blending.
Abstract
Model Predictive Control (MPC) provides interpretable, tunable locomotion controllers grounded in physical models, but its robustness depends on frequent replanning and is limited by model mismatch and real-time computational constraints. Reinforcement Learning (RL), by contrast, can produce highly robust behaviors through stochastic training but often lacks interpretability, suffers from out-of-distribution failures, and requires intensive reward engineering. This work presents a GPU-parallelized residual architecture that tightly integrates MPC and RL by blending their outputs at the torque-control level. We develop a kinodynamic whole-body MPC formulation evaluated across thousands of agents in parallel at 100 Hz for RL training. The residual policy learns to make targeted corrections to the MPC outputs, combining the interpretability and constraint handling of model-based control with the adaptability of RL. The model-based control prior acts as a strong bias, initializing and guiding the policy towards desirable behavior with a simple set of rewards. Compared to standalone MPC or end-to-end RL, our approach achieves higher sample efficiency, converges to greater asymptotic rewards, expands the range of trackable velocity commands, and enables zero-shot adaptation to unseen gaits and uneven terrain.
