Unit Scaling: Out-of-the-Box Low-Precision Training

By Charlie Blake, Douglas Orr, Carlo Luschi. 2023

20 citations recorded by the source corpus.

We present unit scaling, a paradigm for designing deep learning models that simplifies the use of low-precision number formats. Training in FP16 or the recently proposed FP8 formats offers substantial efficiency gains, but can lack sufficient range for out-of-the-box training. Unit scaling addresses this by introducing a principled approach to model numerics: seeking unit variance of all weights, activations and gradients at initialisation. Unlike alternative methods, this approach neither requires multiple training runs to find a suitable scale nor has significant computational overhead. We demonstrate the efficacy of unit scaling across a range of models and optimisers. We further show that existing models can be adapted to be unit-scaled, training BERT-Large in FP16 and then FP8 with no degradation in accuracy.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Statistical and Nonlinear Physics, Efficiency & Compression, Optimization & Training

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. Luke S. Zettlemoyer
  2. Ali Farhadi
  3. Ludwig Schmidt
  4. Tim Dettmers
  5. Mitchell Wortsman
  6. Percy Liang
  7. Mohit Bansal
  8. Hannaneh Hajishirzi

In Computer Vision and Pattern Recognition

  1. Ali Farhadi
  2. Luke S. Zettlemoyer
  3. Luc Van Gool
  4. Mitchell Wortsman
  5. Trevor Darrell
  6. Ming-Hsuan Yang
  7. Ludwig Schmidt
  8. Dacheng Tao

In Statistical and Nonlinear Physics

  1. Ali Farhadi
  2. Ludwig Schmidt
  3. Luke S. Zettlemoyer
  4. Tim Dettmers
  5. Ari S. Morcos
  6. Mitchell Wortsman

In Efficiency & Compression

  1. Luke S. Zettlemoyer
  2. Tim Dettmers
  3. Mitchell Wortsman
  4. Ali Farhadi
  5. Ludwig Schmidt
  6. Ari S. Morcos
  7. Dan Alistarh
  8. Elias Frantar

In Optimization & Training

  1. Luke S. Zettlemoyer
  2. Tim Dettmers
  3. Ali Farhadi
  4. Ludwig Schmidt
  5. Ari S. Morcos
  6. Mitchell Wortsman
  7. Torsten Hoefler
  8. Tal Ben-Nun

Citations in the corpus