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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yang, Jing, Cai, Kaitong, Fan, Yijia, Yang, Yufeng, Wang, Keze
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911231659474944
author Yang, Jing
Cai, Kaitong
Fan, Yijia
Yang, Yufeng
Wang, Keze
author_facet Yang, Jing
Cai, Kaitong
Fan, Yijia
Yang, Yufeng
Wang, Keze
contents Full fine-tuning of Large Language Models (LLMs) is notoriously memory-intensive, primarily because conventional optimizers such as SGD or Adam assume access to exact gradients derived from cached activations. Existing solutions either alter the model architecture (e.g., reversible networks) or trade memory for computation (e.g., activation checkpointing), but the optimizer itself remains untouched. In this work, we introduce GradLite, a backward-friendly optimizer that relaxes the requirement of exact gradients, enabling efficient training even when intermediate activations are aggressively discarded or approximated. GradLite leverages two key techniques: (i) low-rank Jacobian approximation, which reduces the dimensionality of backpropagated error signals, and (ii) error-feedback correction, which accumulates and compensates approximation errors across iterations to preserve convergence guarantees. We provide a theoretical analysis showing that GradLite maintains unbiased gradient estimates with bounded variance, ensuring convergence rates comparable to Adam. Empirically, GradLite reduces optimizer-state and activation memory consumption by up to 50\% without architectural changes, and achieves on-par or superior downstream performance on reasoning (MMLU, GSM8K), multilingual, and dialogue benchmarks compared to checkpointing and optimizer-centric baselines (LoMo, GaLore).
format Preprint
id arxiv_https___arxiv_org_abs_2510_22467
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Backward-Friendly Optimization: Training Large Language Models with Approximate Gradients under Memory Constraints
Yang, Jing
Cai, Kaitong
Fan, Yijia
Yang, Yufeng
Wang, Keze
Machine Learning
Artificial Intelligence
Full fine-tuning of Large Language Models (LLMs) is notoriously memory-intensive, primarily because conventional optimizers such as SGD or Adam assume access to exact gradients derived from cached activations. Existing solutions either alter the model architecture (e.g., reversible networks) or trade memory for computation (e.g., activation checkpointing), but the optimizer itself remains untouched. In this work, we introduce GradLite, a backward-friendly optimizer that relaxes the requirement of exact gradients, enabling efficient training even when intermediate activations are aggressively discarded or approximated. GradLite leverages two key techniques: (i) low-rank Jacobian approximation, which reduces the dimensionality of backpropagated error signals, and (ii) error-feedback correction, which accumulates and compensates approximation errors across iterations to preserve convergence guarantees. We provide a theoretical analysis showing that GradLite maintains unbiased gradient estimates with bounded variance, ensuring convergence rates comparable to Adam. Empirically, GradLite reduces optimizer-state and activation memory consumption by up to 50\% without architectural changes, and achieves on-par or superior downstream performance on reasoning (MMLU, GSM8K), multilingual, and dialogue benchmarks compared to checkpointing and optimizer-centric baselines (LoMo, GaLore).
title Backward-Friendly Optimization: Training Large Language Models with Approximate Gradients under Memory Constraints
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2510.22467