Novel Algorithms for Smoothly Differentiable and Efficiently Vectorizable Contact Manifold Construction

Onur Beker, Andreas René Geist, Anselm Paulus, Georg MartiusarXiv 2026

TL;DR

This paper introduces a novel collision detection pipeline designed from the ground up for smooth (twice) differentiability and massive GPU vectorization. By replacing traditional, non-smooth CPU-optimized algorithms with expressive Signed Distance Fields (SDFs) and smooth contact-blending routines, the authors unlock highly efficient, gradient-based optimization for contact-rich robotic simulations.

What Problem Does This Paper Address?

To design intelligent robot behaviors in contact-rich environments (like manipulation or locomotion), algorithms ideally need first- and second-order derivative information (gradients and Hessians) to quickly navigate complex physics. However, standard physics simulators (e.g., MuJoCo, Drake, PyBullet) rely on collision detection routines like GJK+EPA or the Separating Axis Theorem (SAT).

These traditional methods suffer from several "pathologies" when it comes to differentiation:

  1. Non-uniqueness: For common configurations like a box resting flat on a plane, the "witness points" (the points of deepest penetration) are not uniquely defined, causing gradients to jump erratically or solvers to converge slowly.
  2. Discontinuous logic: Standard routines use heavy control-flow branching and operations like polygon clipping, which introduce sharp discontinuities and prevent efficient parallel execution (vectorization) on GPUs.
  3. Combinatorial explosion: Checking collisions between objects decomposed into numerous convex primitives requires expensive $N \times M$ checks, creating further gradient jumps as primitive pairs activate and deactivate.

Methods

The authors bypass these limitations by building a new pipeline based on smooth mathematical approximations of non-smooth operators (like max, min, and clip) using functions like softplus and logsumexp.

The pipeline consists of three main phases:

  1. Surface Representations (SDFs): Objects are represented as smoothly differentiable Signed Distance Fields using two alternative approaches:
  2. Primitive-Based (XPSQ): Extruded plane-superquadric intersections that trace a shape along a 3D spline. This allows complex geometries (like a coffee cup handle) to be represented with very few primitives.
  3. Spline-Based: 3D cubic splines that automatically approximate arbitrary meshes at varying levels of smoothness.
  4. Differentiable Broad- and Narrow-Phase:
  5. Narrow-Phase: Computes Vertex-SDF and Edge-SDF collisions. For edges, the authors develop a custom, highly vectorizable routine based on sphere tracing to find intersection points smoothly.
  6. Broad-Phase: Uses a voxel grid to quickly filter out distant vertices/edges. To maximize GPU efficiency and minimize "warp divergence" (where parallel threads sit idle due to branching code), the authors serialize vertex and edge memory layouts using Hilbert space-filling curves.
  7. Contact Blending: Instead of generating a massive number of individual contact points, a precomputed convex decomposition groups vertices and edges. A softmax operator then blends their penetration depths, normals, and Jacobians into a compact, stabilized contact manifold.
Fig. 5: Intersection points pI and pII between the SDF φ(x) of one surface and the edge v1 −v2 of the other surface are determined via sphere tracing. At every sphere tracing step, the current intersection point candidate x is moved towards the SDF by ±Jφ(x) > 0Kφ(x)et. The Jφ(x) > 0K term ensures that if v1 or v2 already lie inside the surface, they are not moved by sphere tracing.

Datasets

No formal machine learning datasets were used. The algorithms were evaluated using standard computer graphics meshes, specifically a Cup geometry and the classic Armadillo mesh, to benchmark geometric expressivity and computational runtime.

Fig. 1: An armadillo geometry approximated as the smooth union of 18 superquadric (SQ) SDFs, illustrating the highly expressive nature of SQ primitives that from the foundation of XPSQ primitives.

Key Insights and Ideas

  • Inverting the Paradigm: Traditional pipelines perform convex decomposition before collision detection, leading to fractured contact points and gradient jumps. This paper flips the script: it finds global contacts against a smooth SDF first, and only uses convex decomposition at the very end to blend and compress the contact manifold.
  • Geometry-Aware GPU Optimization: The realization that spatial serialization (via Hilbert curves) drastically reduces GPU warp divergence highlights how algorithmic math and hardware architecture must be co-designed for high-performance simulation.
  • Smooth Manifold Adaptation: Unlike polygon clipping, which exhibits jerky, non-smooth behavior when objects rotate slightly, the proposed edge-SDF sphere tracing adapts continuously, acting as a differentiable middle ground between rigid clipping and complex hydroelastic contact models.

Key Results

  • Expressivity: The primitive-based XPSQ representation successfully captured a complex cup geometry using just 3 primitives, whereas standard approximate convex decomposition required 36 primitives.
  • Speed and Scaling: Implemented in JAX and NVIDIA-Warp, the narrow-phase routine demonstrated orders-of-magnitude speedups in runtime and vectorization batch sizes compared to MuJoCo’s JAX variant (MJX).
  • Broad-Phase Efficiency: Integrating the Hilbert-curve-optimized broad-phase filtering yielded an additional order-of-magnitude runtime improvement, proving that differentiable pipelines can also be highly computationally efficient.

Limitations and Future Work

The primary limitation acknowledged by the authors is the lack of downstream robotics and control experiments. While the pipeline successfully generates smooth, physically plausible gradients, future work is required to validate how effectively these gradients accelerate actual trajectory optimization and reinforcement learning tasks in complex robotic manipulation scenarios.

Summary updated

BibTeX
@misc{beker2026novel,
  author = {Onur Beker and Andreas René Geist and Anselm Paulus and Georg Martius},
  title = {{Novel Algorithms for Smoothly Differentiable and Efficiently Vectorizable Contact Manifold Construction}},
  year = {2026},
  eprint = {2604.17538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.17538},
}
Figure