TinyAD: Automatic Differentiation in Geometry Processing Made Simple
Open Access
- 1 August 2022
- journal article
- research article
- Published by Wiley in Computer Graphics Forum
- Vol. 41 (5) , 113-124
Abstract
Non‐linear optimization is essential to many areas of geometry processing research. However, when experimenting with different problem formulations or when prototyping new algorithms, a major practical obstacle is the need to figure out derivatives of objective functions, especially when second‐order derivatives are required. Deriving and manually implementing gradients and Hessians is both time‐consuming and error‐prone. Automatic differentiation techniques address this problem, but can introduce a diverse set of obstacles themselves, e.g. limiting the set of supported language features, imposing restrictions on a program's control flow, incurring a significant run time overhead, or making it hard to exploit sparsity patterns common in geometry processing. We show that for many geometric problems, in particular on meshes, the simplest form of forward‐mode automatic differentiation is not only the most flexible, but also actually the most efficient choice. We introduce TinyAD: a lightweight C++ library that automatically computes gradients and Hessians, in particular of sparse problems, by differentiating small (tiny) sub‐problems. Its simplicity enables easy integration; no restrictions on, e.g., looping and branching are imposed. TinyAD provides the basic ingredients to quickly implement first and second order Newton‐style solvers, allowing for flexible adjustment of both problem formulations and solver details. By showcasing compact implementations of methods from parametrization, deformation, and direction field design, we demonstrate how TinyAD lowers the barrier to exploring non‐linear optimization techniques. This enables not only fast prototyping of new research ideas, but also improves replicability of existing algorithms in geometry processing. TinyAD is available to the community as an open source library.Keywords
Funding Information
- German Research Foundation
- Australian Government (IRTG‐2379)
- Deutsche Forschungsgemeinschaft
- H2020 European Research Council
- European Commission
This publication has 39 references indexed in Scilit:
- Accelerated quadratic proxy for geometric optimizationACM Transactions on Graphics, 2016
- SimitACM Transactions on Graphics, 2016
- Integrable PolyVector fieldsACM Transactions on Graphics, 2015
- Frame field generation through metric customizationACM Transactions on Graphics, 2015
- Lifted bijections for low distortion surface mappingsACM Transactions on Graphics, 2014
- Fast Reverse-Mode Automatic Differentiation using Expression Templates in C++ACM Transactions on Mathematical Software, 2014
- The Tapenade automatic differentiation toolACM Transactions on Mathematical Software, 2013
- Non‐Rigid Registration Under Isometric DeformationsComputer Graphics Forum, 2008
- On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programmingMathematical Programming, 2005
- OpenMP: an industry standard API for shared-memory programmingIEEE Computational Science and Engineering, 1998