Lune

ICLR2024顶会

What does automatic differentiation compute for neural networks?

Sejun Park, Sanghyuk Chun, Wonyeol Lee

摘要

Forward-or reverse-mode automatic differentiation (AD) is a popular algorithm for computing the derivative of a function expressed by a program. AD always outputs the correct derivative if a program does not use any non-differentiable functions and control flows; however, it may return an arbitrary value otherwise. In this work, we investigate what AD computes for neural networks that may contain non-differentiable functions such as ReLU and maxpools. We first prove that AD always returns a generalized derivative called a Clarke subderivative for networks with pointwise activation functions, if the minibatch size is one and all non-differentiable neurons have distinct bias parameters. We show that the same conclusion does not hold otherwise, but does hold under some mild sufficient conditions. We also prove similar results for more general networks that can use maxpools and bias parameters shared across different neurons. We empirically check our sufficient conditions over popular network architectures and observe that AD almost always computes a Clarke subderivative in practical learning setups. Emails: sejun.park000, sanghyuk.chun, wonyeol.lee.cs@gmail.com * AD uses either D -ρ(x) or D + ρ(x) as the proxy derivative of a pointwise activation function ρ at x, where D -ρ and D + ρ denote the left-hand and right-hand derivatives of ρ. † AD uses an element of the Clarke subdifferential as the proxy derivative of ρ. ‡ AD uses λD -ρ(x) + (1 -λ)D + ρ(x) as the proxy derivative of ρ at x; λ ∈ [0, 1] is shared in a layer. ¶ A sufficient condition for AD to be correct at the current parameter/input values is given in Theorem 5. § A sufficient condition for AD to be correct at the current parameter/input values is given in Theorem 8.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A mathematical model for automatic differentiation in machine learning 引用了 On Correctness of Automatic Differentiation for Non-Differentiable Functions
  • On Correctness of Automatic Differentiation for Non-Differentiable Functions 引用了 A mathematical model for automatic differentiation in machine learning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper12

  1. Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le 等ICCV 2019 · 9,163 次引用
  2. A ConvNet for the 2020sZhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer 等CVPR 2022 · 6,782 次引用
  3. Gradient flow dynamics of shallow ReLU networks for square loss and orthogonal inputsEtienne Boursier, Loucas Pillaud-Vivien, Nicolas FlammarionNeurIPS 2022 · 92 次引用
  4. A mathematical model for automatic differentiation in machine learningJérôme Bolte, Edouard PauwelsNeurIPS 2020 · 84 次引用
  5. On Correctness of Automatic Differentiation for Non-Differentiable FunctionsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangNeurIPS 2020 · 50 次引用

相关 Paper

  1. On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable ParametersWonyeol Lee, Sejun Park, Alex AikenICML 2023 · 6 次引用
  2. Floating-Point Networks with Automatic Differentiation Can Represent Almost All Floating-Point Functions and Their GradientsSejun Park, Yeachan Park, Geonho HwangICML 2026
  3. Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 次引用
  4. Complexity of Finding Stationary Points of Nonconvex Nonsmooth FunctionsJingzhao Zhang, Hongzhou Lin, Stefanie Jegelka, Suvrit Sra 等ICML 2020 · 98 次引用
  5. On the complexity of nonsmooth automatic differentiationJérôme Bolte, Ryan Boustany, Edouard Pauwels, Béatrice Pesquet-PopescuICLR 2023
黄昏的海面,两侧是细线勾勒的悬崖