Lune

ICLR2026Top-tier venue

Differentiable Simulation of Hard Contacts with Soft Gradients for Learning and Control

Anselm Paulus, Andreas René Geist, Pierre Schumacher, Vít Musil, Simon Rappenecker, Georg Martius

Abstract

Contact forces introduce discontinuities into robot dynamics that severely limit the use of simulators for gradient-based optimization. Penalty-based simulators such as MuJoCo, soften contact resolution to enable gradient computation. However, realistically simulating hard contacts requires stiff solver settings, which leads to incorrect simulator gradients when using automatic differentiation. Contrarily, using non-stiff settings strongly increases the sim-to-real gap. We analyze penaltybased simulators to pinpoint why gradients degrade under hard contacts. Building on these insights, we propose DiffMJX, which couples adaptive time integration with penalty-based simulation to substantially improve gradient accuracy. A second challenge is that contact gradients vanish when bodies separate. To address this, we introduce contacts from distance (CFD) which combines penalty-based simulation with straight-through estimation. By applying CFD exclusively in the backward pass, we obtain informative pre-contact gradients while retaining physical realism. Project page: https://github.com/martius-lab/diffmjx

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Adaptive Horizon Actor-Critic for Policy Learning in Contact-Rich Differentiable Simulation cites Accelerated Policy Learning with Parallel Differentiable Simulation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative GradientsAnselm Paulus, Andreas René Geist, Vit Musil, Sebastian Hoffmann et al.ICML 2026 · 3 citations

Builds on7

  1. Accelerated Policy Learning with Parallel Differentiable SimulationJie Xu, Viktor Makoviychuk, Yashraj Narang, Fabio Ramos et al.ICLR 2022 · 141 citations
  2. Learning with 3D rotations, a hitchhiker's guide to SO(3)Andreas René Geist, Jonas Frey, Mikel Zhobro, Anna Levina et al.ICML 2024 · 47 citations
  3. Sparsely Changing Latent States for Prediction and Planning in Partially Observable DomainsChristian Gumbsch, Martin V. Butz, Georg MartiusNeurIPS 2021 · 30 citations
  4. Adaptive Horizon Actor-Critic for Policy Learning in Contact-Rich Differentiable SimulationIgnat Georgiev, Krishnan Srinivasan, Jie Xu, Eric Heiden et al.ICML 2024 · 27 citations
  5. Simulation and Retargeting of Complex Multi-Character InteractionsYunbo Zhang, Deepak Gopinath, Yuting Ye, Jessica K. Hodgins et al.SIGGRAPH 2023 · 25 citations

Related papers

  1. Efficient Differentiable Contact Model with Long-range InfluenceXiaohan Ye, Kui Wu, Taku Komura, Zherong PanICLR 2026 · 2 citations
  2. Adaptive Barrier Smoothing for First-Order Policy Gradient with Contact DynamicsShenao Zhang, Wanxin Jin, Zhaoran WangICML 2023 · 13 citations
  3. Adaptive-Gradient Policy Optimization: Enhancing Policy Learning in Non-Smooth Differentiable SimulationsFeng Gao, Liangzhi Shi, Shenao Zhang, Zhaoran Wang et al.ICML 2024 · 7 citations
  4. DIFFTACTILE: A Physics-based Differentiable Tactile Simulator for Contact-rich Robotic ManipulationZilin Si, Gu Zhang, Qingwei Ben, Branden Romero et al.ICLR 2024 · 41 citations
  5. Multi-Object System Identification from VideosChunjiang Liu, Xiaoyuan Wang, Qingran Lin, Albert Xiao et al.ICLR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines