2019 · 31 citations · 11 references
ComputingComputer EngineeringComputer ScienceArtificial IntelligenceMachine LearningNatural Language ProcessingDeep LearningHardware AccelerationLanguage ModelingNatural Language GenerationFine-tuningLanguage Model Fine-tuningLanguage Model PretrainingLarge Language ModelsModel CompressionQuantizationTransformer Language ModelsTransformer Models
Pre‑trained Transformer models such as BERT and GPT have improved many NLP tasks but are large and resource‑intensive, making deployment challenging. The study aims to compress BERT by 4× with minimal accuracy loss using quantization‑aware training during fine‑tuning. This is accomplished by applying quantization‑aware training during the fine‑tuning phase of BERT. The resulting quantized model can accelerate inference speed on 8‑bit integer hardware.
Recently, pre-trained Transformer based language models such as BERT and GPT, have shown great improvement in many Natural Language Processing (NLP) tasks. However, these models contain a large amount of parameters. The emergence of even larger and more accurate models such as GPT2 and Megatron, suggest a trend of large pre-trained Transformer models. However, using these large models in production environments is a complex task requiring a large amount of compute, memory and power resources. In this work we show how to perform quantization-aware training during the fine-tuning phase of BERT in order to compress BERT by $4\times$ with minimal accuracy loss. Furthermore, the produced quantized model can accelerate inference speed if it is optimized for 8bit Integer supporting hardware.
11
SQuAD: 100,000+ Questions for Machine Comprehension of Text
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev et al. · 2016 · 6.3K citations · Full text