Locality-Aware Automatic Differentiation on the GPU for Mesh-Based Computations
This paper proposes a GPU AD system built specifically for mesh-based computation, where locality and sparsity are the whole game. Instead of tracing a big global graph like general-purpose autodiff stacks, it evaluates derivatives per mesh element, keeps the work in registers/shared memory, and assembles sparse outputs directly on the GPU. It also supports matrix-free operations like Hessian-vector products, plus dynamic sparsity updates when interaction changes the neighborhood structure.
For game-dev-adjacent graphics work, the practical angle is speed and scalability in solvers that already live on the GPU: cloth, elastic simulation, ARAP deformation, parameterization, smoothing, frame fields, and spherical optimization. The authors say it outperforms PyTorch, JAX, Warp, DrJIT, EnzymeAD, and Thallo across Newton, Gauss-Newton, L-BFGS, and gradient descent workflows. The paper was submitted Aug. 30, 2025, revised June 4, 2026, and later appeared in ACM TOG 45(4).
“avoiding global computation graphs, intermediate buffers, and device-host synchronization”
- what
- A GPU automatic differentiation system for triangle-mesh computations that exploits locality and sparsity.
- who
- Ahmed H. Mahmoud, Rahul Goel, Jonathan Ragan-Kelley, and Justin Solomon.
- when
- Submitted Aug. 30, 2025; revised June 4, 2026; published in ACM TOG 45(4) in July 2026.
- impact
- Can speed up mesh-based simulation and optimization pipelines by reducing memory traffic and avoiding host-device synchronization.
Promising performance gains for GPU mesh solvers
Follow automatic differentiation updates
See relevant stories in your personalized news feed.
Discussion