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
- Luke S. Zettlemoyer
- Ali Farhadi
- Ludwig Schmidt
- Tim Dettmers
- Mitchell Wortsman
- Percy Liang
- Mohit Bansal
- Hannaneh Hajishirzi
In Computer Vision and Pattern Recognition
- Ali Farhadi
- Luke S. Zettlemoyer
- Luc Van Gool
- Mitchell Wortsman
- Trevor Darrell
- Ming-Hsuan Yang
- Ludwig Schmidt
- Dacheng Tao
In Statistical and Nonlinear Physics
In Efficiency & Compression
- Luke S. Zettlemoyer
- Tim Dettmers
- Mitchell Wortsman
- Ali Farhadi
- Ludwig Schmidt
- Ari S. Morcos
- Dan Alistarh
- Elias Frantar
In Optimization & Training
- Luke S. Zettlemoyer
- Tim Dettmers
- Ali Farhadi
- Ludwig Schmidt
- Ari S. Morcos
- Mitchell Wortsman
- Torsten Hoefler
- Tal Ben-Nun
Citations in the corpus
- Stable and low-precision training for large-scale vision-language models (2023, background): “Another line of work is centered around 8-bit float data types which can be used to accelerate training of neural networks [21, 56, 62, 38, 3].”