Skip to content
DraconiticResearch
Search Sources API
276,906 studies31 sourcesUpdated 25 min ago
PreprintarXiv licencearXiv

Exact Collision Gradients for Ellipsoids in Differentiable Simulation

Abstract

Differentiable simulation enables gradient-based optimization in learning and control problems involving collisions, but its gradients are least reliable at the moment of impact, when the velocities jump. A fixed-step simulator detects a collision only after the bodies overlap, and some differentiable simulators correct for this with a linear estimate of the time of impact. In this paper, we study impacts between ellipsoids. We show that the gradient error of this estimate grows with the obliqueness of the collision, the curvature at contact, and the time step, and that ignoring spin adds a further error. Subsequently, we find the time of impact with continuous collision detection on the Perram Wertheim contact function and differentiate through the touching condition rather than the search. This gives exact gradients at any step size. We demonstrate our method on an optimal control problem and a system identification problem. In both, exact gradients recover the optimal control and the true parameters, while the linear estimate does not, even when it accounts for spin.

Related

  1. Same Physics, Different Gradients: A State-of-the-Art Report on Differentiable Physics Simulation
    Lei Shu, Zizhou Huang, Yunuo Chen +15
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingarXiv
  2. Differentiable Exact Learning
    Hristo Papazov, Francesco D'Angelo, Nicolas Flammarion
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  3. Learning the Boltzmann Collision Operator with Structural Constraints for Fast Kinetic Simulation
    Hao Wang, Zhenning Cai
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingarXiv
  4. Two-Phase Rapid Simulation-Based Inference with Differentiable Simulators
    Uros Zivanovic, Rahul Srinivasan, Roberto Trotta +1
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  5. Unbiased Gradients, Moving Stability Boundaries: Exact Mini-Batch Geometry in Linear Self-Attention
    Krishnakumar Balasubramanian
    arXivPreprintCC BY 4.0Full textDynamical systemsStatisticsarXiv
BibTeX
@misc{dutta2026exact,
  title = {{Exact Collision Gradients for Ellipsoids in Differentiable Simulation}},
  author = {Shamak Dutta and Biswadip Dey},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.31676},
  eprint = {2611.31676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31676},
}
RIS
TY  - UNPB
TI  - Exact Collision Gradients for Ellipsoids in Differentiable Simulation
AU  - Shamak Dutta
AU  - Biswadip Dey
PY  - 2026
DA  - 2026/11/23
PB  - arXiv
DO  - 10.48550/arxiv.2611.31676
UR  - https://arxiv.org/abs/2611.31676
AB  - Differentiable simulation enables gradient-based optimization in learning and control problems involving collisions, but its gradients are least reliable at the moment of impact, when the velocities jump. A fixed-step simulator detects a collision only after the bodies overlap, and some differentiable simulators correct for this with a linear estimate of the time of impact. In this paper, we study impacts between ellipsoids. We show that the gradient error of this estimate grows with the obliqueness of the collision, the curvature at contact, and the time step, and that ignoring spin adds a further error. Subsequently, we find the time of impact with continuous collision detection on the Perram Wertheim contact function and differentiate through the touching condition rather than the search. This gives exact gradients at any step size. We demonstrate our method on an optimal control problem and a system identification problem. In both, exact gradients recover the optimal control and the true parameters, while the linear estimate does not, even when it accounts for spin.
ER  -