Table of Contents
Fetching ...

Unbiased Gradient Low-Rank Projection

Rui Pan, Yang Luo, Yuxing Liu, Yang You, Tong Zhang

TL;DR

This paper tackles bias and convergence gaps in memory-efficient low-rank gradient methods for training large language models. It introduces GaLore Unbiased with Muon (GUM), a debiasing approach that uses layerwise sampling to mix full-rank compensated updates with low-rank Muon updates, preserving memory efficiency while achieving convergence guarantees comparable to full-parameter Muon. The authors prove a non-convex convergence bound for GUM that matches Muon's rate under constant sampling, and demonstrate, across synthetic tasks and LLM fine-tuning/pretraining, that GUM outperforms GaLore and can even surpass full-parameter training on several benchmarks. They further show that unbiased, high-rank updates yield a higher stable rank and more uniform singular-value distributions, which translate into better memorization and long-tail activation patterns across layers. Collectively, these results establish GUM as a scalable, theoretically solid alternative for memory-constrained training of large models.

Abstract

Memory-efficient optimization is critical for training increasingly large language models (LLMs). A popular strategy involves gradient low-rank projection, storing only the projected optimizer states, with GaLore being a representative example. However, a significant drawback of many such methods is their lack of convergence guarantees, as various low-rank projection approaches introduce inherent biases relative to the original optimization algorithms, which contribute to performance gaps compared to full-parameter training. Aiming to tackle this problem, this paper investigates the layerwise sampling technique for debiasing low-rank projection mechanisms. In particular, an instantiation of the paradigm gives rise to a novel and unbiased low-rank optimization method built upon GaLore's mechanism and the Muon algorithm, named GaLore Unbiased with Muon (GUM). We theoretically prove our method matches the convergence guarantees of the base Muon algorithm while preserving the memory efficiency of low-rank techniques. Empirical experiments on LLM fine-tuning and pretraining also demonstrate non-trivial improvements over GaLore and even better performance than full-parameter training. Further investigation shows that the improvement of this technique comes from a more uniform distribution of knowledge inside layers, leading to more efficient utilization of the model parameter space and better memorization.

Unbiased Gradient Low-Rank Projection

TL;DR

This paper tackles bias and convergence gaps in memory-efficient low-rank gradient methods for training large language models. It introduces GaLore Unbiased with Muon (GUM), a debiasing approach that uses layerwise sampling to mix full-rank compensated updates with low-rank Muon updates, preserving memory efficiency while achieving convergence guarantees comparable to full-parameter Muon. The authors prove a non-convex convergence bound for GUM that matches Muon's rate under constant sampling, and demonstrate, across synthetic tasks and LLM fine-tuning/pretraining, that GUM outperforms GaLore and can even surpass full-parameter training on several benchmarks. They further show that unbiased, high-rank updates yield a higher stable rank and more uniform singular-value distributions, which translate into better memorization and long-tail activation patterns across layers. Collectively, these results establish GUM as a scalable, theoretically solid alternative for memory-constrained training of large models.

Abstract

Memory-efficient optimization is critical for training increasingly large language models (LLMs). A popular strategy involves gradient low-rank projection, storing only the projected optimizer states, with GaLore being a representative example. However, a significant drawback of many such methods is their lack of convergence guarantees, as various low-rank projection approaches introduce inherent biases relative to the original optimization algorithms, which contribute to performance gaps compared to full-parameter training. Aiming to tackle this problem, this paper investigates the layerwise sampling technique for debiasing low-rank projection mechanisms. In particular, an instantiation of the paradigm gives rise to a novel and unbiased low-rank optimization method built upon GaLore's mechanism and the Muon algorithm, named GaLore Unbiased with Muon (GUM). We theoretically prove our method matches the convergence guarantees of the base Muon algorithm while preserving the memory efficiency of low-rank techniques. Empirical experiments on LLM fine-tuning and pretraining also demonstrate non-trivial improvements over GaLore and even better performance than full-parameter training. Further investigation shows that the improvement of this technique comes from a more uniform distribution of knowledge inside layers, leading to more efficient utilization of the model parameter space and better memorization.
Paper Structure (26 sections, 8 theorems, 46 equations, 5 figures, 8 tables, 3 algorithms)

This paper contains 26 sections, 8 theorems, 46 equations, 5 figures, 8 tables, 3 algorithms.

Key Result

Lemma 1

A single iteration of Algorithm alg:unbiased_low_rank_galore for $W \in \mathbb{R}^{m\times n}$ is equivalent to with $\mathbb{E}[\tilde{G}] = G \in \mathbb{R}^{m\times n}$, where $G$ denotes the gradient obtained at $W$.

Figures (5)

  • Figure 1: A counterexample of GaLore in linear regression with Muon optimizer jordan2024muon, where its debiased version GUM converges while GaLore fails to converge.
  • Figure 2: Higher Stable Rank $\rightarrow$ Better Performance. A positive correlation is observed between the overall stable rank $\mathbb{E}\left[\|M\|^2_F/\|M\|^2_2\right]$ and ARC Easy score. Each dot represents a checkpoint during pre-training after 1,000 steps, saved every 20 steps.
  • Figure 3: Left: Updates $\rightarrow$ Weights: Singular value distribution across layers of GaLore and GUM, where GUM demonstrates a more even and long-tailed distribution of singular values. Right: Weights $\rightarrow$ Activations: Tail distribution of modules that contain salient activations, where salient activations are defined as activations with top-k ($k=10,000$) attention scores over all modules. Randomly sampled 1K inputs from the C4 corpus are utilized as prompts. Blue parts correspond to GaLore's tail distribution, while green parts stand for GUM's further increase on top of GaLore.
  • Figure 4: Residual ($\chi_t = \|G_t^u - G_t^p\|_\mathrm{F}/\|G_{t}^u\|_\mathrm{F}$) between GaLore's projected and original gradients across different blocks during Gemma-2-9B fine-tuning. High residuals persist throughout training (except for the iterations with projector updates), revealing systematic bias in GaLore updates.
  • Figure 5: Detailed Singular Value Distribution.Left: GaLore. Right: GUM. It can be observed that GaLore has a sudden magnitude drop in the tail distribution of singular values in gate proj and up proj modules. GUM generally demonstrates smoother and more long-tailed singular value distributions. Furthermore, GUM has a differentiated spectrum across different layers, while this phenomenon is much weaker in GaLore.

Theorems & Definitions (16)

  • Lemma 1: GUM is unbiased
  • Theorem 1: Non-convex Convergence
  • Lemma 2: Unbiased update of Algorithm \ref{['alg:general_unbias_alg']}
  • proof : Proof of Lemma \ref{['lem:unbiased_update_general']}
  • proof : Proof of Lemma \ref{['lem:unbiased_update']}
  • Lemma 3: One-step descent
  • proof
  • Lemma 4: Decompose $\epsilon_{t,k}$
  • proof
  • Lemma 5: Variance Contraction
  • ...and 6 more