FRUGAL: Memory-Efficient Optimization by Reducing State Overhead for Scalable Training
Moscow Institute of Physics and Technology, Russia(莫斯科物理技术学院);Ivannikov Institute for System Programming RAS, Russia(伊万诺夫系统编程研究所);Skolkovo Institute of Science and Technology, Russia(斯克尔罗沃科学与技术研究所);Mohamed bin Zayed University of Artificial Intelligence, UAE(穆罕默德·本·扎耶德人工智能大学)
Philip Zmushko, Aleksandr Beznosikov, Martin Takáč, Samuel Horváth
本文提出 FRUGAL 框架,通过梯度拆分实现全秩更新,在低维方向使用 Adam 等高内存优化器、其余方向使用 SGD 等无状态方法,从而在固定内存预算下提升预训练和微调性能。
摘要:
随着大型语言模型参数数量的增加,预训练和微调过程对 GPU 内存的需求越来越大。其中,优化器状态通常占用很大一部分内存。为应对这一挑战,近期提出了低秩适应(LoRA(Hu et al., 2021))、低秩梯度投影(GaLore(Zhao et al., 2024))和分块优化(BAdam(Luo et al., 2024))等方法。然而,在所有这些算法中,权重更新的有效秩仍然保持低秩,这可能导致大量梯度信息丢失。这种信息丢失可能非常关键,尤其是在预训练阶段。本文提出 FRUGAL(Full-Rank Updates with Gradient spLitting,即基于梯度拆分的全秩更新),一种新的高内存效率优化框架。FRUGAL 利用梯度拆分,使用 Adam 等先进算法执行低维更新,同时沿其余方向通过 SGD 或 signSGD(Bernstein et al., 2018)等无状态方法执行更新。该框架可与包括 GaLore 和 BAdam 在内的多种低秩更新选择技术集成。我们为在低维更新中使用 SGDM、在无状态更新中使用 SGD 时的框架提供了理论收敛保证。此外,在各种固定内存预算下,我们的方法始终优于同期方法,在预训练和微调任务中取得了最先进的结果,同时兼顾了内存效率和性能指标。
英文摘要:
With the increase in the number of parameters in large language models, the process of pre-training and fine-tuning increasingly demands larger volumes of GPU memory. A significant portion of this memory is typically consumed by the optimizer state. To overcome this challenge, recent approaches such as low-rank adaptation (LoRA (Hu et al., 2021)), low-rank gradient projection (GaLore (Zhao et al., 2024)), and blockwise optimization (BAdam (Luo et al., 2024)) have been proposed. However, in all these algorithms, the $\textit{effective rank of the weight updates remains low-rank}$, which can lead to a substantial loss of information from the gradient. This loss can be critically important, especially during the pre-training stage. In this paper, we introduce $\texttt{FRUGAL}$ ($\textbf{F}$ull-$\textbf{R}$ank $\textbf{U}$pdates with $\textbf{G}$r$\textbf{A}$dient sp$\textbf{L}$itting), a new memory-efficient optimization framework. $\texttt{FRUGAL}$ leverages gradient splitting to perform low-dimensional updates using advanced algorithms (such as Adam), while updates along the remaining directions are executed via state-free methods like SGD or signSGD (Bernstein et al., 2018). Our framework can be integrated with various low-rank update selection techniques, including GaLore and BAdam. We provide theoretical convergence guarantees for our framework when using SGDM for low-dimensional updates and SGD for state-free updates. Additionally, our method consistently outperforms concurrent approaches across various fixed memory budgets, achieving state-of-the-art results in pre-training and fine-tuning tasks while balancing memory efficiency and performance metrics.
Frugal Bayesian Optimization: Scalable Surrogates for Data- and Resource-Limited Discovery
National Centre for Scientific Research "Demokritos"(希腊德谟克利特国家科学研究中心);University of Patras(帕特雷大学);National and Kapodistrian University of Athens(雅典国立卡波迪斯特里亚大学);Hellenic Mediterranean University(希腊地中海大学);SciFY PNPC
Resource frugal optimizer for quantum machine learning
Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室);Leiden University(莱顿大学);Universidad Autónoma de Madrid(马德里自治大学);University of Warsaw(华沙大学);Normal Computing Corporation(诺默尔计算公司)
Scalable Federated Unlearning via Isolated and Coded Sharding
Beijing University of Posts and Telecommunications(北京邮电大学);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳));Nanyang Technological University(南洋理工大学);Central South University(中南大学)