DRONE: Data-aware Low-rank Compression for Large NLP Models
Patrick H. Chen, Hsiang-Fu Yu, Inderjit S. Dhillon, Cho-Jui Hsieh
Abstract
The representations learned by large-scale NLP models such as BERT have been widely used in various tasks. However, the increasing model size of the pre-trained models also brings efficiency challenges, including inference speed and model size when deploying models on mobile devices. Specifically, most operations in BERT consist of matrix multiplications. These matrices are not low-rank and thus canonical matrix decompositions do not lead to efficient approximations. In this paper, we observe that the learned representation of each layer lies in a lowdimensional space. Based on this observation, we propose DRONE (data-aware low-rank compression), a provably optimal low-rank decomposition of weight matrices, which has a simple closed form solution that can be efficiently computed. DRONE can be applied to both fully-connected and self-attention layers appearing in the BERT model. In addition to compressing standard models, our method can also be used on distilled BERT models to further improve the compression rate. Experimental results show that DRONE is able to improve both model size and inference speed with limited loss in accuracy. Specifically, DRONE alone achieves 1.92x speedup on the MRPC task with only 1.5% loss in accuracy, and when DRONE is combined with distillation, it further achieves over 12.3x speedup on various natural language inference tasks.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Movement Pruning: Adaptive Sparsity by Fine-Tuning cites Language Models are Few-Shot Learners
- The Lottery Ticket Hypothesis for Pre-trained BERT Networks cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
- The Lottery Ticket Hypothesis for Pre-trained BERT Networks cites Language Models are Few-Shot Learners
- A Survey on Model Compression and Acceleration for Pretrained Language Models cites Movement Pruning: Adaptive Sparsity by Fine-Tuning
- A Survey on Model Compression and Acceleration for Pretrained Language Models cites The Lottery Ticket Hypothesis for Pre-trained BERT Networks
- A Survey on Model Compression and Acceleration for Pretrained Language Models cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
- A Survey on Model Compression and Acceleration for Pretrained Language Models cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
Cited by top-tier papers23
- A Survey on Model Compression and Acceleration for Pretrained Language ModelsCanwen Xu, Julian J. McAuleyAAAI 2023 · 96 citations
- LQ-LoRA: Low-rank plus Quantized Matrix Decomposition for Efficient Language Model FinetuningHan Guo, Philip Greengard, Eric P. Xing, Yoon KimICLR 2024 · 94 citations
- Rank Diminishing in Deep Neural NetworksRuili Feng, Kecheng Zheng, Yukun Huang, Deli Zhao et al.NeurIPS 2022 · 64 citations
- Hypernetwork-based Meta-Learning for Low-Rank Physics-Informed Neural NetworksWoojin Cho, Kookjin Lee, Donsub Rim, Noseong ParkNeurIPS 2023 · 62 citations
- Compressing Transformers: Features Are Low-Rank, but Weights Are Not!Hao Yu, Jianxin WuAAAI 2023 · 59 citations
Builds on9
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu et al.ACL 2020 · 660 citations
- Movement Pruning: Adaptive Sparsity by Fine-TuningVictor Sanh, Thomas Wolf, Alexander M. RushNeurIPS 2020 · 656 citations
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney et al.ICCV 2019 · 645 citations
- The Lottery Ticket Hypothesis for Pre-trained BERT NetworksTianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu et al.NeurIPS 2020 · 428 citations
Related papers
- Exploring extreme parameter compression for pre-trained language modelsBenyou Wang, Yuxin Ren, Lifeng Shang, Xin Jiang et al.ICLR 2022 · 23 citations
- NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture SearchJin Xu, Xu Tan, Renqian Luo, Kaitao Song et al.KDD 2021 · 49 citations
- Improving Word Embedding Factorization for Compression using Distilled Nonlinear Neural DecompositionVasileios Lioutas, Ahmad Rashid, Krtin Kumar, Md. Akmal Haidar et al.EMNLP Findings 2020 · 8 citations
- XtremeDistil: Multi-stage Distillation for Massive Multilingual ModelsSubhabrata Mukherjee, Ahmed Hassan AwadallahACL 2020 · 4 citations
- The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language ModelsEldar Kurtic, Daniel Campos, Tuan Nguyen, Elias Frantar et al.EMNLP 2022 · 4 citations
