|国家预印本平台
首页|Hard Contacts with Soft Gradients: Refining Differentiable Simulators for Learning and Control

Hard Contacts with Soft Gradients: Refining Differentiable Simulators for Learning and Control

Hard Contacts with Soft Gradients: Refining Differentiable Simulators for Learning and Control

来源:Arxiv_logoArxiv
英文摘要

Contact forces pose a major challenge for gradient-based optimization of robot dynamics as they introduce jumps in the system's velocities. Penalty-based simulators, such as MuJoCo, simplify gradient computation by softening the contact forces. However, realistically simulating hard contacts requires very stiff contact settings, which leads to incorrect gradients when using automatic differentiation. On the other hand, using non-stiff settings strongly increases the sim-to-real gap. We analyze the contact computation of penalty-based simulators to identify the causes of gradient errors. Then, we propose DiffMJX, which combines adaptive integration with MuJoCo XLA, to notably improve gradient quality in the presence of hard contacts. Finally, we address a key limitation of contact gradients: they vanish when objects do not touch. To overcome this, we introduce Contacts From Distance (CFD), a mechanism that enables the simulator to generate informative contact gradients even before objects are in contact. To preserve physical realism, we apply CFD only in the backward pass using a straight-through trick, allowing us to compute useful gradients without modifying the forward simulation.

Anselm Paulus、A. René Geist、Pierre Schumacher、Vít Musil、Georg Martius

自动化基础理论计算技术、计算机技术

Anselm Paulus,A. René Geist,Pierre Schumacher,Vít Musil,Georg Martius.Hard Contacts with Soft Gradients: Refining Differentiable Simulators for Learning and Control[EB/OL].(2025-06-17)[2025-07-16].https://arxiv.org/abs/2506.14186.点此复制

评论