BEBERT: Efficient and Robust Binary Ensemble BERT
arXiv:2210.15976 · doi:10.1109/ICASSP49357.2023.10096223
Abstract
Pre-trained BERT models have achieved impressive accuracy on natural language processing (NLP) tasks. However, their excessive amount of parameters hinders them from efficient deployment on edge devices. Binarization of the BERT models can significantly alleviate this issue but comes with a severe accuracy drop compared with their full-precision counterparts. In this paper, we propose an efficient and robust binary ensemble BERT (BEBERT) to bridge the accuracy gap. To the best of our knowledge, this is the first work employing ensemble techniques on binary BERTs, yielding BEBERT, which achieves superior accuracy while retaining computational efficiency. Furthermore, we remove the knowledge distillation procedures during ensemble to speed up the training process without compromising accuracy. Experimental results on the GLUE benchmark show that the proposed BEBERT significantly outperforms the existing binary BERT models in accuracy and robustness with a 2x speedup on training time. Moreover, our BEBERT has only a negligible accuracy loss of 0.3% compared to the full-precision baseline while saving 15x and 13x in FLOPs and model size, respectively. In addition, BEBERT also outperforms other compressed BERTs in accuracy by up to 6.7%.
arXiv commentTo appear in 2023 IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP 2023)
References in corpus (7)
- Distilling the Knowledge in a Neural Network
- MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers
- Q8BERT: Quantized 8Bit BERT
- Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning
- DynaBERT: Dynamic BERT with Adaptive Width and Depth
- An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformers
- BiBERT: Accurate Fully Binarized BERT
Cited by in corpus (6)
- A Precision-Scalable RISC-V DNN Processor with On-Device Learning Capability at the Extreme Edge
- Anda: Unlocking Efficient LLM Inference with a Variable-Length Grouped Activation Data Format
- A Scalable RISC-V Vector Processor Enabling Efficient Multi-Precision DNN Inference
- SPEED: A Scalable RISC-V Vector Processor Enabling Efficient Multi-Precision DNN Inference
- BETA: Binarized Energy-Efficient Transformer Accelerator at the Edge
- Co-Designing Binarized Transformer and Hardware Accelerator for Efficient End-to-End Edge Deployment