paper-with-me

홈 › Papers

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

2023-01-31 · 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.

📄 PDF Abstract BibTeX arXiv:2301.13370

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Source-to-Source Automatic Differentiation of OpenMP Parallel Loops

2021-11-02 · Jan Hückelheim, Laurent Hascoët

This paper presents our work toward correct and efficient automatic differentiation of OpenMP parallel worksharing loops in forward and reverse mode. Automatic differentiation is a method to obtain gradients of numerical…

Uncertainty Quantification

Differentiable Quantum Programming with Unbounded Loops

2022-11-08 · Wang Fang, Mingsheng Ying, Xiaodi Wu

The emergence of variational quantum applications has led to the development of automatic differentiation techniques in quantum computing. Recently, Zhu et al. (PLDI 2020) have formulated differentiable quantum programmi…

Probabilistic Programming

Automatic Differentiation of Algorithms for Machine Learning

2014-04-28 · Atilim Gunes Baydin, Barak A. Pearlmutter

Automatic differentiation---the mechanical transformation of numeric computer programs to calculate derivatives efficiently and accurately---dates to the origin of the computer age. Reverse mode automatic differentiation…

BIG-bench Machine Learning

Automatic differentiation is no panacea for phylogenetic gradient computation

2022-11-03 · Mathieu Fourment, Christiaan J. Swanepoel, Jared G. Galloway, Xiang Ji 외

Gradients of probabilistic model likelihoods with respect to their parameters are essential for modern computational statistics and machine learning. These calculations are readily available for arbitrary models via auto…

Variational Inference

A mathematical model for automatic differentiation in machine learning

2020-06-03 · NeurIPS 2020 12 · Jerome Bolte, Edouard Pauwels

Automatic differentiation, as implemented today, does not have a simple mathematical model adapted to the needs of modern machine learning. In this work we articulate the relationships between differentiation of programs…

BIG-bench Machine Learning