arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.11530cs.LGcs.PLstat.ML
收藏

ML中的自动微分:我们在哪里,我们应该去哪里

Automatic differentiation in ML: Where we are and where we should be going

Mila(Mila(魁北克人工智能研究所));Google Brain(谷歌大脑)

Bart van Merriënboer, Olivier Breuleux, Arnaud Bergeron, Pascal Lamblin

摘要:

我们回顾了机器学习(ML)中数组编程的自动微分(AD)的现状,包括用于AD的不同方法,如操作符重载(OO)和源转换(ST),基于图的程序中间表示和源语言。基于这些见解,我们引入了一个新的基于图的中间表示(IR),其目的是有效地支持数组编程的全通用AD。与ML框架中现有的XML编程表示不同,我们的IR自然支持函数调用,高阶函数和递归,使ML模型更容易实现。表示闭包的能力使我们能够使用ST执行AD而无需磁带,使生成的衍生(伴随)程序能够使用函数语言编译器的工具进行提前优化,并实现高阶导数。最后,我们介绍了一个名为Myia的概念证明编译器工具链,它使用Python的一个子集作为前端。

英文摘要:

We review the current state of automatic differentiation (AD) for array programming in machine learning (ML), including the different approaches such as operator overloading (OO) and source transformation (ST) used for AD, graph-based intermediate representations for programs, and source languages. Based on these insights, we introduce a new graph-based intermediate representation (IR) which specifically aims to efficiently support fully-general AD for array programming. Unlike existing dataflow programming representations in ML frameworks, our IR naturally supports function calls, higher-order functions and recursion, making ML models easier to implement. The ability to represent closures allows us to perform AD using ST without a tape, making the resulting derivative (adjoint) program amenable to ahead-of-time optimization using tools from functional language compilers, and enabling higher-order derivatives. Lastly, we introduce a proof of concept compiler toolchain called Myia which uses a subset of Python as a front end.

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

↑