Eva:面向二阶优化的通用向量化近似框架
Eva: A General Vectorized Approximation Framework for Second-order Optimization
AI总结:
本文提出高效二阶优化算法Eva,通过Kronecker分解和Sherman-Morrison公式降低内存与计算开销,并扩展为通用向量化近似框架,在多种模型和数据集上显著缩短训练时间。
摘要:
二阶优化算法在训练深度学习模型时展现出极佳的收敛特性,但往往带来显著的计算与内存开销。这可能导致其训练效率低于随机梯度下降(SGD)等一阶方法。在本研究中,我们提出了一种兼具内存与时间高效性的二阶算法Eva,包含两项新技术:1)利用训练数据小批量上小随机向量的Kronecker分解构建二阶信息,以降低内存消耗;2)借助Sherman-Morrison公式推导出高效的更新公式,无需显式计算矩阵的逆。我们进一步将Eva扩展为通用向量化近似框架,在不影响收敛性能的前提下,提升两种现有二阶算法(FOOF和Shampoo)的计算与内存效率。在不同模型和数据集上的大量实验结果表明,与一阶SGD和二阶算法(K-FAC和Shampoo)相比,Eva分别将端到端训练时间最高缩短了2.05倍和2.42倍。
英文摘要:
Second-order optimization algorithms exhibit excellent convergence properties for training deep learning models, but often incur significant computation and memory overheads. This can result in lower training efficiency than the first-order counterparts such as stochastic gradient descent (SGD). In this work, we present a memory- and time-efficient second-order algorithm named Eva with two novel techniques: 1) we construct the second-order information with the Kronecker factorization of small stochastic vectors over a mini-batch of training data to reduce memory consumption, and 2) we derive an efficient update formula without explicitly computing the inverse of matrices using the Sherman-Morrison formula. We further extend Eva to a general vectorized approximation framework to improve the compute and memory efficiency of two existing second-order algorithms (FOOF and Shampoo) without affecting their convergence performance. Extensive experimental results on different models and datasets show that Eva reduces the end-to-end training time up to 2.05x and 2.42x compared to first-order SGD and second-order algorithms (K-FAC and Shampoo), respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。