Search papers, labs, and topics across Lattice.
This paper introduces a spectral conditions-based framework to derive maximal update parameterization ($μ$P) rules for a wider range of optimizers beyond SGD and Adam, addressing the challenge of hyperparameter tuning for large language models. The framework leverages spectral properties of weight matrices to determine appropriate scaling rules that ensure optimal hyperparameters remain consistent across different model sizes. The authors demonstrate successful zero-shot learning rate transfer across increasing model widths for optimizers like AdamW, ADOPT, LAMB, Sophia, Shampoo, and Muon, validating the derived $μ$P rules.
Forget tedious hyperparameter tuning: this spectral approach lets you transfer learning rates across model sizes for optimizers like AdamW and LAMB, making large-scale training far more efficient.
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.