NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scaling

Qiao Xiao, Boqian Wu, Patrik Okanovic, Tomasz Sternal, Maurice van Keulen, Elena Mocanu, Mykola Pechenizkiy, Decebal Constantin Mocanu, Torsten Hoefler

Abstract

Training Large Language Models (LLMs) requires massive computational and memory resources. While Dynamic Sparse Training (DST) offers a promising way to reduce these costs by maintaining a sparse network during training, applying DST to LLMs often results in severe optimization instability—specifically, violent loss spikes after topology updates. The proposed Sparse Memory-Efficient Training (SMET) framework addresses this "cold-start" problem through optimizer warm-up and density-aware learning rate scaling. By storing gradients and optimizer states only for active parameters, SMET enables highly sparse, stable pre-training that matches dense model performance at a fraction of the memory cost.

The Problem: Instability in Dynamic Sparse Training

Training LLMs is a memory-intensive endeavor, largely due to the massive footprint of optimizer states (such as those required by Adam) and gradients. Dynamic Sparse Training (DST) mitigates this by training a sparse network instead of a full dense model. Throughout training, DST periodically "prunes" unimportant weights and "regrows" new ones, allowing the model to explore better architectures dynamically.

However, applying DST to LLMs has historically hit a wall: optimization instability. Every time the model's topology updates and new weights are regrown, the training loss spikes violently, creating a jagged, "sawtooth" loss curve that hinders convergence.

The authors identify the root cause as a "cold-start" problem. In standard Adam optimizers, newly regrown weights lack historical gradient information. Because Adam's bias correction assumes these weights have been present since the first step, it applies updates to them that are roughly 3.16 times larger than the intended learning rate. These massive updates to "infant" weights disrupt the entire model's equilibrium.

Methodology: Sparse Memory-Efficient Training (SMET)

To stabilize training and realize true memory savings, the authors introduce SMET, which relies on three key innovations:

  1. Optimizer-State Warm-up: To fix the cold-start issue, SMET resets the local timestep specifically for newly regrown parameters. This reactivates Adam's internal bias correction for these weights, ensuring their initial updates are small and properly calibrated. This is paired with a linear learning rate warm-up for the new connections.
  2. Density-Aware Learning-Rate Scaling: Sparse layers naturally have a smaller "fan-in" (fewer incoming connections). To maintain the same update dynamics as a dense model, SMET scales the learning rate by $1/\sqrt{d}$, where $d$ is the layer's density. This compensates for both the conservative updates of the warm-up phase and the altered parameterization of the sparse regime.
  3. True Memory-Efficient Implementation: Many DST studies use "binary masks" over full-sized tensors, which fails to save actual memory during training. SMET utilizes an index-based representation to store gradients and optimizer states only for active parameters. For a layer operating at 10% density, its optimizer memory footprint is reduced by nearly 90%.

Experimental Setup

The researchers evaluated SMET across a range of LLaMA-based architectures (from 60M to 1B parameters) and a Qwen-0.6B model. Pre-training evaluations were conducted using the C4 dataset (the cleaned English version of Common Crawl) as the primary benchmark, with OpenWebText used to verify generalization across different text corpora.

Key Insights and Results

  • Sparsity Scales Well with Model Size: One of the most encouraging findings is that larger models are significantly more tolerant of sparsity. While a 130M parameter model shows a noticeable performance gap when made sparse, a 1B parameter model trained with SMET achieves a validation perplexity of 15.61, nearly matching the 15.56 perplexity of its full dense counterpart.
  • Superiority over Baselines: In pre-training scenarios, SMET consistently outperformed other popular parameter-efficient and memory-efficient methods, including LoRA, ReLoRA, and GaLore.
  • Massive Memory Savings: By storing states exclusively for active weights, SMET drastically reduces the memory required for optimization and gradients. At 10% density, the memory footprint for these components drops by an order of magnitude.
  • Block-Wise Flexibility and Inference Speedups: SMET is highly effective with block-wise sparsity (e.g., $32 \times 32$ blocks), which is much easier for modern GPUs to accelerate than unstructured random sparsity. Using this block-wise approach, the authors demonstrated practical inference speedups of 1.3x to 1.6x on real hardware.

Limitations and Future Directions

While SMET elegantly solves the parameter sparsity problem, a few hurdles remain for fully optimized sparse training:

  • Activation Memory and KV-Cache: SMET focuses on reducing the memory of weights, gradients, and optimizer states. However, "activation memory" (data stored during the forward pass) and the KV-cache (during inference) remain significant bottlenecks that require separate solutions.
  • Hardware Dependency: Achieving proportional training speedups (beyond just memory savings) still requires more mature, specialized GPU kernels designed for fine-grained sparse operations.
  • Optimizer Scope: The theoretical analysis and cold-start fixes are currently tailored to Adam-based optimizers. Future research is needed to determine if similar instability effects exist in other optimization schemes.

Summary updated

BibTeX
@inproceedings{xiao2026memory,
  author = {Qiao Xiao and Boqian Wu and Patrik Okanovic and Tomasz Sternal and Maurice van Keulen and Elena Mocanu and Mykola Pechenizkiy and Decebal Constantin Mocanu and Torsten Hoefler},
  title = {{Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scaling}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ivVPgBZewP},
}
Figure