Stable and low-precision training for large-scale vision-language models
Mitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari Morcos, Ali, Farhadi, Ludwig Schmidt

TL;DR
This paper presents methods to accelerate and stabilize large-scale vision-language model training, introducing SwitchBack for efficient int8 quantized training and analyzing loss spikes to improve training stability.
Contribution
It introduces SwitchBack, a novel linear layer for int8 training that speeds up large model training with minimal performance loss, and provides insights into loss spike mitigation techniques.
Findings
SwitchBack achieves 13-25% speed-up with performance comparable to bfloat16.
Standard techniques work if large feature magnitudes are discouraged.
Hybrid optimizer reduces loss spikes and outperforms gradient clipping.
Abstract
We introduce new methods for 1) accelerating and 2) stabilizing training for large language-vision models. 1) For acceleration, we introduce SwitchBack, a linear layer for int8 quantized training which provides a speed-up of 13-25% while matching the performance of bfloat16 training within 0.1 percentage points for the 1B parameter CLIP ViT-Huge -- the largest int8 training to date. Our main focus is int8 as GPU support for float8 is rare, though we also analyze float8 training through simulation. While SwitchBack proves effective for float8, we show that standard techniques are also successful if the network is trained and initialized so that large feature magnitudes are discouraged, which we accomplish via layer-scale initialized with zeros. 2) For stability, we analyze loss spikes and find they consistently occur 1-8 iterations after the squared gradients become under-estimated by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Topic Modeling · Natural Language Processing Techniques
MethodsGradient Clipping · Linear Layer · Contrastive Language-Image Pre-training · AdamW
