arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.10307cs.PLcs.LGcs.MS
收藏

函数式数组处理语言中的高效可靠的可微程序设计

Efficient and Sound Differentiable Programming in a Functional Array-Processing Language

University of Edinburgh(爱丁堡大学);University of Oxford(牛津大学);ETH Zurich(苏黎世联邦理工学院);Graphcore;Microsoft Research(微软研究院);Epic Games;DeepMind

Amir Shaikhha, Mathieu Huot, Shabnam Ghasemirad, Andrew Fitzgibbon, Simon Peyton Jones, Dimitrios Vytiniotis

摘要:

自动微分(AD)是用于计算由程序表示的函数的导数的技术。该技术被认为是用于在许多机器学习和优化软件工具中计算微分的事实标准。尽管这种技术的实用性,性能的差异化的程序,特别是函数语言和向量的存在下,是次优的。我们提出了一个AD系统的高阶函数数组处理语言。该系统的核心函数语言同时支持源到源的前向模式AD和全局优化,如循环转换。结合起来,使用前向模式AD的梯度计算可以与反向模式一样有效,并且可以有效地计算诸如Gauss-Newton和Levenberg-Marquardt之类的数值算法所需的雅可比矩阵。

英文摘要:

Automatic differentiation (AD) is a technique for computing the derivative of a function represented by a program. This technique is considered as the de-facto standard for computing the differentiation in many machine learning and optimisation software tools. Despite the practicality of this technique, the performance of the differentiated programs, especially for functional languages and in the presence of vectors, is suboptimal. We present an AD system for a higher-order functional array-processing language. The core functional language underlying this system simultaneously supports both source-to-source forward-mode AD and global optimisations such as loop transformations. In combination, gradient computation with forward-mode AD can be as efficient as reverse mode, and the Jacobian matrices required for numerical algorithms such as Gauss-Newton and Levenberg-Marquardt can be efficiently computed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑