Amortising Trajectory Optimisation for Residual MPC via Implicit Contact Differentiation
Daniel Layeghi, Thomas Corbères, Calum Arnott, Aditya Kamireddypalli, Hashim Al-Obaidi, Steve Tonneau, Michael Mistry
Abstract
Differentiable simulation can accelerate contact-rich trajectory optimisation by exposing local sensitivities of task outcomes to controls. Existing approaches either use finite differences, which are expensive and step-size sensitive; differentiate iterative contact solvers by unrolling automatic differentiation (AD), which stores a growing computation trace; or require intricate, solver-specific KKT sensitivity derivations. We introduce an AD-assisted implicit derivative for regularised smooth contacts and apply it to Mujoco MJX, based on the Implicit Function Theorem (IFT). The method differentiates the stationarity residual at the tolerance-converged solution, avoiding both solver unrolling and hand-assembled KKT systems. IFT keeps compiled temporary memory nearly constant with solver effort, changing by less than 4 from one to ten iterations versus 10.6 growth for unrolled AD. IFT memory grows slower with active contacts and model dimension, using 20 less memory at 256 contacts and 6 less at 16 contacts and 96 DoF. We further introduce optimiser distillation for residual MPC, amortising batched full-horizon iLQR into a policy that guides short-horizon residual iLQR. Across Finger, Franka, and Unitree, this raises six-step success by 28-98 percentage points over standard iLQR.
Create a lesson
Metadata
- Categories
- cs.RO, cs.DC, cs.LG, cs.SY, eess.SY, math.OC
- Comments
- Code available from https://github.com/calumarnott/mujoco
Related papers
DFLAT: Model-based Diffusion on Differentially Flat Spaces for Long-Horizon Trajectory Optimization
Shared title terminologycs.ROEge Yuceel, Taekyung Kim, Keyvan Majd et al.
Kinodynamic Motion Retargeting for Humanoid Locomotion via Multi-Contact Whole-Body Trajectory Optimization
Shared title terminologycs.ROXiaoyu Zhang, Steven Haener, Varun Madabushi et al.
Cairn: Object-Centric 3D Trajectory Priors for Steering Frozen VLAs
Shared title terminologycs.ROAgelos Kratimenos, Kostas Daniilidis, Evangelos Chatzipantazis
Calibration of Neuromusculoskeletal Models Using Differentiable Physics: Recommendations for Improving Model Accuracy
Shared title terminologycs.ROPhilip Sanderink, Yingfan Zhou, Shuzhen Luo et al.
Ask to Land: Learning a Mask-Conditioned Open-Vocabulary Landing Policy via Differentiable Physics
Shared title terminologycs.ROFangyu Sun, Guanyan Wu, Yang Deng et al.
Hetero-Associative Visuomotor Memory: Soft Recall as a Base for Learned Residuals in Few-Demonstration Imitation
Shared title terminologycs.RORuncong Wang