arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.07237cs.LGcs.AI
收藏

GWT: 大规模语言模型训练中的可扩展优化器状态压缩

GWT: Scalable Optimizer State Compression for Large Language Model Training

National Key Laboratory of Parallel and Distributed Computing(并行与分布式计算国家重点实验室);National University of Defense Technology(国防科技大学);Center for Machine Learning Research(机器学习研究中心)

Ziqing Wen, Ping Luo, Jiahuan Wang, Junlin Zeng, Kun Yuan, Dongsheng Li, Tao Sun

AI总结:

本文提出GWT,一种基于小波变换的优化器状态压缩方法,有效减少内存开销,同时保持模型精度,适用于大规模预训练和任务微调。

摘要:

大规模语言模型(LLMs)在自然语言处理基准测试中表现出色,但模型参数规模的增加导致训练时内存开销巨大,尤其在使用状态ful优化器如Adam时更为明显。传统内存高效策略通常涉及奇异值分解(SVD)或权重冻结,但这些方法相对于全秩更新会导致不可忽视的性能下降。为了解决这些限制,本文探索了超越低秩约束的内存高效优化方法,并提出了梯度小波变换(GWT)。GWT引入了一种新颖的压缩框架,将梯度投影到小波子空间中,从而有效压缩优化器状态,同时保留关键更新信息。我们理论和实证证明,GWT可以无缝集成到现有优化协议中,实现资源高效的训练,而不会牺牲模型的保真度。严谨的评估涵盖了大规模预训练和任务特定微调,结果表明GWT在性能上与先进的内存高效优化器和全秩更新具有可比性。此外,GWT为管理现代大规模数据工程和知识发现系统中固有的内存密集型流水线提供了可扩展且稳健的解决方案。

英文摘要:

Training large language models (LLMs) requires substantial memory, a significant fraction of which is consumed by the moment states maintained by adaptive optimizers such as Adam. Existing memory-efficient approaches commonly compress parameters or gradients through low-rank projections, which may discard information outside the selected subspace or incur additional costs from subspace construction and singular value decomposition (SVD). We introduce \textbf{Gradient Wavelet Transform (GWT)}, an SVD-free framework that applies a multilevel Haar transform to matrix gradients. GWT maintains first- and second-moment states only for the compact approximation coefficients, while retaining all detail coefficients transiently in each update. We show that the orthogonal transform preserves the complete current gradient and establish gradient alignment and a stationary-point guarantee for smooth objectives under bounded preconditioning and a directly verifiable coarse-momentum coherence condition. Experiments on language-model pre-training and downstream fine-tuning show that GWT reduces estimated model-and-optimizer-state memory by up to 52\% while maintaining competitive or improved model quality. On LLaMA-3B pre-training, GWT achieves $1.9\times$ the throughput of 8-bit Adam and is compatible with multiple optimizer families, including Adam, Adam-mini, and Muon.

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

↑