RefBERT: Compressing BERT by Referencing to Pre-computed Representations
Xinyi Wang, Haiqin Yang, Liang Zhao, Yang Mo, Jianping Shen

TL;DR
RefBERT introduces a novel approach to compress BERT models by leveraging pre-computed teacher representations on reference samples, significantly reducing size and inference time while maintaining high performance.
Contribution
The paper proposes RefBERT, a method that uses reference sample representations to enhance BERT compression, backed by theoretical analysis and empirical validation.
Findings
RefBERT outperforms TinyBERT by 8.1% on GLUE.
RefBERT is 7.4 times smaller and 9.5 times faster than BERT_BASE.
Theoretical analysis shows increased mutual information from reference representations.
Abstract
Recently developed large pre-trained language models, e.g., BERT, have achieved remarkable performance in many downstream natural language processing applications. These pre-trained language models often contain hundreds of millions of parameters and suffer from high computation and latency in real-world applications. It is desirable to reduce the computation overhead of the models for fast training and inference while keeping the model performance in downstream applications. Several lines of work utilize knowledge distillation to compress the teacher model to a smaller student model. However, they usually discard the teacher's knowledge when in inference. Differently, in this paper, we propose RefBERT to leverage the knowledge learned from the teacher, i.e., facilitating the pre-computed BERT representation on the reference sample and compressing BERT into a smaller student model. To…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Knowledge Distillation · Adam · Layer Normalization · WordPiece · Refunds@Expedia|||How do I get a full refund from Expedia? · Linear Warmup With Linear Decay · Residual Connection
