Subspace Optimization for Large Language Models with Convergence Guarantees

Yutong He, Pengrui Li, Yipeng Hu, Chuyan Chen, Kun Yuan

Training and fine-tuning Large Language Models (LLMs) is notoriously memory-intensive. While the model weights themselves are huge, the "optimizer states"—the momentum and variance terms tracked by algorithms like Adam—often consume even more VRAM. Recently, GaLore (Gradient Low-Rank Projection) made waves by projecting these gradients into a low-rank subspace, allowing a 7B parameter model to be pre-trained on a consumer-grade NVIDIA RTX 4090.

However, a new paper from researchers at Peking University and other institutions reveals a hidden catch: GaLore isn't theoretically guaranteed to converge, and in certain stochastic settings, it simply fails. Enter GoLore, a refined approach that brings rigorous convergence guarantees back to memory-efficient training.

TL;DR

Researchers discovered that GaLore’s SVD-based gradient projection can get "trapped" by noise near local minima, preventing it from reaching an optimal solution. They propose GoLore (Gradient random Low-Rank projection), which uses random projections to ensure unbiased convergence, enabling stable LLM training with significantly reduced memory overhead.

What Problem Does This Paper Address?

The primary bottleneck in LLM training is VRAM. Standard Adam optimization requires storing two additional values for every single parameter, tripling the memory footprint of the weights alone. GaLore addressed this by using Singular Value Decomposition (SVD) to find a low-rank subspace for gradients, storing optimizer states only for that smaller space.

Illustration of how SVD-based projection in GaLore captures the true gradient when it is large, but primarily captures noise when the gradient is small.

The challenge is the stochastic nature of training. Gradients are calculated on mini-batches, meaning they consist of the "true" gradient plus "gradient noise." The authors asked a fundamental question: Does GaLore’s greedy approach to picking the "best" subspace (via SVD) actually work when the noise is louder than the signal? They found that as a model approaches a solution and the true gradient shrinks, GaLore’s SVD starts picking up the noise instead of the signal, leading to a "dead end" where the model stops improving.

Methods

The paper introduces two major contributions to the subspace optimization toolkit:

  1. The Counterexample: The authors provide a formal proof and a quadratic optimization example where GaLore fails to converge because its SVD projection becomes orthogonal to the true descent direction due to anisotropic (directional) noise.
  2. GoLore (Gradient random Low-Rank projection): Instead of using SVD to find the "best" subspace, GoLore samples a projection matrix $P$ from a uniform distribution on the Stiefel manifold (a space of orthogonal matrices).
  3. Momentum Projection (MP): When the subspace changes (which happens periodically), the momentum terms from the old subspace must be "re-aligned" to the new one. The authors introduce a specific Momentum Projection mechanism to maintain the trajectory of the optimizer across these transitions.

The authors also propose a hybrid strategy: Use GaLore in the early stages of training (when gradients are large and SVD is highly efficient at finding the signal) and switch to GoLore in the final stages (when the signal is weak and random projection is needed to avoid noise bias).

Key Insights and Ideas

  • SVD is "Greedy": Because SVD always picks the directions with the highest variance, it is easily fooled by noise. In the late stages of training, the "dominant" singular vectors are often just directions of high noise, not the direction of the actual minimum.
  • Randomness as a Stabilizer: By choosing a random subspace, GoLore ensures that the projection is unbiased. Over many iterations, this allows the optimizer to "see" the true gradient direction even if it's obscured by noise in any single step.
  • The Batch Size Connection: The authors proved that GaLore can converge if you use an extremely large batch size (which reduces noise) or if the noise is "isotropic" (equal in all directions). Since neither is usually true in LLM training, GoLore is the more practical choice.

Key Results

  • Convergence Validation: In a controlled quadratic problem, GaLore flatlined and failed to reach the minimum, while GoLore and "Large-Batch GaLore" converged perfectly.
Convergence comparison on a quadratic problem. GaLore plateaus before reaching the minimum, while GoLore and Large-Batch (L.B.) GaLore successfully converge.
  • Pre-training Performance: On the C4 dataset, GoLore achieved significantly lower perplexity than GaLore, matching the performance of full-parameter training while using a fraction of the memory.
  • Fine-tuning Superiority: On the BoolQ task, GoLore@30% (using GaLore for 70% of the time and GoLore for the last 30%) achieved 81.96% accuracy, outperforming standard GaLore (79.79%).
  • Memory Savings: Like GaLore, GoLore enables training a 7B model on a single 24GB GPU, a feat that usually requires over 40GB of VRAM with standard 8-bit Adam.

Limitations and Future Work

While the paper provides the first discrete-time convergence analysis for GaLore-like algorithms, there are a few areas left for exploration. The theoretical proofs primarily focus on Momentum SGD (MSGD); while empirical tests with AdamW were successful, a formal convergence proof for the Adam-specific variance term in this subspace remains an open challenge. Additionally, automating the "optimal" time to switch from GaLore to GoLore—currently a hyperparameter—would make the algorithm even more robust for general use.

Summary updated

BibTeX
@inproceedings{he2025subspace,
  author = {Yutong He and Pengrui Li and Yipeng Hu and Chuyan Chen and Kun Yuan},
  title = {{Subspace Optimization for Large Language Models with Convergence Guarantees}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=4BARFrWnTI},
}
Figure