Backward-Friendly Optimization: Training Large Language Models with Approximate Gradients under Memory Constraints

Jing Yang, Kaitong Cai, Yijia Fan, Yufeng Yang, Keze WangarXiv 2025 · DOI

Introduction

Fine-tuning Large Language Models (LLMs) with billions of parameters presents a significant memory challenge. Standard optimization algorithms like Adam or SGD require "exact" gradients, necessitating the storage of all intermediate activations from the forward pass for use during backpropagation. This "activation bottleneck" often exceeds the VRAM capacity of a single GPU, forcing a choice between Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA—which may limit model expressiveness—or activation checkpointing, which trades memory for significantly increased training time due to recomputation.

GradLite addresses this by treating the optimizer not as a black box requiring perfect data, but as a robust system capable of handling "approximate" gradients. By designing a "backward-friendly" optimizer, the authors enable full-parameter fine-tuning while substantially reducing the memory footprint.

Methodology: The GradLite Optimizer

GradLite reduces memory usage during the backward pass through two integrated mechanisms:

  1. Low-Rank Jacobian Approximation: Instead of computing the full, high-dimensional gradient signal, GradLite projects the Jacobian matrix onto a low-dimensional subspace. This reduces the memory required for backpropagated error signals from $O(m)$ to $O(k)$, where $k$ is a small rank.
  2. Error-Feedback Correction: To mitigate the loss of information from low-rank approximation, GradLite maintains a residual accumulator ($r_t$). This accumulator stores the difference between the exact and approximate gradients, feeding this "error" back into the subsequent training step.
Figure 2: The GradLite algorithmic flow, highlighting the low-rank approximation and the error-feedback loop via the accumulator.

This combination ensures that while individual updates are approximate, the cumulative update remains unbiased. Theoretical analysis confirms that GradLite maintains a convergence rate of $O(1/\sqrt{T})$, matching standard optimizers like Adam.

Experimental Setup and Results

The researchers evaluated GradLite using the Qwen1.5-MoE-A2.7B model fine-tuned on the databricks-dolly-15k dataset. Performance was measured across several benchmarks, including MMLU (general reasoning), GSM8K (math), and MT-Bench (instruction following).

Performance Benchmarks

GradLite consistently outperformed both PEFT methods and other memory-efficient full-parameter tuning methods. On the MMLU benchmark, GradLite achieved 66.8%, surpassing the checkpointed baseline (66.1%) and competitors like GaLore (66.3%) and LoMo (66.2%).

Figure 4: Performance comparison of GradLite against base models, PEFT methods, and other full-parameter fine-tuning baselines across multiple benchmarks.

Efficiency Gains

Beyond raw performance, GradLite demonstrates significant practical advantages:

  • Memory Efficiency: It reduced peak VRAM usage by 41% compared to standard fine-tuning with activation checkpointing.
  • Speed: It achieved 27% higher throughput (samples/s) than the checkpointing baseline by avoiding redundant activation recomputations.

Key Insights

A critical finding from the ablation studies is the necessity of the error-feedback mechanism. Without it, MMLU performance dropped from 66.8% to 61.3%, highlighting that the feedback loop is essential for maintaining mathematical soundness during long-term training. By moving memory-saving logic into the optimizer, GradLite allows for aggressive activation compression without sacrificing the benefits of full-parameter updates.

Limitations and Future Work

While promising, GradLite's performance may be sensitive to the chosen rank $k$ for Jacobian approximation, which currently requires manual tuning. Additionally, while theoretical convergence is proven under standard convex assumptions, the non-convex nature of LLM training suggests a need for further specialized theoretical exploration. Future research could also investigate GradLite's scalability in large-scale distributed environments alongside tools like ZeRO or FSDP.

Summary updated

BibTeX
@misc{yang2025backward,
  author = {Jing Yang and Kaitong Cai and Yijia Fan and Yufeng Yang and Keze Wang},
  title = {{Backward-Friendly Optimization: Training Large Language Models with Approximate Gradients under Memory Constraints}},
  year = {2025},
  eprint = {2510.22467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22467},
}
Figure