On the complexity of nonsmooth automatic differentiation
Not on the map. Why?
Abstract (arXiv)
Using the notion of conservative gradient, we provide a simple model to estimate the computational costs of the backward and forward modes of algorithmic differentiation for a wide class of nonsmooth programs. The overhead complexity of the backward mode turns out to be independent of the dimension when using programs with locally Lipschitz semi-algebraic or definable elementary functions. This considerably extends Baur-Strassen's smooth cheap gradient principle. We illustrate our results by establishing fast backpropagation results of conservative gradients through feedforward neural networks with standard activation and loss functions. Nonsmooth backpropagation's cheapness contrasts with concurrent forward approaches, which have, to this day, dimensional-dependent worst-case overhead estimates. We provide further results suggesting the superiority of backward propagation of conservative gradients. Indeed, we relate the complexity of computing a large number of directional derivatives to that of matrix multiplication, and we show that finding two subgradients in the Clarke subdifferential of a function is an NP-hard problem.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 22 of its 63 references that are in the map. First posted on arXiv 1 Jun 2022.
Builds on
22 of 63 references.
References · 22
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2018Neural Ordinary Differential Equationscited by 3,779
- 2015Automatic differentiation in machine learning: a surveycited by 855
- 2019Deep Equilibrium Modelscited by 615
- 2015Gradient-based Hyperparameter Optimization through Reversible Learningcited by 360
- 2016On the Expressive Power of Deep Neural Networkscited by 306
- 2019Optimizing Millions of Hyperparameters by Implicit Differentiationcited by 304
- 2016Understanding Deep Neural Networks with Rectified Linear Unitscited by 257
- 2021Efficient and Modular Implicit Differentiationcited by 203
- 2017A Rewriting System for Convex Optimization Problemscited by 179
- 2020Monotone operator equilibrium networkscited by 100
- 2019Differentiating Through a Cone Programcited by 73
10 more
- 2019Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learningcited by 72
- 2020A Refined Laser Method and Faster Matrix Multiplicationcited by 56
- 2020A mathematical model for automatic differentiation in machine learningcited by 45
- 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
- 2020Implicit differentiation of Lasso-type models for hyperparameter optimizationcited by 34
- 2019Automatic Differentiation of Some First-Order Methods in Parametric Optimizationcited by 18
- 2018Provably Correct Automatic Subdifferentiation for Qualified Programscited by 8
- 2021Efficient approximation of Jacobian matrices involving a non-uniform fast Fourier transform (NUFFT)cited by 5
- 2021The structure of conservative gradient fieldscited by 4
- 2021Conservative and semismooth derivatives are equivalent for semialgebraic mapscited by 4
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 0; 2026: 2.
4 papers.
- 2023On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameterscited by 3
- 2026The Normalized Maximum Likelihood for Regular Non-Smooth Models: Measure-Theoretic Foundations and Geometric Samplingcited by 1
- 2024On the numerical reliability of nonsmooth autodiff: a MaxPool case studycited by 0
- 2026Dual Certified White-Box Inference for Input Convex Neural Networkscited by 0
- 2026The Normalized Maximum Likelihood for Regular Non-Smooth Models: Measure-Theoretic Foundations and Geometric Sampling23 May 2026
- 2026Dual Certified White-Box Inference for Input Convex Neural Networks6 May 2026
- 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