CLLGOct 16, 2021

Sparse Distillation: Speeding Up Text Classification by Using Bigger Student Models

arXiv:2110.08536v2629 citations
Originality Highly original
AI Analysis

This addresses the need for faster inference in real-time or high-volume text classification applications, representing a novel approach rather than an incremental improvement.

The paper tackles the problem of slow inference speed in text classification by distilling teacher models into bigger, sparser student models, achieving up to 600x speed-up while retaining 97% of teacher performance on average.

Distilling state-of-the-art transformer models into lightweight student models is an effective way to reduce computation cost at inference time. The student models are typically compact transformers with fewer parameters, while expensive operations such as self-attention persist. Therefore, the improved inference speed may still be unsatisfactory for real-time or high-volume use cases. In this paper, we aim to further push the limit of inference speed by distilling teacher models into bigger, sparser student models -- bigger in that they scale up to billions of parameters; sparser in that most of the model parameters are n-gram embeddings. Our experiments on six single-sentence text classification tasks show that these student models retain 97% of the RoBERTa-Large teacher performance on average, and meanwhile achieve up to 600x speed-up on both GPUs and CPUs at inference time. Further investigation reveals that our pipeline is also helpful for sentence-pair classification tasks, and in domain generalization settings.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes