Provably Correct Automatic Subdifferentiation for Qualified Programs
Not on the map. Why?
Abstract (arXiv)
The Cheap Gradient Principle (Griewank 2008) --- the computational cost of computing the gradient of a scalar-valued function is nearly the same (often within a factor of 5) as that of simply computing the function itself --- is of central importance in optimization; it allows us to quickly obtain (high dimensional) gradients of scalar loss functions which are subsequently used in black box gradient-based optimization procedures. The current state of affairs is markedly different with regards to computing subderivatives: widely used ML libraries, including TensorFlow and PyTorch, do not correctly compute (generalized) subderivatives even on simple examples. This work considers the question: is there a Cheap Subgradient Principle? Our main result shows that, under certain restrictions on our library of nonsmooth functions (standard in nonlinear programming), provably correct generalized subderivatives can be computed at a computational cost that is within a (dimension-free) factor of 6 of the cost of computing the scalar function itself.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 23 Sep 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 2; 2025: 1.
8 papers.
- 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
- 2022Automatic differentiation of nonsmooth iterative algorithmscited by 25
- 2022Flexible Differentiable Optimization via Model Transformationscited by 16
- 2022On the complexity of nonsmooth automatic differentiationcited by 4
- 2023On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameterscited by 3
- 2025Deep Learning as the Disciplined Construction of Tame Objectscited by 3
- 2024On the numerical reliability of nonsmooth autodiff: a MaxPool case studycited by 0
- 2024On the Hardness of Meaningful Local Guarantees in Nonsmooth Nonconvex Optimizationcited by 0
- 2025Deep Learning as the Disciplined Construction of Tame Objects22 Sep 2025
- 2024On the Hardness of Meaningful Local Guarantees in Nonsmooth Nonconvex Optimization16 Sep 2024
- 2024On the numerical reliability of nonsmooth autodiff: a MaxPool case study5 Jan 2024
- 2023On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters31 Jan 2023
- 2022Flexible Differentiable Optimization via Model Transformations10 Jun 2022
- 2022On the complexity of nonsmooth automatic differentiation1 Jun 2022
- 2022Automatic differentiation of nonsmooth iterative algorithms31 May 2022
- 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimization8 Jun 2021