Extending $μ$P: Spectral Conditions for Feature Learning Across Optimizers
This work addresses the computationally expensive problem of hyperparameter tuning for machine learning practitioners training large models, offering an incremental improvement by extending an existing method to a broader class of optimizers.
The paper tackles the challenge of hyperparameter tuning for various optimizers in large-scale model training by extending the Maximal Update Parameterization (μP) framework using spectral conditions, enabling zero-shot learning rate transfer across model widths for optimizers like AdamW, LAMB, and Sophia with demonstrated empirical results.
Several variations of adaptive first-order and second-order optimization methods have been proposed to accelerate and scale the training of large language models. The performance of these optimization routines is highly sensitive to the choice of hyperparameters (HPs), which are computationally expensive to tune for large-scale models. Maximal update parameterization $(μ$P$)$ is a set of scaling rules which aims to make the optimal HPs independent of the model size, thereby allowing the HPs tuned on a smaller (computationally cheaper) model to be transferred to train a larger, target model. Despite promising results for SGD and Adam, deriving $μ$P for other optimizers is challenging because the underlying tensor programming approach is difficult to grasp. Building on recent work that introduced spectral conditions as an alternative to tensor programs, we propose a novel framework to derive $μ$P for a broader class of optimizers, including AdamW, ADOPT, LAMB, Sophia, Shampoo and Muon. We implement our $μ$P derivations on multiple benchmark models and demonstrate zero-shot learning rate transfer across increasing model width for the above optimizers. Further, we provide empirical insights into depth-scaling parameterization for these optimizers.