TL;DR
SubTrack++ is a novel training method designed to make large language model (LLM) training significantly faster and more memory-efficient. By tracking gradient subspaces on a Grassmannian manifold, it combines smooth geometric updates with "projection-aware" optimizers. This approach reduces training wall-time by up to 65% compared to top-tier baselines while maintaining a minimal memory footprint and achieving state-of-the-art convergence.
What Problem Does This Paper Address?
Training LLMs is notoriously resource-heavy. While the model weights themselves are massive, a significant chunk of memory is actually consumed by "optimizer states"—the historical data (like momentum and variance) that optimizers like Adam maintain for every single parameter.
Recent "low-rank" methods, such as GaLore, have attempted to solve this by projecting gradients into a smaller subspace, allowing the optimizer to work with far fewer variables. However, these methods typically rely on Singular Value Decomposition (SVD) to find that subspace. SVD is computationally expensive, sensitive to noise, and often requires periodically "resetting" the subspace, which can disrupt the optimizer's learning progress. SubTrack++ aims to achieve the memory savings of low-rank training without the massive time overhead and stability issues caused by frequent SVDs.
Methods
SubTrack++ introduces three core innovations to create a more fluid and efficient training pipeline:
- Grassmannian Subspace Tracking: Instead of re-calculating a new subspace from scratch using SVD, the authors treat the subspace as a point on a Grassmannian manifold (the mathematical space of all possible subspaces). They update the subspace using "rank-1 geodesic steps"—essentially moving smoothly along the shortest path on this geometric surface to better align with new gradients.
- Projection-Aware Optimizer: When a subspace shifts, the old momentum and variance stored in the optimizer (like Adam’s $M_t$ and $V_t$) become "misaligned" with the new coordinates. SubTrack++ mathematically rotates these internal states so they remain consistent as the subspace evolves, preventing the erratic jumps seen in previous methods.
- Recovery Scaling: Low-rank projections inevitably discard some gradient information. SubTrack++ uses a technique called "Recovery Scaling" to estimate the importance of the discarded components and add a correction term back into the weight update, helping the model converge faster and more accurately.
Datasets
The authors evaluated SubTrack++ across several scales and tasks:
- Pre-training: Llama-based architectures ranging from 60M to 7B parameters, trained on the C4 (Colossal Clean Crawled Corpus) dataset.
- Fine-tuning: RoBERTa-Base and RoBERTa-Large models evaluated on the GLUE and SuperGLUE benchmarks.
- Instruction Fine-tuning: Llama-2-7B-chat-hf fine-tuned on the Alpaca dataset.
Key Insights and Ideas
- Smoothness Matters: The core insight is that subspaces evolve continuously. Using SVD is akin to taking a series of disconnected snapshots, whereas Grassmannian tracking is like recording a smooth video. This continuity allows for more frequent updates with less computational "shock" to the system.
- Geometry as a Speedup: By replacing heavy SVD calculations with lightweight algebraic operations on the Grassmannian manifold, the authors found they could update the subspace more often without the usual time penalty.
- Implicit Regularization: Interestingly, SubTrack++ occasionally outperformed full-rank training. The authors suggest that projecting gradients into a low-rank space acts as a form of implicit regularization, helping the model generalize better rather than just memorizing the training data.
- Stability in Noise: In tests on the non-convex Ackley function, SubTrack++ reached the global minimum smoothly, while SVD-based methods suffered from abrupt jumps that hindered convergence.
Key Results
SubTrack++ successfully democratizes LLM training by making simultaneous progress across memory efficiency, training time, and model performance.
- Massive Speedups: SubTrack++ reduced training wall-time by 43% on 1B-parameter models and 67% on 3B-parameter models compared to LDAdam (the previous state-of-the-art for low-rank Adam).
- Superior Accuracy: In pre-training 1B Llama models, SubTrack++ achieved a lower evaluation loss than all other low-rank baselines, including GaLore, Fira, APOLLO, and LDAdam.
- Memory Efficiency: It maintained a peak memory footprint on par with GaLore, which is significantly lower than standard full-parameter training.
- Fine-tuning Performance: On the Alpaca dataset, SubTrack++ matched the evaluation loss of GaLore but finished the task 34% faster.
Limitations and Future Work
The authors note a few areas for further exploration:
- Scale Constraints: Due to hardware and time limits, the method was only tested up to 7B parameters. Validating these gains on "frontier" models (70B+) remains a future goal.
- Optimizer Scope: The current "projection-aware" logic is specifically tailored for the Adam family of optimizers. Extending this geometric approach to other optimizer types (like SOAP or ScheduleFree) would require additional mathematical derivation.
- Theoretical Gap: While the paper provides a convergence proof assuming a stable subspace, a deeper theoretical analysis of how slowly changing subspaces affect convergence is still an open problem in the field.
Summary updated