TL;DR
Differentiable physics simulators let robots and AI learn from physical interactions using gradient descent, but their gradients often break down at the exact moment two objects collide. Existing simulators try to patch this with a linear "rewind" trick that works fine for head-on billiard balls, yet fails miserably when curved, spinning shapes strike at an angle. By combining exact continuous collision detection for ellipsoids with implicit differentiation, the authors achieve machine-precision gradients at any time step—unlocking reliable optimization for non-spherical rigid bodies (and laying the groundwork for physics-enabled 3D Gaussian Splatting).
What Problem Does This Paper Address?
Imagine playing pinball, trying to time your flipper swing so the ball hits a specific target. If you use a differentiable simulator, you should be able to compute how a tiny tweak in your flip timing shifts the ball's final position, then run gradient descent to find the perfect shot.
Here is the catch: standard simulators march forward in fixed time steps ($\Delta t$). They only realize a collision happened after two objects have already overlapped at the end of a step. Applying collision physics to overlapping objects scrambles the gradients. Popular simulators (like DiffTaichi and TOI-Velocity) fix this by estimating the true Time of Impact (TOI) using a one-step linear rewind: dividing penetration depth by closing speed.
That linear guess assumes the gap between objects closes at a constant rate. For two spheres colliding head-on, that is true. For ellipsoids—stretched spheres that are fundamental to particle modeling and form the building blocks of 3D Gaussian Splatting—colliding obliquely or spinning, the gap closes at a varying rate. The linear rewind guesses the wrong impact time, contact point, and surface normal, feeding poisoned gradients to your optimizer.
Methods
Instead of approximating the impact from a single overlapping step, the authors decouple finding the collision from differentiating through it:
- Black-Box Continuous Collision Detection (CCD): Within a time step, they find the exact impact time $t^\star$ using conservative advancement and Newton refinement on a gap function derived from the Perram–Wertheim contact function—a classic 1985 result that measures ellipsoid overlap via a clean 1D concave maximization problem. Crucially, they do not backpropagate through this search.
- Implicit Differentiation at Touch: Once $t^\star$ is known, the objects are touching ($\text{gap} = 0$). Using the implicit function theorem and the envelope theorem, the authors differentiate the touching condition directly in closed form.
- Exact Contact Geometry: They extract the exact contact point, surface normal, and their derivatives at $t^\star$ using the same implicit trick on the 1D maximizer, apply the velocity impulse, and simulate the remainder of the step $\Delta t$.
Datasets
Rather than external datasets, the authors evaluate their simulator on three custom synthetic benchmarks with known ground-truth physics:
- 2D Pinball Optimal Control: 20 randomly generated target positions where a spinning, pinned elliptical flipper must strike a moving disc.
- Single-Impact Gradient Benchmark: A moving disc striking a fixed ellipse across 50 sub-step impact timings, varying collision angle, aspect ratio, and $\Delta t$.
- System Identification from Trajectories: 20 synthetic datasets (12 collisions each) of balls striking a free-floating, spinning ellipse to recover its unknown semi-axis length ($a$) and bounciness/restitution ($e$).
Key Insights and Ideas
- The Anatomy of Rewind Failure: The authors mathematically prove (Lemma 1 & Corollary 1) that the relative gradient error of linear TOI rewinds grows with relative speed, surface curvature, time-step size, and $\sin\beta\tan\beta$ (where $\beta$ is the collision obliqueness). As a hit approaches grazing ($\beta \to 90^\circ$), the gradient error blows up.
- Adding Spin Isn't Enough: Standard TOI-Velocity ignores rotation during its rewind. Even when the authors build an improved baseline ("TOI-Velocity with spin"), it still stalls short of optimal solutions because a single Newton step from an overlapping state cannot capture curved geometry.
- Don't Differentiate the Search: Unrolling iterative root-finding loops in autodiff is slow and memory-heavy. Treating CCD as a non-differentiable black box and applying the implicit function theorem at the solution gives exact derivatives cheaply, independent of step size $\Delta t$.
Key Results
- Pinball Control: Across 20 targets, exact gradients converged to the true optimal control 20/20 times (median miss: $4 \times 10^{-9}\text{ cm}$ in ~144 iterations). Standard TOI-Velocity succeeded 0/20 times (median miss: $7.2\text{ cm}$ after 3,000 iterations), and adding spin still converged 0/20 times because its biased gradients vanished at the wrong controls.
- Gradient Accuracy: While TOI-Velocity's gradient error hit 45% at high aspect ratios ($a/b = 16$), 83% at $\Delta t = 20\text{ ms}$, and ~100% past $60^\circ$ incidence angles (even missing fast tip collisions entirely), the authors' method stayed within $3 \times 10^{-13}$ of ground truth across every single setting.
- System Identification: Exact gradients recovered the ellipse's shape and restitution to within $10^{-13}$% relative error at all time steps ($2\text{ ms}$ to $20\text{ ms}$). TOI-Velocity stalled on up to 18/20 datasets with errors reaching 49% at $20\text{ ms}$.
Limitations and Future Work
- Grazing Singularities: Because the implicit derivative divides by the gap-closing speed, gradients grow unbounded as a collision approaches a purely grazing touch—an inherent discontinuity in rigid-body physics.
- Ellipsoids Only (For Now): The current formulation relies on the Perram–Wertheim function, restricting it to ellipsoids and spheres. However, the authors note that replacing this with generalized "growth distances" could extend exact impact gradients to arbitrary convex shapes—and allow 3D Gaussian Splatting scenes to undergo accurate rigid-body collisions without squashing their Gaussians into spheres.
Summary updated