mlsanityData to 7 Oct 2026

On the numerical reliability of nonsmooth autodiff: a MaxPool case study

arXiv 2401.02736 ↗First posted 5 Jan 2024cs.LG cs.NA math.NAcited by 0

Not on the map. Why?

Abstract (arXiv)

This paper considers the reliability of automatic differentiation (AD) for neural networks involving the nonsmooth MaxPool operation. We investigate the behavior of AD across different precision levels (16, 32, 64 bits) and convolutional architectures (LeNet, VGG, and ResNet) on various datasets (MNIST, CIFAR10, SVHN, and ImageNet). Although AD can be incorrect, recent research has shown that it coincides with the derivative almost everywhere, even in the presence of nonsmooth operations (such as MaxPool and ReLU). On the other hand, in practice, AD operates with floating-point numbers (not real numbers), and there is, therefore, a need to explore subsets on which AD can be numerically incorrect. These subsets include a bifurcation zone (where AD is incorrect over reals) and a compensation zone (where AD is incorrect over floating-point numbers but correct over reals). Using SGD for the training process, we study the impact of different choices of the nonsmooth Jacobian for the MaxPool function on the precision of 16 and 32 bits. These findings suggest that nonsmooth MaxPool Jacobians with lower norms help maintain stable and efficient test accuracy, whereas those with higher norms can result in instability and decreased performance. We also observe that the influence of MaxPool's nonsmooth Jacobians on learning can be reduced by using batch normalization, Adam-like optimizers, or increasing the precision level.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 45 references that are in the map. First posted on arXiv 5 Jan 2024.

Builds on

21 of 45 references.

References · 21

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  5. 2016Densely Connected Convolutional Networkscited by 6,691
  6. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  7. 2013Visualizing and Understanding Convolutional Networkscited by 2,278
  8. 2016Optimization Methods for Large-Scale Machine Learningcited by 1,140
  9. 2017Mixed Precision Trainingcited by 1,135
  10. 2015Automatic differentiation in machine learning: a surveycited by 846
  11. 2015Deep Learning with Limited Numerical Precisioncited by 368
  12. 2015Fixed Point Quantization of Deep Convolutional Networkscited by 141
9 more
  1. 2018Stochastic subgradient method converges on tame functionscited by 120
  2. 2019Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learningcited by 71
  3. 2018Highly Scalable Deep Learning Training System with Mixed-Precision: Training ImageNet in Four Minutescited by 63
  4. 2020A mathematical model for automatic differentiation in machine learningcited by 44
  5. 2021Nonsmooth Implicit Differentiation for Machine Learning and Optimizationcited by 43
  6. 2020On Correctness of Automatic Differentiation for Non-Differentiable Functionscited by 20
  7. 2018Provably Correct Automatic Subdifferentiation for Qualified Programscited by 8
  8. 2022On the complexity of nonsmooth automatic differentiationcited by 4
  9. 2023On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameterscited by 3

Built on by

Not cited yet.