arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.20632cs.LG
收藏

最优低秩随机梯度估计用于大语言模型训练

Optimal low-rank stochastic gradient estimation for LLM training

Guanghua School of Management, Peking University(北京大学光华管理学院);Stern School of Business, New York University(纽约大学 Stern 商学院)

Zehao Li, Tao Ren, Zishi Zhang, Xi Chen, Yijie Peng

AI总结:

本文提出一种低秩矩阵估计器,通过随机低维子空间投影减少内存占用并控制均方误差,实验证明在RoBERTa-large微调和LLaMA-20M/60M/100M预训练中均取得优异效果。

摘要:

大语言模型(LLM)训练常受限于内存约束和高维参数空间中的随机梯度噪声。基于实验证据,许多LLM梯度矩阵在训练过程中本质上是低秩的,本文提出一种无偏、内存高效且方差最小的低秩矩阵估计器,适用于常见随机梯度估计范式。核心思想是将高维随机梯度估计器投影到随机低维子空间并提升,从而减少内存占用,同时保持估计器无偏并通过最优设计的投影分布控制均方误差,包括Haar-Stiefel投影。投影分布通过求解约束函数优化问题推导出最优随机投影器,指导算法设计。实验证明,所获得的低秩梯度估计器在RoBERTa-large微调中达到最低峰值GPU内存(例如3.83GB vs. 16.7GB for full BP)且在准确性上具有竞争力;在自回归LLM预训练(LLaMA-20M/60M/100M)中优于传统方法,支持所提最优投影策略的优势。

英文摘要:

Large language model (LLM) training is often bottlenecked by memory constraints and stochastic gradient noise in extremely high-dimensional parameter spaces. Motivated by empirical evidence that many LLM gradient matrices are effectively low-rank during training, we present an unbiased, memory-efficient, low-rank matrix estimator with the lowest variance that is applicable across common stochastic gradient estimation paradigms. The core idea is to project a high-dimensional stochastic gradient estimator onto a random low-dimensional subspace and lift it back, reducing memory while keeping the estimator unbiased and controlling mean-squared error via an optimally designed projection distribution, including Haar--Stiefel projections. The projection distribution is derived by solving a constrained functional optimization problem, yielding an optimal random projector that guides algorithm design. Empirically, the resulting low-rank gradient estimators deliver both practical memory savings and improved training behavior. In RoBERTa-large fine-tuning, our method attains the lowest peak GPU memory among compared methods (e.g., 3.83GB versus 16.7GB for full BP) while remaining competitive in accuracy; in autoregressive LLM pretraining (LLaMA-20M/60M/100M), our method outperforms the traditional methods, supporting the benefit of the proposed optimal projection strategy.

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

↑