Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer

By Greg Yang, J. Edward Hu, Igor Babuschkin, Szymon Sidor, Xiaodong Liu, David Farhi, Nick Ryder, Jakub W. Pachocki, Weizhu Chen, Jianfeng Gao. 2022

295 citations recorded by the source corpus.

Hyperparameter (HP) tuning in deep learning is an expensive process, prohibitively so for neural networks (NNs) with billions of parameters. We show that, in the recently discovered Maximal Update Parametrization (muP), many optimal HPs remain stable even as model size changes. This leads to a new HP tuning paradigm we call muTransfer: parametrize the target model in muP, tune the HP indirectly on a smaller model, and zero-shot transfer them to the full-sized model, i.e., without directly tuning the latter at all. We verify muTransfer on Transformer and ResNet. For example, 1) by transferring pretraining HPs from a model of 13M parameters, we outperform published numbers of BERT-large (350M parameters), with a total tuning cost equivalent to pretraining BERT-large once; 2) by transferring from 40M parameters, we outperform published numbers of the 6.7B GPT-3 model, with tuning cost only 7% of total pretraining cost. A Pytorch implementation of our technique can be found at github.com/microsoft/mup and installable via `pip install mup`.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Hardware and Architecture, Model Architectures, Scaling & Learning Theory

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Maosong Sun
  2. Abhradeep Thakurta
  3. Xu Han
  4. Zhiyuan Liu
  5. Zheng Xu
  6. H. Brendan McMahan
  7. Ning Ding
  8. Steve Chien

In Computer Vision and Pattern Recognition

  1. Xu Han
  2. Abhradeep Thakurta
  3. Steve Chien
  4. Can Xu
  5. Vishrav Chaudhary
  6. Yuan Yao
  7. Zheng Xu
  8. H. Brendan McMahan

In Hardware and Architecture

  1. Sho Yaida
  2. Vishrav Chaudhary
  3. H. Brendan McMahan
  4. Alexey Kurakin
  5. Sergei Vassilvitskii
  6. Nikos Karampatziakis
  7. Jiahang Xu
  8. Li Lyna Zhang

In Model Architectures

  1. Vishrav Chaudhary
  2. Zheng Xu
  3. H. Brendan McMahan
  4. Alexey Kurakin
  5. Shengding Hu
  6. Maosong Sun
  7. Susan Zhang
  8. Young Jin Kim

In Scaling & Learning Theory

  1. Yuan Yao
  2. Zheng Xu
  3. H. Brendan McMahan
  4. Alexey Kurakin
  5. Sergei Vassilvitskii
  6. Sébastien Bubeck
  7. Steve Chien
  8. Susan Zhang

Citations in the corpus