自动微分的简单本质
The simple essence of automatic differentiation
摘要:
反向模式(RAD)中的自动微分(AD)是深度学习和其他大规模优化用途的核心组件。然而,常用的RAD算法(如反向传播)复杂且有状态,阻碍了深入理解、改进和并行执行。本文开发了一个简单的,广义的AD算法计算从一个简单的,自然的规格。一般的算法,然后专门通过不同的衍生物的表示。特别是,将众所周知的构造应用于朴素的表示产生了两个比以前已知的简单得多的RAD算法。与常用的RAD实现相比,这里定义的算法不涉及图形、磁带、变量、偏导数或突变。它们本质上是并行友好的,构造正确,并且由于使用AD无关编译器插件,可以直接从现有的程序设计语言使用,而不需要新的数据类型或编程风格。
英文摘要:
Automatic differentiation (AD) in reverse mode (RAD) is a central component of deep learning and other uses of large-scale optimization. Commonly used RAD algorithms such as backpropagation, however, are complex and stateful, hindering deep understanding, improvement, and parallel execution. This paper develops a simple, generalized AD algorithm calculated from a simple, natural specification. The general algorithm is then specialized by varying the representation of derivatives. In particular, applying well-known constructions to a naive representation yields two RAD algorithms that are far simpler than previously known. In contrast to commonly used RAD implementations, the algorithms defined here involve no graphs, tapes, variables, partial derivatives, or mutation. They are inherently parallel-friendly, correct by construction, and usable directly from an existing programming language with no need for new data types or programming style, thanks to use of an AD-agnostic compiler plugin.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。