arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16397cs.LGmath.OC
收藏

AdaFisher:基于Fisher信息的自适应二阶优化

AdaFisher: Adaptive Second Order Optimization via Fisher Information

Concordia University(康考迪亚大学);IPSA Toulouse(图卢兹IPSA学院);Université de Montréal(蒙特利尔大学);Mila(米拉研究所)

Damien Martins Gomes, Yanlei Zhang, Eugene Belilovsky, Guy Wolf, Mahdi S. Hosseini

AI总结:

AdaFisher通过Fisher信息矩阵的对角块Kronecker近似实现自适应二阶优化,在图像分类和语言建模任务中兼顾收敛性能与计算效率,并在准确率和收敛速度上超越现有SOTA优化器。

摘要:

一阶优化方法目前是训练深度神经网络(DNNs)的主流。像Adam这样的优化器通过在训练过程中采用随机梯度的对角矩阵预处理来引入有限的曲率信息。尽管一阶方法被广泛使用,但二阶优化算法相比其一阶对应方法(如Adam和SGD)展现出更优越的收敛特性。然而,由于与一阶方法相比每次迭代的计算量增加,它们在训练DNNs中的实用性仍然受限。我们提出AdaFisher——一种自适应二阶优化器,它利用Fisher信息矩阵的对角块Kronecker近似进行自适应梯度预处理。AdaFisher旨在弥合二阶优化框架中增强的收敛/泛化能力与计算效率之间的差距,用于训练DNNs。尽管二阶优化器进展缓慢,我们展示了AdaFisher可以可靠地用于图像分类、语言建模,并以其在超参数调优中的稳定性和鲁棒性而脱颖而出。我们证明AdaFisher在准确率和收敛速度方面均优于SOTA优化器。代码可从https://github.com/AtlasAnalyticsLab/AdaFisher获取。

英文摘要:

First-order optimization methods are currently the mainstream in training deep neural networks (DNNs). Optimizers like Adam incorporate limited curvature information by employing the diagonal matrix preconditioning of the stochastic gradient during the training. Despite their widespread, second-order optimization algorithms exhibit superior convergence properties compared to their first-order counterparts e.g. Adam and SGD. However, their practicality in training DNNs is still limited due to increased per-iteration computations compared to the first-order methods. We present \emph{AdaFisher}--an adaptive second-order optimizer that leverages a \emph{diagonal block-Kronecker} approximation of the Fisher information matrix for adaptive gradient preconditioning. AdaFisher aims to bridge the gap between enhanced \emph{convergence/generalization} capabilities and computational efficiency in second-order optimization framework for training DNNs. Despite the slow pace of second-order optimizers, we showcase that AdaFisher can be reliably adopted for image classification, language modeling and stands out for its stability and robustness in hyper-parameter tuning. We demonstrate that AdaFisher \textbf{outperforms the SOTA optimizers} in terms of both accuracy and convergence speed. Code is available from https://github.com/AtlasAnalyticsLab/AdaFisher.

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

↑