A Memory Efficient Randomized Subspace Optimization Method for Training Large Language Models
Beijing International Center for Mathematical Research, Peking University(北京大学北京数学科学中心);Center for Data Science, Peking University(北京大学数据科学中心);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心)
Yiming Chen, Yuan Zhang, Yin Liu, Kun Yuan, Zaiwen Wen
The memory challenges associated with training Large Language Models (LLMs) have become a critical concern, particularly when using the Adam optimizer. To address this issue, numerous memory-efficient techniques have been proposed, with GaLore standing out as a notable example designed to reduce the memory footprint of optimizer states. However, these approaches do not alleviate the memory burden imposed by activations, rendering them unsuitable for scenarios involving long context sequences or large mini-batches. Moreover, their convergence properties are still not well-understood in the literature. In this work, we introduce a Randomized Subspace Optimization framework for pre-training and fine-tuning LLMs. Our approach decomposes the high-dimensional training problem into a series of lower-dimensional subproblems. At each iteration, a random subspace is selected, and the parameters within that subspace are optimized. This structured reduction in dimensionality allows our method to simultaneously reduce memory usage for both activations and optimizer states. We establish comprehensive convergence guarantees and derive rates for various scenarios, accommodating different optimization strategies to solve the subproblems. Extensive experiments validate the superior memory and communication efficiency of our method, achieving performance comparable to GaLore and Adam.
Lotus: Efficient LLM Training by Randomized Low-Rank Gradient Projection with Adaptive Subspace Switching
Hong Kong Baptist University, School of Science, Hong Kong, China(香港 Baptist 大学,科学学院,香港,中国);Fudan University, School of Data Science, Shanghai, China(复旦大学,数据科学学院,上海,中国);New York University, Tandon School of Engineering, New York, USA(纽约大学,Tandon 工程学院,纽约,美国)
Randomized Matrix Sketching for Neural Network Training and Gradient Monitoring
Department of Mathematical Sciences(数学科学系);Center for Mathematics(数学中心);Artificial Intelligence (CMAI), George Mason University. Fairfax, VA 22030.(人工智能(CMAI),乔治·马歇尔大学,弗吉尼亚州 Fairfax,22030);School of Mathematical(数学系);Statistical Sciences, Clemson University, Clemson, SC 29634.(统计科学系,克莱姆森大学,SC州 Clemson,29634)
Memory-Efficient Subspace Optimization with Residual Correction: From Momentum SGD to Muon
State Key Laboratory of Novel Software Technology, Nanjing University(南京大学软件新技术国家重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Alibaba Token Hub, Alibaba Group(阿里巴巴集团阿里Token中心);School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与技术学院)