General Purpose Text Embeddings from Pre-trained Language Models for Scalable Inference
Jingfei Du, Myle Ott, Haoran Li, Xing Zhou, Veselin Stoyanov

TL;DR
This paper presents a multi-task pre-trained text encoder that enables scalable inference by amortizing computational costs, extracting compact representations, and maintaining high accuracy across multiple NLP tasks.
Contribution
It introduces a multi-task pre-training approach for text encoders that generalizes well, with methods for efficient representation extraction and size reduction, reducing inference costs.
Findings
Pre-trained multi-task encoders outperform knowledge distillation in accuracy and efficiency.
Binary quantization reduces representation size by a factor of 16.
The approach is effective for handling around 7 tasks simultaneously.
Abstract
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 explore a setting where many different predictions are made on a single piece of text. In that case, some of the computational cost during inference can be amortized over the different 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 different ways of 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…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
