Parameter and Memory Efficient Pretraining via Low-rank Riemannian Optimization

Zhanfeng Mo, Long Kai Huang, Sinno Jialin Pan

Research output: Chapter in book/report/conference proceedingConference proceedingpeer-review

Abstract

Pretraining large language models often requires significant computational resources and memory due to their vast parameter amount. An effective approach to enhance parameter efficiency in both training and inference is to parameterize each full-size weight as the product of two trainable low-rank factors. While low-rank fine-tuning has achieved great success, low-rank pretraining remains challenging as it requires learning extensive knowledge from scratch under the restrictive low-rank parameterization. During standard low-rank pretraining, separately optimizing the low-rank factors introduces redundant information from the full gradient, which hinders the learning process. To achieve efficient yet effective low-rank pretraining, we propose a Low-rank Riemannian Optimizer (LORO). At each LORO update step, the low-rank factor pairs are jointly updated to ensure their full-size product moves along the steepest descent direction on the low-rank manifold, without the need to compute any memory-intensive full-size matrices or gradients. Hence, our LORO finds low-rank models that achieve high performance comparable to full-size pretrained models, while significantly reducing memory usage and accelerating both training and inference. A LLaMA 1B model pretrained with LORO achieves a perplexity score of 2% better than the full-size baseline, with a 54% reduction in model memory, a ×1.8 speedup in training, and a ×2.2 speedup in inference. The code is available on GitHub.

Original languageEnglish
Title of host publication13th International Conference on Learning Representations, ICLR 2025
PublisherInternational Conference on Learning Representations, ICLR
Pages43894-43923
Number of pages30
ISBN (Electronic)9798331320850
Publication statusPublished - Apr 2025
Event13th International Conference on Learning Representations - Singapore EXPO, Singapore, Singapore
Duration: 24 Apr 202528 Apr 2025
https://iclr.cc/Conferences/2025 (Conference Website)
https://openreview.net/group?id=ICLR.cc/2025/Conference#tab-accept-oral (Conference Proceedings)

Conference

Conference13th International Conference on Learning Representations
Abbreviated titleICLR 2025
Country/TerritorySingapore
CitySingapore
Period24/04/2528/04/25
Internet address

Fingerprint

Dive into the research topics of 'Parameter and Memory Efficient Pretraining via Low-rank Riemannian Optimization'. Together they form a unique fingerprint.

Cite this