General Purpose Text Embeddings from Pre-trained Language Models for Scalable Inference
By Jingfei Du, Myle Ott, Haoran Li, Xing Zhou, Veselin Stoyanov. 2020
10 citations recorded by the source corpus.
The state of the art on many NLP tasks is currently achieved by large pre-trained language models, which require a considerable amount of computation. We aim to reduce the inference cost in a setting where many different predictions are made on a single piece of text. In that case, computational cost during inference can be amortized over the different predictions (tasks) using a shared text encoder. We compare approaches for training such an encoder and show that encoders pre-trained over multiple tasks generalize well to unseen tasks. We also compare ways of extracting fixed- and limited-size representations from this encoder, including pooling features extracted from multiple layers or positions. Our best approach compares favorably to knowledge distillation, achieving higher accuracy and lower computational cost once the system is handling around 7 tasks. Further, we show that through binary quantization, we can reduce the size of the extracted representations by a factor of 16 to store them for later use. The resulting method offers a compelling solution for using large-scale pre-trained models at a fraction of the computational cost when multiple tasks are performed on the same text.
Subfields: Natural Language Processing, Representation & Self-Supervised Learning
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Natural Language Processing
- Luke S. Zettlemoyer
- Mohit Bansal
- Robin Jia
- Michael Lewis
- Percy Liang
- Yejin Choi
- Jonathan Berant
- Samuel R. Bowman
In Representation & Self-Supervised Learning
- Michael Lewis
- Robin Jia
- Luke S. Zettlemoyer
- Emily M. Bender
- Emily L. Denton
- Samuel R. Bowman
- Furu Wei
- Graham Neubig
Citations in the corpus
- AI and the Everything in the Whole Wide World Benchmark (2021, background): “Here, the goal is the development of representations — through either unsupervised or supervised means — that can generalize (with minimal fine-tuning) to a wide range of other tasks they were not specifically developed for [e.g. Huh et al., 2016, Du et al., 2020, Bommasani et al., 2021].”
- Question Answering Infused Pre-training of General-Purpose Contextualized Representations (2021, methodology): “Freezing the encoder is often useful in practice, particularly for large models, as the same model can be reused for many tasks (Brown et al., 2020; Du et al., 2020).”