TinyAD: Automatic Differentiation in Geometry Processing Made Simple

15Citations
Citations of this article
8Readers
Mendeley users who have this article in their library.

This article is free to access.

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.

References Powered by Scopus

On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming

7310Citations
N/AReaders
Get full text

The tapenade automatic differentiation tool: Principles, model, and specification

365Citations
N/AReaders
Get full text

A review of automatic differentiation and its efficient implementation

222Citations
N/AReaders
Get full text

Cited by Powered by Scopus

SLANG.D: Fast, Modular and Differentiable Shader Programming

12Citations
N/AReaders
Get full text

Locally Meshable Frame Fields

9Citations
N/AReaders
Get full text

Efficient Embeddings in Exact Arithmetic

7Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Schmidt, P., Born, J., Bommes, D., Campen, M., & Kobbelt, L. (2022). TinyAD: Automatic Differentiation in Geometry Processing Made Simple. Computer Graphics Forum, 41(5), 113–124. https://doi.org/10.1111/cgf.14607

Readers over time

‘22‘23‘2401234

Readers' Seniority

Tooltip

Researcher 2

50%

Lecturer / Post doc 1

25%

PhD / Post grad / Masters / Doc 1

25%

Readers' Discipline

Tooltip

Engineering 3

60%

Physics and Astronomy 1

20%

Social Sciences 1

20%

Save time finding and organizing research with Mendeley

Sign up for free
0