Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration
Bruno Mlodozeniec, Pierre Ablin, Louis Béthune, Dan Busbridge, Michal Klein, Jason Ramapuram, Marco Cuturi
TL;DR
The paper addresses the high cost and fragility of hyperparameter tuning for large-scale transformers by introducing Complete(d)P, a unified parameterisation that enables transfer of both global and per-module hyperparameters across width, depth, batch size, and token horizon. It extends this framework with QK-normalisation adaptations, embedding-scaled dynamics, and a depth-Kronecker per-module HP scheme, then validates transferability across scales and compute horizons, achieving significant speed-ups (e.g., ~27% in large-scale settings) over global baselines. A key finding is that per-module HPs not only transfer but can be optimised at small scales to yield large-scale benefits, and that a careful SDE-based reparameterisation under batch-size and horizon scaling preserves training dynamics. Together, these contributions offer a practical recipe to reduce compute waste in HP search and to realize faster, more stable large-scale training for transformer models.
Abstract
Hyperparameter tuning can dramatically impact training stability and final performance of large-scale models. Recent works on neural network parameterisations, such as $μ$P, have enabled transfer of optimal global hyperparameters across model sizes. These works propose an empirical practice of search for optimal global base hyperparameters at a small model size, and transfer to a large size. We extend these works in two key ways. To handle scaling along most important scaling axes, we propose the Complete$^{(d)}$ Parameterisation that unifies scaling in width and depth -- using an adaptation of CompleteP -- as well as in batch-size and training duration. Secondly, with our parameterisation, we investigate per-module hyperparameter optimisation and transfer. We characterise the empirical challenges of navigating the high-dimensional hyperparameter landscape, and propose practical guidelines for tackling this optimisation problem. We demonstrate that, with the right parameterisation, hyperparameter transfer holds even in the per-module hyperparameter regime. Our study covers an extensive range of optimisation hyperparameters of modern models: learning rates, AdamW parameters, weight decay, initialisation scales, and residual block multipliers. Our experiments demonstrate significant training speed improvements in Large Language Models with the transferred per-module hyperparameters.
