TL;DR
This paper introduces a principled method for "upscaling" smaller, trained neural networks to larger ones, significantly reducing the computational cost of training larger models. The key innovation is a theoretically grounded approach to hyperparameter transfer, allowing optimal settings found on small models to be directly applied to much larger ones, a feat previously difficult due to the sensitivity of upscaling to these parameters.
What Problem Does This Paper Address?
Training large neural networks is computationally expensive, and often, multiple models of varying sizes are released to cater to different inference needs. A common efficiency strategy is "model upscaling," where a larger model is initialized from a smaller, already-trained one. However, this process is notoriously sensitive to hyperparameters (like learning rate and noise levels) that are crucial for efficient training. Tuning these hyperparameters at the scale of modern large models is prohibitively costly. While "scaling laws" can guide hyperparameter choices, their applicability to upscaling has been unclear, leading to heuristic-based approaches. This paper aims to bridge this gap by providing a theoretically sound framework for upscaling that enables reliable hyperparameter transfer, drastically reducing the tuning burden.
Methods
The core of the paper lies in establishing "dynamic equivalence" between a base model and its upscaled counterpart. This means not only do the models represent the same function at initialization (static equivalence), but they also follow identical training trajectories throughout the process, provided specific conditions are met.
The authors achieve this through:
- Function-Preserving Weight Transformations: Similar to prior work like Net2Net, they duplicate and rescale weights to expand the model's capacity.
- Theoretically Grounded Hyperparameter Scaling: Crucially, they leverage the $\mu$P (Maximal Update Parametrization) framework, which dictates how hyperparameters should scale with model width for optimal infinite-width dynamics. They show that by applying these $\mu$P-derived scalings to noise injection and optimizer hyperparameters, dynamic equivalence is maintained.
- Symmetry-Breaking Noise: To allow the upscaled model to actually utilize its increased capacity, a small amount of carefully scaled noise is injected. The scaling of this noise is also guided by $\mu$P.
- Tensor Programs: The theoretical underpinnings are formalized using the Tensor Program framework, which allows for a unified analysis across various architectures and optimizers.
Datasets
The authors evaluate their method on several standard datasets:
- Forest Cover Type: A tabular dataset for multiclass classification.
- CIFAR-100: An image classification dataset.
- FineWeb-Edu: A large-scale dataset for training language models (used for GPT-2 experiments).
Key Insights and Ideas
- Dynamic Equivalence is Key: Moving beyond static equivalence (same function at initialization) to dynamic equivalence (same training trajectory) is crucial for principled upscaling. This ensures that the benefits of warm-starting are realized throughout training.
- $\mu$P as the Unifying Principle: The $\mu$P framework, designed for optimal infinite-width dynamics, provides the theoretical backbone for scaling both model weights and hyperparameters during upscaling. This is the first time $\mu$P has been rigorously applied to the upscaling problem.
- Hyperparameter Transfer is Real (and Cheap): The most significant practical insight is that optimal hyperparameters (learning rate, noise level) can be tuned on small, inexpensive "proxy" upscaling systems and reliably transferred to much larger target models. This dramatically reduces the cost of hyperparameter optimization.
- Noise is Necessary, but Must Be Tuned: While noise is essential to unlock the expanded capacity of upscaled models, it must be carefully controlled. The paper shows that there's an optimal noise level, and deviating from it can lead to suboptimal performance.
Key Results
- Significant Speedups: The proposed method achieves substantial FLOPs speedups for hyperparameter tuning compared to Net2Net. For example, a 23.6x speedup for MLP, 16.0x for ResNet, and 48.2x for GPT-2.
- Faster Convergence and Lower Loss: Empirically, upscaled models consistently converge faster and reach lower training losses than models trained from scratch.
- Cost-Effective Upscaling: Even when accounting for the cost of training the base model and hyperparameter tuning, the upscaled models are significantly more compute-efficient than training from scratch. For GPT-2, the total cost (including tuning) was about 1.4x faster than training from scratch.
- Robust Hyperparameter Transfer: Experiments on MLPs and GPT-2 demonstrate that optimal hyperparameters tuned on small systems transfer reliably to larger ones.
Limitations and Future Work
- Generalization Gap: The paper focuses on training dynamics and does not directly address generalization. For datasets prone to overfitting (like CIFAR-100), upscaled models might show a larger generalization gap, and practitioners should exercise caution.
- $\mu$P Assumptions: The framework inherits $\mu$P's assumptions, which are rigorously proven for infinite-width limits but have limited formal proofs for hyperparameter transfer in finite-width settings.
- Width-Only Upscaling: The current work focuses on width upscaling. Extending the framework to joint width-and-depth upscaling is a natural next step.
- Tuning Width Requirement: For effective hyperparameter transfer, the initial "tuning width" ($n_0$) needs to be sufficiently large for $\mu$P's asymptotic behavior to be a good approximation. This makes the method most beneficial for very large target models.
- Computational Resources: Empirically validating the method, especially for large target widths, requires significant computational resources.
Summary updated