arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.07454math.OCcs.AIcs.LGstat.ML
收藏

NG +:一种用于深度学习的多步矩阵积自然梯度法

NG+ : A Multi-Step Matrix-Product Natural Gradient Method for Deep Learning

Beijing International Center for Mathematical Research(北京国际数学研究中心);Peng Cheng Laboratory(鹏城实验室)

Minghan Yang, Dong Xu, Qiwen Cui, Zaiwen Wen, Pengxiang Xu

摘要:

本文提出了一种新的二阶方法NG+。根据“梯度的形状等于参数的形状”的原则,我们用矩阵形式的梯度乘积定义了广义Fisher信息矩阵(Gfisher information matrix,Gfisher information matrix),而不是传统的向量化。然后,我们的广义自然梯度方向简单地是矩阵形式的梯度的逆矩阵。此外,该方法及其逆方法在多步计算中保持不变,从而可以控制计算量,并与一阶方法相当。在较弱的条件下证明了该算法的整体收敛性,并给出了在线学习的遗憾界。使用ResNet50进行图像分类、使用Schnet进行量子化学建模、使用Transformer进行神经机器翻译以及使用DLRM进行推荐系统的数值结果表明,GN+与最先进的方法相比具有竞争力。

英文摘要:

In this paper, a novel second-order method called NG+ is proposed. By following the rule ``the shape of the gradient equals the shape of the parameter", we define a generalized fisher information matrix (GFIM) using the products of gradients in the matrix form rather than the traditional vectorization. Then, our generalized natural gradient direction is simply the inverse of the GFIM multiplies the gradient in the matrix form. Moreover, the GFIM and its inverse keeps the same for multiple steps so that the computational cost can be controlled and is comparable with the first-order methods. A global convergence is established under some mild conditions and a regret bound is also given for the online learning setting. Numerical results on image classification with ResNet50, quantum chemistry modeling with Schnet, neural machine translation with Transformer and recommendation system with DLRM illustrate that GN+ is competitive with the state-of-the-art methods.

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

↑