An Empirical Study of μP Learning Rate Transfer

Lucas Lingle
4/8/2024
9 citations
cs.LG

Official code: lucaslingle/mu_transformer (32 stars, Python, Apache-2.0, last commit 2025-06-05).

Abstract

Deep learning models have become a cornerstone of modern AI research, yet their initializations and learning rates may at times be set in an opaque or ad-hoc fashion due to the high cost of hyperparameter sweeps. The $μ$-Parameterization ($μ$P) offers a possible solution to this challenge, yielding scaling rules for model initialization and learning rates while reportedly enabling zero-shot hyperparameter transfer from small to large models.

Show full abstract

Despite its evident promise, the $μ$P method is not yet widely adopted, perhaps due to higher implementation complexity, many variations, or complex theoretical background. This work considers $μ$P empirically, focusing on the popular transformer architecture, and aims to answer a simple question: does $μ$-Transfer yield near-optimal learning rates in practice? Studying over a dozen ablations with up to 1.2B parameters and 33B tokens and a large-scale experiment with up to 10B parameters and 190B tokens, we observe a positive answer for most settings, and discuss improvements otherwise.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of 'A Large-Scale Exploration of mu-Transfer'

321Python, ShellDec 28, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{lingle2024empirical,
  title  = {An Empirical Study of μP Learning Rate Transfer},
  author = {Lucas Lingle},
  year   = {2024},
  eprint = {2404.05728},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.05728v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.05728.svg)](https://codeofpaper.com/paper/2404.05728)

Discussion