Sparse maximal update parameterization: A holistic approach to sparse training dynamics

Nolan Dey, Shane Bergsma, Joel Hestness
5/24/2024
cs.LG

Official code: EleutherAI/nanoGPT-mup (206 stars, MIT, last commit 2026-01-19).

Abstract

Several challenges make it difficult for sparse neural networks to compete with dense models. First, setting a large fraction of weights to zero impairs forward and gradient signal propagation. Second, sparse studies often need to test multiple sparsity levels, while also introducing new hyperparameters (HPs), leading to prohibitive tuning costs. Indeed, the standard practice is to re-use the learning HPs originally crafted for dense models. Unfortunately, we show sparse and dense networks do not share the same optimal HPs. Without stable dynamics and effective training recipes, it is costly to test sparsity at scale, which is key to surpassing dense networks and making the business case for sparsity acceleration in hardware. A holistic approach is needed to tackle these challenges and we propose S$μ$Par as one such approach. For random unstructured static sparsity, S$μ$Par ensures activations, gradients, and weight updates all scale independently of sparsity level. Further, by reparameterizing the HPs, S$μ$Par enables the same HP values to be optimal as we vary both sparsity level and model width. HPs can be tuned on small dense networks and transferred to large sparse models, greatly reducing tuning costs. On large-scale language modeling, S$μ$Par shows increasing improvements over standard parameterization as sparsity increases, leading up to 11.9% relative loss improvement at 99.2% sparsity. A minimal implementation of S$μ$Par is available at https://github.com/EleutherAI/nanoGPT-mup/tree/supar.

View on arXivView PDF

Code Implementations(1)

MIT

The simplest, fastest repository for training/finetuning medium-sized GPTs.

20624Shell, PythonJun 25, 20249 months agoMIT

Similar Papers

Cite this paper

@article{dey2024sparse,
  title  = {Sparse maximal update parameterization: A holistic approach to sparse training dynamics},
  author = {Nolan Dey and Shane Bergsma and Joel Hestness},
  year   = {2024},
  eprint = {2405.15743},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.15743},
  url    = {http://arxiv.org/abs/2405.15743v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15743.svg)](https://codeofpaper.com/paper/2405.15743)

Discussion