Locality-Aware Automatic Differentiation on the GPU for Mesh-Based Computations
ACM Transactions on Graphics · 03.07.2026 · 45 (4) · 1-18
DOI: 10.1145/3811338 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Graphics, online erschienen am 03.07.2026. Verfasst von Ahmed Mahmoud und 3 weiteren Autor:innen. Die Arbeit nennt 42 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: NSF, CSAIL Future of Data, MIT–IBM Watson AI Laboratory.
Abstract (Originalsprache)
We present a GPU-based system for automatic differentiation (AD) of functions defined on triangle meshes, designed to exploit the locality and sparsity in mesh-based computation. Our system evaluates derivatives using perelement forward-mode AD, confining all computation to registers and shared memory and assembling global gradients, sparse Jacobians, and sparse Hessians directly on the GPU. By avoiding global computation graphs, intermediate buffers, and device-host synchronization, our approach minimizes memory traffic and enables efficient differentiation under both static and dynamically changing sparsity. Our programming model lets users express energy terms over mesh neighborhoods, while our system automatically manages parallel execution, derivative propagation, sparse assembly, and matrix-free operations such as Hessian-vector products. Our system supports both scalar- and vector-valued objectives, dynamic interaction-driven sparsity updates, and seamless integration with external GPU sparse linear solvers. We evaluate our system on applications including elastic and cloth simulation, surface parameterization, mesh smoothing, frame field design, ARAP deformation, and spherical manifold optimization. Across these tasks, our system consistently outperforms state-of-the-art differentiation frameworks, including PyTorch, JAX, Warp, Dr.JIT, EnzymeAD, and Thallo. We demonstrate speedups across a range of solver types, from Newton and Gauss-Newton for nonlinear least squares to L-BFGS and gradient descent, and across different derivative usage modes, including Hessian-vector products as well as full sparse Hessian and Jacobian construction. Our system is available as open source at https://github.com/owensgroup/RXMesh.
Förderung
- NSF
- CSAIL Future of Data
- MIT–IBM Watson AI Laboratory
- FinTechAI programs
- MIT Generative AI Impact Consortium
- Toyota–CSAIL Joint Research Center
- Schmidt Sciences
Zitieren
APA
Mahmoud, A., Goel, R., Ragan-Kelley, J., & Solomon, J. (2026). Locality-Aware Automatic Differentiation on the GPU for Mesh-Based Computations. ACM Transactions on Graphics, 45(4), 1-18. https://doi.org/10.1145/3811338
Vancouver
Mahmoud A, Goel R, Ragan-Kelley J, Solomon J. Locality-Aware Automatic Differentiation on the GPU for Mesh-Based Computations. ACM Transactions on Graphics. 2026;45(4):1-18. doi:10.1145/3811338
BibTeX
@article{Mahmoud2026,
author = {Mahmoud, Ahmed and Goel, Rahul and Ragan-Kelley, Jonathan and Solomon, Justin},
title = {Locality-Aware Automatic Differentiation on the GPU for Mesh-Based Computations},
journal = {ACM Transactions on Graphics},
year = {2026},
volume = {45},
number = {4},
pages = {1--18},
doi = {10.1145/3811338}
}
EUVIMED