Document detail
ID

oai:arXiv.org:2408.12857

Topic
Computer Science - Machine Learnin... Computer Science - Artificial Inte... Computer Science - Computation and...
Author
Liang, Kaizhao Liu, Bo Chen, Lizhang Liu, Qiang
Category

Computer Science

Year

2024

listing date

8/28/2024

Keywords
subspace descent projection matrix training online
Metrics

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 \emph{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.

;Comment: Code is available at https://github.com/kyleliang919/Online-Subspace-Descent

Liang, Kaizhao,Liu, Bo,Chen, Lizhang,Liu, Qiang, 2024, Memory-Efficient LLM Training with Online Subspace Descent

Document

Open

Share

Source

Articles recommended by ES/IODE AI

Embolic Agent Choice in Middle Meningeal Artery Embolization as Primary or Adjunct Treatment for Chronic Subdural Hematoma: A Systematic Review and Meta-analysis
radiologic rates reoperation primary chronic data complications clinical patients treatment hematoma outcomes recurrence subdural embolization
Oncogenic activation of EEF1A2 expression: a journey from a putative to an established oncogene
cancer eef1a1 eef1a2 pi3k akt elongation translation tissues eef1a1 factor oncogenic eef1a2 expression