mlsanityData to 7 Oct 2026

You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradient

arXiv 2106.02435 ↗First posted 4 Jun 2021cs.CLcited by 14

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  4. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  5. 2018DARTS: Differentiable Architecture Searchcited by 1,782
  6. 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
  7. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  8. 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 937
  9. 2019Are Sixteen Heads Really Better than One?cited by 803
  10. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  11. 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
  12. 2019Passage Re-ranking with BERTcited by 629
17 more
  1. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  2. 2017Progressive Neural Architecture Searchcited by 483
  3. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  4. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  5. 2018SNAS: Stochastic Neural Architecture Searchcited by 288
  6. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
  7. 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 187
  8. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
  9. 2019End-to-End Open-Domain Question Answering with BERTserinicited by 152
  10. 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
  11. 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
  12. 2019A Tensorized Transformer for Language Modelingcited by 85
  13. 2020AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Searchcited by 51
  14. 2019Adaptive Stochastic Natural Gradient Method for One-Shot Neural Architecture Searchcited by 23
  15. 2019Multinomial Distribution Learning for Effective Neural Architecture Searchcited by 17
  16. 2019Structured Pruning of a BERT-based Question Answering Modelcited by 16
  17. 2018Dynamic Optimization of Neural Network Structures Using Probabilistic Modelingcited by 4

Built on by

Cited by year

Citing papers per year: 2021: 2; 2022: 1; 2023: 7; 2024: 4.

14 papers.

Sort:

By area: