Ostrich: Taking Large Strides Through Stiff Contact in Differentiable Dynamics
Abstract
Three properties determine whether a differentiable simulator can drive gradient-based optimization through contact: simulation accuracy, gradient reliability, and per-iteration cost. Tape-based engines such as MJX and Newton Semi-Implicit require timesteps small enough to keep contacts numerically tractable, and their backpropagation memory grows linearly with the number of timesteps T. Surrogate models bound memory by approximating contact away, but the resulting gradients lose the geometry the optimization depends on. We present Ostrich, a GPU-accelerated rigid-body simulator that resolves hard contacts and friction with non-smooth Newton iteration at large timesteps (h ~ 0.1 s), and differentiates the converged residual via the implicit function theorem, reusing the forward Schur complement to compute the adjoint at O(1) memory per timestep. On real-robot trajectories over a pallet obstacle, Ostrich holds MuJoCo's sim-to-real accuracy up to a 50x larger timestep. Its gradients converge from random initializations where MJX descends slowly and Newton Semi-Implicit stalls; a warm iteration runs 211x faster than MJX's and 4.7x faster than Semi-Implicit's. On the same scene Ostrich differentiates 8,192 parallel worlds on a single 24 GB GPU, sustaining 29x checkpointed MJX's optimization throughput; without checkpointing both baselines exhaust memory at far fewer worlds. We close with a gradient-based trajectory optimization demonstration over triangle-mesh terrain across a 10 s horizon, a setting where prior engines either restrict to primitive geometry or face the convergence and memory limits shown above.
Create a lesson
Metadata
- Categories
- cs.RO, cs.GR, cs.LG
- Comments
- 8 pages, 6 figures. Submitted to IEEE Robotics and Automation Letters. Code: https://github.com/aleskucera/ostrich
Related papers
Model Predictive Control of Tensegrity Robots via Contact-Aware Graph Neural Dynamics Model
Shared title terminologycs.RONelson Chen, Patrick Meng, Charles Tang et al.
TacClip: a clip-on sensor measures dynamic contact forces without covering the fingerpads
Shared title terminologycs.ROYuqian Ye, Hao Li, Jingxi Xu et al.
T2S-MPC: Real-Time Online Adaptive Model Predictive Control for Continuously Changing Dynamics
Shared title terminologycs.ROZeyu Shen, Shiji Peng, Enrique Mallada et al.
State-Dependent Effects of Leg Linkage Mechanisms on Joint-Space Dynamics in Humanoid Robots
Shared title terminologycs.ROKenya Mori, Shoichi Matsuda, Taiki Ishigaki et al.
Contracted Derivatives for Multibody Dynamics: Analysis and Optimization
Shared title terminologycs.ROHorea-Alexandru Cărămizaru, Shuli Wang, Carlos Mastalli et al.
RobotZero: Learning Embodiment-Agnostic Action-Contact World Modeling from Human Videos
Shared title terminologycs.ROJiayi Wu, Hadi Alzayer, Botao He et al.