You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradient
Not on the map. Why?
Abstract (arXiv)
Despite superior performance on various natural language processing tasks, pre-trained models such as BERT are challenged by deploying on resource-constraint devices. Most existing model compression approaches require re-compression or fine-tuning across diverse constraints to accommodate various hardware deployments. This practically limits the further application of model compression. Moreover, the ineffective training and searching process of existing elastic compression paradigms[4,27] prevents the direct migration to BERT compression. Motivated by the necessity of efficient inference across various constraints on BERT, we propose a novel approach, YOCO-BERT, to achieve compress once and deploy everywhere. Specifically, we first construct a huge search space with 10^13 architectures, which covers nearly all configurations in BERT model. Then, we propose a novel stochastic nature gradient optimization method to guide the generation of optimal candidate architecture which could keep a balanced trade-off between explorations and exploitation. When a certain resource constraint is given, a lightweight distribution optimization approach is utilized to obtain the optimal network for target deployment without fine-tuning. Compared with state-of-the-art algorithms, YOCO-BERT provides more compact models, yet achieving 2.1%-4.5% average accuracy improvement on the GLUE benchmark. Besides, YOCO-BERT is also more effective, e.g.,the training complexity is O(1)for N different devices. Code is availablehttps://github.com/MAC-AutoML/YOCO-BERT.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 29 of its 41 references that are in the map. First posted on arXiv 4 Jun 2021.
Builds on
29 of 41 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018DARTS: Differentiable Architecture Searchcited by 1,782
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 937
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
- 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
- 2019Passage Re-ranking with BERTcited by 629
17 more
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2017Progressive Neural Architecture Searchcited by 483
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2018SNAS: Stochastic Neural Architecture Searchcited by 288
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 187
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2019End-to-End Open-Domain Question Answering with BERTserinicited by 152
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2019A Tensorized Transformer for Language Modelingcited by 85
- 2020AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Searchcited by 51
- 2019Adaptive Stochastic Natural Gradient Method for One-Shot Neural Architecture Searchcited by 23
- 2019Multinomial Distribution Learning for Effective Neural Architecture Searchcited by 17
- 2019Structured Pruning of a BERT-based Question Answering Modelcited by 16
- 2018Dynamic Optimization of Neural Network Structures Using Probabilistic Modelingcited by 4
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 7; 2024: 4.
14 papers.
Sort:
By area:
- 2024StateFlow: Enhancing LLM Task-Solving through State-Driven Workflowscited by 65
- 2022LightHuBERT: Lightweight and Configurable Speech Representation Learning with Once-for-All Hidden-Unit BERTcited by 45
- 2023Active Teacher for Semi-Supervised Object Detectioncited by 43
- 2021OMPQ: Orthogonal Mixed Precision Quantizationcited by 37
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Modelscited by 26
- 2023Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspectivecited by 17
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interfacecited by 15
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Modelscited by 13
- 2023HyperTime: Hyperparameter Optimization for Combating Temporal Distribution Shiftscited by 8
- 2021SuperShaper: Task-Agnostic Super Pre-training of BERT Models with Variable Hidden Dimensionscited by 6
- 2024Efficiently Distilling LLMs for Edge Applicationscited by 5
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interface30 Sep 2024
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Models15 Jul 2024
- 2024Efficiently Distilling LLMs for Edge Applications1 Apr 2024
- 2024StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows17 Mar 2024
- 2023Can persistent homology whiten Transformer-based black-box models? A case study on BERT compression17 Dec 2023
- 2023General Phrase Debiaser: Debiasing Masked Language Models at a Multi-Token Level23 Nov 2023
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Models16 Oct 2023
- 2023A Survey of Techniques for Optimizing Transformer Inference16 Jul 2023
- 2023HyperTime: Hyperparameter Optimization for Combating Temporal Distribution Shifts28 May 2023
- 2023Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective21 Mar 2023
- 2023Active Teacher for Semi-Supervised Object Detection15 Mar 2023
- 2022LightHuBERT: Lightweight and Configurable Speech Representation Learning with Once-for-All Hidden-Unit BERT29 Mar 2022
2 more
- 2024StateFlow: Enhancing LLM Task-Solving through State-Driven Workflowscited by 65
- 2022LightHuBERT: Lightweight and Configurable Speech Representation Learning with Once-for-All Hidden-Unit BERTcited by 45
- 2023Active Teacher for Semi-Supervised Object Detectioncited by 43
- 2021OMPQ: Orthogonal Mixed Precision Quantizationcited by 37
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Modelscited by 26
- 2023Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspectivecited by 17
- 2023HyperTime: Hyperparameter Optimization for Combating Temporal Distribution Shiftscited by 8
- 2021SuperShaper: Task-Agnostic Super Pre-training of BERT Models with Variable Hidden Dimensionscited by 6
- 2024Efficiently Distilling LLMs for Edge Applicationscited by 5
- 2023General Phrase Debiaser: Debiasing Masked Language Models at a Multi-Token Levelcited by 2
- 2023Can persistent homology whiten Transformer-based black-box models? A case study on BERT compressioncited by 1
- 2024Efficiently Distilling LLMs for Edge Applications1 Apr 2024
- 2024StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows17 Mar 2024
- 2023Can persistent homology whiten Transformer-based black-box models? A case study on BERT compression17 Dec 2023
- 2023General Phrase Debiaser: Debiasing Masked Language Models at a Multi-Token Level23 Nov 2023
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Models16 Oct 2023
- 2023A Survey of Techniques for Optimizing Transformer Inference16 Jul 2023
- 2023HyperTime: Hyperparameter Optimization for Combating Temporal Distribution Shifts28 May 2023
- 2023Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective21 Mar 2023
- 2023Active Teacher for Semi-Supervised Object Detection15 Mar 2023
- 2022LightHuBERT: Lightweight and Configurable Speech Representation Learning with Once-for-All Hidden-Unit BERT29 Mar 2022
- 2021SuperShaper: Task-Agnostic Super Pre-training of BERT Models with Variable Hidden Dimensions10 Oct 2021
- 2021OMPQ: Orthogonal Mixed Precision Quantization16 Sep 2021