arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1811.05031cs.MSstat.CO
收藏

自动微分及其有效实现

A Review of automatic differentiation and its efficient implementation

Charles C. Margossian

摘要:

导数在计算统计学中起着至关重要的作用,例如使用Hamilton Monte Carlo采样的贝叶斯推断和神经网络的训练。自动微分是自动计算导数的强大工具,比传统方法更可取,特别是在对复杂算法和数学函数进行微分时。然而,自动微分的实现需要一定的注意以确保效率。现代差异化软件包部署了广泛的计算技术,以提高适用性、运行时间和存储管理。这些技术包括操作重载、基于区域的内存和表达式模板。也有一些数学技术,可以产生高性能增益时,应用于复杂的算法。例如,半解析导数可以将数值求解和微分代数方程所需的运行时间减少几个数量级。开放的问题包括扩展目前的软件包,以提供更专业的例程,和有效的方法来执行高阶微分。

英文摘要:

Derivatives play a critical role in computational statistics, examples being Bayesian inference using Hamiltonian Monte Carlo sampling and the training of neural networks. Automatic differentiation is a powerful tool to automate the calculation of derivatives and is preferable to more traditional methods, especially when differentiating complex algorithms and mathematical functions. The implementation of automatic differentiation however requires some care to insure efficiency. Modern differentiation packages deploy a broad range of computational techniques to improve applicability, run time, and memory management. Among these techniques are operation overloading, region based memory, and expression templates. There also exist several mathematical techniques which can yield high performance gains when applied to complex algorithms. For example, semi-analytical derivatives can reduce by orders of magnitude the runtime required to numerically solve and differentiate an algebraic equation. Open problems include the extension of current packages to provide more specialized routines, and efficient methods to perform higher-order differentiation.

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

↑