改进版优化器在大模型训练中更省显存、更快收敛。
Pro-KLShampoo: Projected KL-Shampoo with Whitening Recovered by Orthogonalization
- 用低秩结构+正交化重构梯度预处理矩阵,提升效率。
- 在4个规模模型上均降低验证损失,显存和时间更优。
- 适合大规模语言模型训练者快速部署高效优化器。
现代大模型预训练依赖于利用梯度矩阵结构的优化器。本文发现KL-Shampoo的克罗内克预处理矩阵具有‘尖峰-平坦’特征:少数主导特征值后接近均匀分布的尾部,这一特性在信号加噪声模型下精确成立。为此,提出Pro-KLShampoo:将其中一个克罗内克因子限制为匹配该结构的参数族——在追踪的r维子空间保留完整谱结构,其余n−r方向采用单一共享特征值,并对这些方向实施正交化。理论证明该正交化可恢复全量KL-Shampoo的代数形式。在四组预训练规模(GPT-2 124M / 350M,LLaMA 134M / 450M)下,Pro-KLShampoo在所有测试子空间秩上均优于KL-Shampoo,表现为更低的验证损失、峰值每GPU内存占用及达到各损失水平所需墙钟时间。
原文摘要 · Abstract (English)
Optimizers that exploit the matrix structure of gradients are central to modern LLM pre-training, with two distinct frontiers: explicit Kronecker-factored preconditioning -- most recently KL-Shampoo, which estimates the preconditioner via KL divergence minimization -- and orthogonalization of the gradient momentum, exemplified by Muon and analyzed as steepest descent under the spectral norm. The two routes are typically developed in isolation. We make a structural observation about KL-Shampoo's Kronecker preconditioners: their eigenvalue spectra exhibit a \emph{spike-and-flat} shape -- a few dominant eigenvalues followed by an approximately uniform tail -- across layers and training stages, holding exactly under a rank-$ρ$ signal-plus-noise gradient model. We exploit this structure by restricting one of KL-Shampoo's Kronecker factors to a parametric family aligned with the spike-and-flat shape: full spectral structure on a tracked $r$-dimensional subspace, single shared eigenvalue across the remaining $n-r$ directions. On these directions, we apply orthogonalization. An identity shows that this orthogonalization recovers the algebraic form of full KL-Shampoo's preconditioner. On four pre-training scales (GPT-2 124M / 350M, LLaMA 134M / 450M), Pro-KLShampoo consistently outperforms KL-Shampoo at every subspace rank we test in validation loss, peak per-GPU memory, and wallclock time to reach each loss level.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。