SVD-Free Low-Rank Adaptive Gradient Optimization for Large Language Models

Ionut-Vlad Modoranu, Mher Safaryan, Erik Schultheis, Dan AlistarharXiv 2025 · DOI

Introduction

Training Large Language Models (LLMs) is a notoriously memory-intensive endeavor, primarily due to the massive "momentum buffers" required by standard adaptive optimizers like AdamW. For a 70B parameter model, these buffers alone can consume hundreds of gigabytes of VRAM, often exceeding the capacity of single GPUs and necessitating complex distributed setups.

This paper introduces a novel approach to compress these buffers using the Discrete Cosine Transform (DCT) and a dynamic column selection strategy. By replacing computationally expensive Singular Value Decomposition (SVD) with efficient Fast Fourier Transforms (FFT), the researchers developed a suite of optimizers—Trion and DCT-AdamW—that reduce memory usage by up to 25% and accelerate training without compromising model performance.

The Memory Tax of Adaptive Optimization

Adaptive optimizers are the industry standard for LLM training but impose a significant "memory tax" by storing two additional buffers (momentum and variance) for every model parameter. Recent "low-rank" techniques, such as GaLore or Dion, attempt to mitigate this by projecting gradients into a lower-dimensional subspace. However, these methods typically rely on SVD or QR decomposition to determine that subspace. These $O(n^3)$ operations are computationally burdensome and require storing unique projection matrices for every layer, which partially offsets the intended memory savings.

Methodology: SVD-Free Low-Rank Projection

The authors propose a conceptual shift: instead of calculating custom projection bases for every layer, the optimizer selects from a fixed, universal basis.

  1. Fixed Orthogonal Basis (DCT): Instead of per-layer SVD, the method utilizes a predefined Discrete Cosine Transform (DCT) matrix. The DCT is highly effective at capturing data "energy" in a few components, a property widely exploited in image compression (like JPEG).
  2. Dynamic Column Selection: For each layer, the optimizer calculates the "alignment" (similarity) between the current gradient and the DCT matrix columns. It then dynamically selects the top $r$ columns that best represent the gradient at that specific moment.
  3. FFT Acceleration: Utilizing Makhoul’s algorithm, these alignments are computed via FFT in $O(n^2 \log n)$ time, which is significantly faster than standard matrix multiplication.
  4. New Optimizers:
    • Trion: An improvement on the Dion optimizer that uses DCT-based selection and Newton-Schulz iteration for fast, orthogonal momentum updates.
  5. DCT-AdamW: A memory-efficient AdamW variant using DCT projections and quantized error feedback to maintain approximation accuracy over time.

Experimental Results

The researchers evaluated their methods on pre-training Llama-family models (30M to 1.3B parameters) using the C4 dataset and fine-tuning Llama-2 7B and Qwen-2.5 7B models on the GSM-8k math dataset.

Efficiency and Performance Parity

Trion and DCT-AdamW achieved up to 25% lower memory footprints compared to SVD-based methods across various model sizes. Computing gradient alignments via FFT yielded 8x to 50x speedups for large layers compared to standard matrix multiplication.

Training loss vs. iterations and wall-clock time for Llama models (350M, 800M, 1.3B), comparing Trion and Dion. Trion demonstrates superior wall-clock efficiency and lower final loss.

In pre-training benchmarks, Trion consistently achieved lower perplexity (better language modeling) than the SVD-based Dion optimizer. As shown in the wall-clock time plots, Trion reaches a lower training loss within the same time budget because it minimizes computational overhead.

Pre-training results on Llama-800M comparing AdamW, LDAdamW, and DCT-AdamW. The table highlights significant memory savings (from 73.72 to 57.82 GiB) and competitive perplexity for DCT-AdamW.

As detailed in the table above, DCT-AdamW reduces memory usage from 73.72 GiB (AdamW) to 57.82 GiB while maintaining competitive validation perplexity, outperforming other low-rank variants like LDAdamW in both memory and performance.

Key Insights

  • Universal Basis Sufficiency: A fixed basis like DCT is "good enough" for low-rank optimization as long as the specific columns are selected dynamically based on gradient alignment.
  • Index-Based Storage: Instead of storing a large $d \times r$ projection matrix for every layer, the optimizer only needs to store $r$ integer indices. This drastically reduces the memory overhead of the optimizer itself.
  • Theoretical Grounding: The paper provides a rigorous proof that norm-based ranking of orthogonal columns is the optimal strategy for minimizing reconstruction error.

Limitations and Future Work

While the results are promising, the largest model tested was 7B parameters. Future work is required to confirm these efficiencies at the 70B+ "frontier" scale. Additionally, current FFT implementations in PyTorch are optimized for float32; adapting these for bfloat16 (the LLM training standard) could unlock further speed gains. Finally, the authors suggest exploring subspace stability to determine if column selections can be updated less frequently to save even more time.

Summary updated

BibTeX
@misc{modoranu2025svd,
  author = {Ionut-Vlad Modoranu and Mher Safaryan and Erik Schultheis and Dan Alistarh},
  title = {{SVD-Free Low-Rank Adaptive Gradient Optimization for Large Language Models}},
  year = {2025},
  eprint = {2505.17967},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17967},
}
Figure