BSFA:利用子空间二元性加速神经网络训练
BSFA: Leveraging the Subspace Dichotomy to Accelerate Neural Network Training
AI总结:
BSFA通过子空间二元性加速神经网络训练,利用PCA估计子空间并分块策略提升收敛速度和稳定性。
摘要:
最近的研究[1,2,3]突显了深度学习优化中的一个基本二元性:尽管沿着损失Hessian的顶部特征方向(Dom空间)的参数更新捕捉了大部分更新幅度,但它们往往对损失减少贡献最小。相反,正交成分(Bulk空间)的更新幅度较小,但推动了大部分学习进展。在本文中,我们进一步深入探讨这一现象,并引入了Bulk-Space-Filtration-Accelerator(BSFA),一种新颖的即插即用框架。BSFA通过差异化地缩放投影到这些不同子空间的更新组件来加速训练,同时通过调节主导子空间的更新来增强稳定性,并通过放大Bulk空间的更新来提升收敛速度。为确保BSFA在现代大规模模型中既实用又可扩展,我们引入了两个关键创新:一种利用主成分分析(PCA)对历史更新进行估计以快速估计子空间的高效估计器,以及一种分块策略,该策略在每个参数块的基础上应用此估计。这些设计使BSFA计算上可行且效果显著。我们展示了BSFA在各种任务中的加速效果,特别是在预训练LLaMA-72M在WikiText-103和LLaMA-134M在OpenWebText上的速度提升约为2倍,相较于普通AdamW。
英文摘要:
Recent studies \citep{gur2018gradient,song2024does, wen2024understanding} highlight a fundamental dichotomy in deep learning optimization: Although parameter updates along the top eigendirections of the loss Hessian (Dom-space) capture most of the update magnitude, they often contribute minimally to loss reduction. In contrast, updates in the orthogonal component (Bulk-space) have smaller magnitudes but drive most learning progress. In this work, we further advance the understanding of this phenomenon and introduce the \textbf{Bulk-Space-Filtration-Accelerator (BSFA)}, a novel plug-and-play framework. BSFA accelerates training by differentially scaling update components projected onto these distinct subspaces, simultaneously enhancing stability by moderating updates in the dominant subspace and boosting convergence speed by amplifying those in the bulk-space. To ensure BSFA is both practical and scalable for contemporary large models, we introduce two key innovations: an efficient estimator using Principal Component Analysis (PCA) on historical updates for fast subspace estimation, and a block-wise strategy that applies this estimation on a per-parameter-block basis. These designs make BSFA computationally tractable and highly effective. We demonstrate BSFA's acceleration across various tasks, notably achieving approximately 2$\times$ speedup when pre-training LLaMA-72M on WikiText-103 and LLaMA-134M on OpenWebText compared to vanilla AdamW.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。