Probabilistic modeling is iterative. A scientist posits a simple model, fits it to her data, refines it according to her analysis, and repeats. However, fitting complex models to large data is a bottleneck in this process. Deriving algorithms for new models can be both mathematically and computationally challenging, which makes it difficult to efficiently cycle through the steps. To this end, we develop automatic differentiation variational inference (ADVI). Using our method, the scientist only provides a probabilistic model and a dataset, nothing else. ADVI automatically derives an efficient variational inference algorithm, freeing the scientist to refine and explore many models. ADVI supports a broad class of models-no conjugacy assumptions are required. We study ADVI across ten different models and apply it to a dataset with millions of observations. ADVI is integrated into Stan, a probabilistic programming system; it is available for immediate use.
Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learning
Toulouse School of Economics(图卢兹经济学院);Université Toulouse 1 Capitole(图卢兹第一大学);IRIT(图卢兹计算机研究所);Université de Toulouse(图卢兹大学);IRT Saint Exupery(圣埃克苏佩里技术研究院)
A Review of automatic differentiation and its efficient implementation
导数在计算统计学中起着至关重要的作用,例如使用Hamilton Monte Carlo采样的贝叶斯推断和神经网络的训练。自动微分是自动计算导数的强大工具,比传统方法更可取,特别是在对复杂算法和数学函数进行微分时。然而,自动微分的实现需要一定的注意以确保效率。现代差异化软件包部署了广泛的计算技术,以提高适用性、运行时间和存储管理。这些技术包括操作重载、基于区域的内存和表达式模板。也有一些数学技术,可以产生高性能增益时,应用于复杂的算法。例如,半解析导数可以将数值求解和微分代数方程所需的运行时间减少几个数量级。开放的问题包括扩展目前的软件包,以提供更专业的例程,和有效的方法来执行高阶微分。