TensorX
返回文献探索

Paper · arXiv 2408.12857

Memory-Efficient LLM Training with Online Subspace Descent

Kaizhao Liang, Bo Liu, Lizhang Chen, Qiang Liu

15 upvotesAugust 23, 2024arXiv 预印本
AI 摘要

A new family of memory-efficient optimizers called Online Subspace Descent provides convergence guarantees and outperforms existing methods for pretraining large language models.

memory-efficient LLM traininglow-rank structuregradientsprojection matrixsingular value decompositionHamiltonian DescentLIONAdamOnline Subspace Descentonline PCAperplexitydownstream tasks performancefull-rank baselines

Abstract

Recently, a wide range of memory-efficient LLM training algorithms have gained substantial popularity. These methods leverage the low-rank structure of gradients to project optimizer states into a subspace using projection matrix found by singular value decomposition (SVD). However, convergence of these algorithms is highly dependent on the update rules of their projection matrix. In this work, we provide the first convergence guarantee for arbitrary update rules of projection matrix. This guarantee is generally applicable to optimizers that can be analyzed with Hamiltonian Descent, including most common ones, such as LION, Adam. Inspired by our theoretical understanding, we propose Online Subspace Descent, a new family of subspace descent optimizer without SVD. Instead of updating the projection matrix with eigenvectors, Online Subspace Descent updates the projection matrix with online PCA. Online Subspace Descent is flexible and introduces only minimum overhead to training. We show that for the task of pretraining LLaMA models ranging from 60M to 7B parameters on the C4 dataset, Online Subspace Descent achieves lower perplexity and better downstream tasks performance than state-of-the-art low-rank training methods across different settings and narrows the gap with full-rank baselines.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号