Differentiable Simulation of Hard Contacts with Soft Gradients for Learning and Control
arXiv cs.RO / 3/24/2026
💬 OpinionIdeas & Deep AnalysisModels & Research
Key Points
- The paper addresses how discontinuous contact forces limit gradient-based robot learning and control when using simulators with automatic differentiation.
- It finds that penalty-based approaches (e.g., softening contact resolution) can enable gradients, but “hard contact” regimes cause gradient degradation due to stiff solver settings and incorrect gradients under AD.
- The authors propose DiffMJX, which improves gradient accuracy by coupling adaptive time integration with penalty-based simulation to better handle hard contacts.
- They also tackle vanishing contact gradients after separation by introducing Contact from Distance (CFD), using straight-through estimation in the backward pass to keep informative pre-contact gradients while preserving physical realism.
Related Articles
Santa Augmentcode Intent Ep.6
Dev.to

Your Agent Hired Another Agent. The Output Was Garbage. The Money's Gone.
Dev.to
Big Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.
Dev.to

Palantir’s billionaire CEO says only two kinds of people will succeed in the AI era: trade workers — ‘or you’re neurodivergent’
Reddit r/artificial
Scaffolded Test-First Prompting: Get Correct Code From the First Run
Dev.to