CLAIJun 30, 2022

Compressing Pre-trained Transformers via Low-Bit NxM Sparsity for Natural Language Understanding

arXiv:2206.15014v13 citationsh-index: 25
Originality Incremental advance
AI Analysis

This addresses the problem of high latency and cost in deploying large NLP models for practitioners, though it is incremental as it builds on existing compression techniques.

The paper tackles the challenge of compressing large pre-trained Transformer models for efficient deployment by proposing a framework that combines N:M sparsity and low-precision quantization, achieving up to 93% compression on BERT encoders while retaining 98.2% of original accuracy.

In recent years, large pre-trained Transformer networks have demonstrated dramatic improvements in many natural language understanding tasks. However, the huge size of these models brings significant challenges to their fine-tuning and online deployment due to latency and cost constraints. New hardware supporting both N:M semi-structured sparsity and low-precision integer computation is a promising solution to boost DNN model serving efficiency. However, there have been very few studies that systematically investigate to what extent pre-trained Transformer networks benefit from the combination of these techniques, as well as how to best compress each component of the Transformer. We propose a flexible compression framework NxMiFormer that performs simultaneous sparsification and quantization using ADMM and STE-based QAT. Furthermore, we present and inexpensive, heuristic-driven search algorithm that identifies promising heterogeneous compression configurations that meet a compression ratio constraint. When evaluated across the GLUE suite of NLU benchmarks, our approach can achieve up to 93% compression of the encoders of a BERT model while retaining 98.2% of the original model accuracy and taking full advantage of the hardware's capabilities. Heterogeneous configurations found the by the search heuristic maintain 99.5% of the baseline accuracy while still compressing the model by 87.5%.

Foundations

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

Your Notes