Lune

ICML2023顶会

On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters

Wonyeol Lee, Sejun Park, Alex Aiken

摘要

Recent work has shown that forward- and reverse- mode automatic differentiation (AD) over the reals is almost always correct in a mathematically precise sense. However, actual programs work with machine-representable numbers (e.g., floating-point numbers), not reals. In this paper, we study the correctness of AD when the parameter space of a neural network consists solely of machine-representable numbers. In particular, we analyze two sets of parameters on which AD can be incorrect: the incorrect set on which the network is differentiable but AD does not compute its derivative, and the non-differentiable set on which the network is non-differentiable. For a neural network with bias parameters, we first prove that the incorrect set is always empty. We then prove a tight bound on the size of the non-differentiable set, which is linear in the number of non-differentiabilities in activation functions, and give a simple necessary and sufficient condition for a parameter to be in this set. We further prove that AD always computes a Clarke subderivative even on the non-differentiable set. We also extend these results to neural networks possibly without bias parameters.

问 Lune

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

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

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 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
  • What does automatic differentiation compute for neural networks? 引用了 A mathematical model for automatic differentiation in machine learning
  • What does automatic differentiation compute for neural networks? 引用了 Automatic differentiation in PCF
  • What does automatic differentiation compute for neural networks? 引用了 A simple differentiable programming language
  • What does automatic differentiation compute for neural networks? 引用了 On Correctness of Automatic Differentiation for Non-Differentiable Functions
  • Automatic differentiation in PCF 引用了 A simple differentiable programming language
  • Automatic differentiation in PCF 引用了 On Correctness of Automatic Differentiation for Non-Differentiable Functions
  • On Correctness of Automatic Differentiation for Non-Differentiable Functions 引用了 A simple differentiable programming language
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. What does automatic differentiation compute for neural networks?Sejun Park, Sanghyuk Chun, Wonyeol LeeICLR 2024

它引用的 Paper12

  1. Minimum Width for Universal ApproximationSejun Park, Chulhee Yun, Jaeho Lee, Jinwoo ShinICLR 2021 · 148 次引用
  2. A mathematical model for automatic differentiation in machine learningJérôme Bolte, Edouard PauwelsNeurIPS 2020 · 84 次引用
  3. On Correctness of Automatic Differentiation for Non-Differentiable FunctionsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangNeurIPS 2020 · 50 次引用
  4. A simple differentiable programming languageMartín Abadi, Gordon D. PlotkinPOPL 2020 · 49 次引用
  5. Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 次引用

相关 Paper

  1. Floating-Point Networks with Automatic Differentiation Can Represent Almost All Floating-Point Functions and Their GradientsSejun Park, Yeachan Park, Geonho HwangICML 2026
  2. Floating-Point Neural Networks Can Represent Almost All Floating-Point FunctionsGeonho Hwang, Yeachan Park, Wonyeol Lee, Sejun ParkICML 2025
  3. Floating-Point Neural Networks are Provably Robust Universal ApproximatorsGeonho Hwang, Wonyeol Lee, Yeachan Park, Sejun Park 等CAV 2025
  4. On the complexity of nonsmooth automatic differentiationJérôme Bolte, Ryan Boustany, Edouard Pauwels, Béatrice Pesquet-PopescuICLR 2023
  5. On Minimum Depth and Width of Floating-Point Neural Networks for Representing Floating-Point FunctionsSejun Park, Yeachan Park, Geonho HwangICML 2026
黄昏的海面,两侧是细线勾勒的悬崖