TL;DR
This paper introduces the first fully differentiable and GPU-parallelized Exponential Map for 3D meshes based on the "straightest geodesics" algorithm. By overcoming the non-differentiability and slow CPU-bound nature of traditional mesh operations, the authors achieve orders-of-magnitude speedups and unlock seamless integration of discrete Riemannian geometry into modern deep learning frameworks.
What Problem Does This Paper Address?
In deep learning, we often want to process data that lives on curved surfaces (manifolds), such as 3D meshes of human bodies, proteins, or CAD models. To do this properly, we need tools from Riemannian geometry. The most fundamental of these is the Exponential Map ($\text{Exp}_p(v)$), which takes a starting point $p$ on a surface and walks along a straight path (a geodesic) in the direction of a tangent vector $v$ to find a new endpoint.
While analytical, closed-form solutions for the Exponential Map exist for simple shapes like spheres, real-world data is usually discretized into triangular meshes. Tracing geodesics on meshes has traditionally been:
- Non-differentiable: The path encounters sharp transitions when crossing edges or vertices, causing discontinuous derivatives that break standard backpropagation.
- Slow and Sequential: Existing state-of-the-art tools (like
geometry-central) run sequentially on the CPU, making them completely incompatible with batch-processed, GPU-accelerated deep learning pipelines.
This paper bridges the gap by making straightest geodesic tracing both massively parallelizable on GPUs and fully differentiable.
Methods
The authors implement a parallelized version of the classic "straightest geodesics" algorithm and introduce two novel mathematical schemes to compute gradients through it:
- GPU Parallelization Strategy: Instead of complex inter-thread synchronization, the authors assign exactly one thread per geodesic path. Threads tracing shorter paths simply finish early and sit idle, while the GPU's streaming multiprocessors remain saturated by longer paths. This approach easily handles batches of tens of thousands of points across heterogeneous meshes.
- Extrinsic Proxy (EP) Differentiation: A highly efficient approximation designed specifically for computing derivatives with respect to the velocity vector $v$. It emulates the geodesic path in Euclidean space using a cumulative rotation matrix $R$ that acts as a surrogate for parallel transport.
- Geodesic Finite Differences (GFD): A more robust scheme that adapts finite differences to respect the underlying mesh geometry. Unlike EP, GFD provides accurate gradients for both the initial vector $v$ and the initial position $p$, though it is computationally heavier.
The authors package these methods into a PyTorch-compatible library called digeo.
Datasets
The authors evaluated their framework across several tasks using standard geometric datasets:
- Human Body Segmentation: A composite dataset combining 3D human models from Mixamo, SCAPE, FAUST, SHREC 2007, and Vlasic et al.
- Generative Modeling & Optimization: The classic Stanford Bunny and Spot the Cow meshes were used to evaluate flow matching and centroidal Voronoi tessellation.
Key Insights and Ideas
- Embracing Thread Independence: Rather than trying to parallelize a single geodesic path across multiple threads, treating each path independently fits the GPU architecture perfectly, even when path lengths vary significantly.
- Bypassing Discontinuity with Proxies: Standard automatic differentiation fails at mesh face transitions because the derivative is mathematically discontinuous. By manually deriving the backward pass (via EP or GFD) and overriding PyTorch's autograd, they circumvented this limitation entirely.
- Dynamic Receptive Fields: In geometric deep learning, convolutions usually rely on fixed-size local neighborhoods. By making the Exponential Map differentiable, the network can actually learn the optimal patch size (geodesic radius) dynamically during training.
Key Results
Speed and Scaling
The CUDA implementation scales linearly with the number of mesh faces and maintains nearly constant runtimes across large batch sizes. It achieves a 3 orders of magnitude speedup over CPU-based state-of-the-art libraries (geometry-central and pp3d) and is 5 to 6 orders of magnitude faster than alternative projection-based differentiable methods.
Downstream Applications
To showcase the library's versatility, the authors introduced three new applications:
- Adaptive Geodesic Convolutions (AGC): Outperformed standard fixed-patch geodesic neural networks on human body part segmentation, reaching 92.3% accuracy.
- MeshFlow (Generative Flow Matching): Achieved superior results in learning probability distributions on surfaces while being $1.6 \times 10^4$ times faster during inference and using 97% less GPU memory than previous Riemannian Flow Matching methods.
- Mesh-LBFGS Optimizer: A second-order Riemannian optimizer that converged significantly faster and found lower-energy solutions for centroidal Voronoi tessellation compared to traditional Lloyd's algorithm.
Limitations and Future Work
- Computational Cost of GFD: While highly accurate, the Geodesic Finite Differences scheme is roughly 3.85 times slower in the backward pass than the Extrinsic Proxy method.
- Isotropic Filters: The current adaptive convolution layer is isotropic (it scales uniformly in all directions). The authors note that learning different scaling factors for different angles to create anisotropic filters is an open direction for future work.
- Mesh Boundaries: Tracing paths that hit the boundary of an open mesh requires heuristic handling (e.g., temporarily tracing along the boundary), which can introduce minor optimization artifacts.
Summary updated