CLOct 31, 2022

QuaLA-MiniLM: a Quantized Length Adaptive MiniLM

arXiv:2210.17114v33 citationsh-index: 13
Originality Incremental advance
AI Analysis

This work addresses computational budget constraints for deploying transformers in production, offering a flexible and efficient solution for NLP applications.

The authors tackled the problem of computational inefficiency in transformers for NLP tasks by developing QuaLA-MiniLM, a model that combines knowledge distillation, length adaptation, and quantization to achieve up to 8.8x speedup with less than 1% accuracy loss on SQuAD1.1.

Limited computational budgets often prevent transformers from being used in production and from having their high accuracy utilized. A knowledge distillation approach addresses the computational efficiency by self-distilling BERT into a smaller transformer representation having fewer layers and smaller internal embedding. However, the performance of these models drops as we reduce the number of layers, notably in advanced NLP tasks such as span question answering. In addition, a separate model must be trained for each inference scenario with its distinct computational budget. Dynamic-TinyBERT tackles both limitations by partially implementing the Length Adaptive Transformer (LAT) technique onto TinyBERT, achieving x3 speedup over BERT-base with minimal accuracy loss. In this work, we expand the Dynamic-TinyBERT approach to generate a much more highly efficient model. We use MiniLM distillation jointly with the LAT method, and we further enhance the efficiency by applying low-bit quantization. Our quantized length-adaptive MiniLM model (QuaLA-MiniLM) is trained only once, dynamically fits any inference scenario, and achieves an accuracy-efficiency trade-off superior to any other efficient approaches per any computational budget on the SQuAD1.1 dataset (up to x8.8 speedup with <1% accuracy loss). The code to reproduce this work is publicly available on Github.

Code Implementations2 repos
Foundations

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

Your Notes