The Journey Matters: Average Parameter Count over Pre-training Unifies Sparse and Dense Scaling Laws
Tian Jin, Ahmed Imtiaz Humayun, Utku Evci, Suvinay Subramanian, Amir Yazdanbakhsh, Dan Alistarh, Gintare Karolina Dziugaite
TL;DR
The paper tackles the high cost of scaling large language models and investigates sparse pre-training as a compute-efficient alternative. It introduces a unified scaling law using the average parameter count during training, $L(\bar{N},D) = \frac{A}{\bar{N}^\alpha} + \frac{B}{D^\beta} + E$, and validates it theoretically and empirically for both sparse and dense pre-training. Through an 80-schedule sweep and analysis of pruning dynamics, it identifies that starting pruning at 25% and ending at 75% of total compute yields near-optimal final loss, and that hyperparameters from dense pre-training transfer effectively. Practically, sparse pre-training matches final evaluation loss at equivalent compute with substantial reductions in final model size, enabling inference savings and broader compute efficiency.
Abstract
Pruning eliminates unnecessary parameters in neural networks; it offers a promising solution to the growing computational demands of large language models (LLMs). While many focus on post-training pruning, sparse pre-training--which combines pruning and pre-training into a single phase--provides a simpler alternative. In this work, we present the first systematic exploration of optimal sparse pre-training configurations for LLMs through an examination of 80 unique pruning schedules across different sparsity levels and training durations. We find that initiating pruning at 25% of total training compute and concluding at 75% achieves near-optimal final evaluation loss. These findings provide valuable insights for efficient and effective sparse pre-training of LLMs. Furthermore, we propose a new scaling law that modifies the Chinchilla scaling law to use the average parameter count over pre-training. Through empirical and theoretical validation, we demonstrate that this modified scaling law accurately models evaluation loss for both sparsely and densely pre-trained LLMs, unifying scaling laws across pre-training paradigms. Our findings indicate that while sparse pre-training achieves the same final model quality as dense pre-training for equivalent compute budgets, it provides substantial benefits through reduced model size, enabling significant potential computational savings during inference.
