arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.10419cs.LGstat.ML
收藏

用于优化的二阶前向模式自动微分

Second-Order Forward-Mode Automatic Differentiation for Optimization

SRI International(国际SRI公司);University of Oxford(牛津大学);National University of Ireland Maynooth(爱尔兰梅努斯国立大学)

Adam D. Cobb, Atılım Güneş Baydin, Barak A. Pearlmutter, Susmit Jha

AI总结:

本文提出二阶超平面搜索,结合前向模式随机梯度,利用超对偶数实现仅前向传播的优化算法,避免反向传播存储开销,并引入FoMoH方法。开源代码已发布。

摘要:

本文提出了一种二阶超平面搜索,这是一种新颖的优化步骤,将二阶线搜索从一条线推广到$k$维超平面。结合前向模式随机梯度方法,这产生了一种仅包含前向传播的二阶优化算法,完全避免了反向传播的存储开销。与近期依赖方向导数(或雅可比-向量积,JVPs)的工作不同,我们使用超对偶数来同时评估方向导数及其二阶二次项。因此,我们引入了带有海森信息的的前向模式权重扰动(FoMoH)。然后,我们利用FoMoH开发了一种新的线搜索推广,将其扩展到超平面搜索。我们展示了这一扩展的实用性,以及它如何可能用于克服近期在不使用反向传播的情况下优化机器学习模型的一些挑战。我们的代码已在https://github.com/SRI-CSL/fomoh开源。

英文摘要:

This paper introduces a second-order hyperplane search, a novel optimization step that generalizes a second-order line search from a line to a $k$-dimensional hyperplane. This, combined with the forward-mode stochastic gradient method, yields a second-order optimization algorithm that consists of forward passes only, completely avoiding the storage overhead of backpropagation. Unlike recent work that relies on directional derivatives (or Jacobian--Vector Products, JVPs), we use hyper-dual numbers to jointly evaluate both directional derivatives and their second-order quadratic terms. As a result, we introduce forward-mode weight perturbation with Hessian information (FoMoH). We then use FoMoH to develop a novel generalization of line search by extending it to a hyperplane search. We illustrate the utility of this extension and how it might be used to overcome some of the recent challenges of optimizing machine learning models without backpropagation. Our code is open-sourced at https://github.com/SRI-CSL/fomoh.

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

↑