结构化免逆自然梯度:内存高效且数值稳定的 KFAC
Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC
AI总结:
针对 KFAC 二阶方法在神经网络训练中存在的内存低效与低精度数值不稳定问题,提出结构化免逆自然梯度下降 (SINGD),实现内存高效与数值稳健,并在半精度下常优于 AdamW,填补了低精度训练中一阶与二阶方法的空白。
摘要:
诸如 KFAC 等二阶方法对神经网络训练很有用。然而,它们通常内存效率低下,因为其预调制的 Kronecker 因子是稠密的;且在低精度下数值不稳定,因为需要矩阵求逆或分解。这些局限使此类方法在现代混合精度训练中不受欢迎。我们通过 (i) 提出免逆 KFAC 更新和 (ii) 在 Kronecker 因子中施加结构来解决这些问题,从而得到结构化免逆自然梯度下降 (SINGD)。在现代神经网络上,我们表明与 KFAC 相比,SINGD 内存高效且数值稳健,甚至在半精度下也常优于 AdamW。我们的工作填补了现代低精度训练中一阶与二阶方法间的空白。
英文摘要:
Second-order methods such as KFAC can be useful for neural net training. However, they are often memory-inefficient since their preconditioning Kronecker factors are dense, and numerically unstable in low precision as they require matrix inversion or decomposition. These limitations render such methods unpopular for modern mixed-precision training. We address them by (i) formulating an inverse-free KFAC update and (ii) imposing structures in the Kronecker factors, resulting in structured inverse-free natural gradient descent (SINGD). On modern neural networks, we show that SINGD is memory-efficient and numerically robust, in contrast to KFAC, and often outperforms AdamW even in half precision. Our work closes a gap between first- and second-order methods in modern low-precision training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。