Train Large, Then Compress: Rethinking Model Size for Efficient Training and Inference of Transformers

By Zhuohan Li, Eric Wallace, Sheng Shen, Kevin Lin, Kurt Keutzer, Daniel Klein, Joseph E. Gonzalez. 2020

157 citations recorded by the source corpus.

Since hardware resources are limited, the objective of training deep learning models is typically to maximize accuracy subject to the time and memory constraints of training and inference. We study the impact of model size in this setting, focusing on Transformer models for NLP tasks that are limited by compute: self-supervised pretraining and high-resource machine translation. We first show that even though smaller Transformer models execute faster per iteration, wider and deeper models converge in significantly fewer steps. Moreover, this acceleration in convergence typically outpaces the additional computational overhead of using larger models. Therefore, the most compute-efficient training strategy is to counterintuitively train extremely large models but stop after a small number of iterations. This leads to an apparent trade-off between the training efficiency of large Transformer models and the inference efficiency of small Transformer models. However, we show that large models are more robust to compression techniques such as quantization and pruning than small models. Consequently, one can get the best of both worlds: heavily compressed, large models achieve higher accuracy than lightly compressed, small models.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Efficiency & Compression

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. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Jianfeng Gao
  4. Percy Liang
  5. Graham Neubig
  6. Yejin Choi
  7. Noah A. Smith
  8. Quoc V. Le

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Mohit Bansal
  3. Trevor Darrell
  4. Dacheng Tao
  5. Xiaogang Wang
  6. Cordelia Schmid
  7. Jitendra Malik
  8. Andrew Zisserman

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Michael Lewis
  4. Yi Tay
  5. Yejin Choi
  6. Armen Aghajanyan
  7. Myle Ott
  8. Donald Metzler

In Efficiency & Compression

  1. Dan Alistarh
  2. Alexander M. Rush
  3. Jonathan Frankle
  4. Victor Sanh
  5. Luke S. Zettlemoyer
  6. Michael Carbin
  7. Mohit Bansal
  8. Sara Hooker

Citations in the corpus