arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.18083cs.LGmath.OC
收藏

用于训练深度神经网络的两层 KFAC 方法的分析与比较

Analysis and Comparison of Two-Level KFAC Methods for Training Deep Neural Networks

IFPEN(法国石油与新能源研究院)

Abdoulaye Koroko, Ani Anciaux-Sedrakian, Ibtihel Ben Gharbia, Valérie Garès, Mounir Haddou, Quang Huy Tran

AI总结:

本研究探讨了通过两层方法恢复层间相互作用以改进 KFAC 的可能性,实验表明引入低频层间相互作用并未提升性能,证实了 KFAC 舍弃 FIM 非对角块的块对角近似方法已足够稳健且高效。

摘要:

作为一种二阶方法,自然梯度下降(NGD)能够加速神经网络的训练。然而,由于计算和求逆 Fisher 信息矩阵(FIM)的计算和内存成本极其高昂,必须进行高效的近似才能使 NGD 扩展至深度神经网络(DNNs)。目前已有许多此类近似的尝试。其中最复杂的是 KFAC,它将 FIM 近似为块对角矩阵,其中每个块对应神经网络的一层。通过这种方式,KFAC 忽略了不同层之间的相互作用。在本研究中,我们探讨了通过两层方法恢复层间某些低频相互作用的益处。受区域分解方法的启发,我们提出并评估了使用不同粗空间对 KFAC 进行的几种两层修正。所得结果表明,以这种方式引入层间相互作用并不能真正改善 KFAC 的性能。这表明舍弃 FIM 的非对角块是安全的,因为块对角方法已足够稳健、准确且在计算时间上经济。

英文摘要:

As a second-order method, the Natural Gradient Descent (NGD) has the ability to accelerate training of neural networks. However, due to the prohibitive computational and memory costs of computing and inverting the Fisher Information Matrix (FIM), efficient approximations are necessary to make NGD scalable to Deep Neural Networks (DNNs). Many such approximations have been attempted. The most sophisticated of these is KFAC, which approximates the FIM as a block-diagonal matrix, where each block corresponds to a layer of the neural network. By doing so, KFAC ignores the interactions between different layers. In this work, we investigate the interest of restoring some low-frequency interactions between the layers by means of two-level methods. Inspired from domain decomposition, several two-level corrections to KFAC using different coarse spaces are proposed and assessed. The obtained results show that incorporating the layer interactions in this fashion does not really improve the performance of KFAC. This suggests that it is safe to discard the off-diagonal blocks of the FIM, since the block-diagonal approach is sufficiently robust, accurate and economical in computation time.

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

↑