NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Search
Not on the map. Why?
Abstract (arXiv)
While pre-trained language models (e.g., BERT) have achieved impressive results on different natural language processing tasks, they have large numbers of parameters and suffer from big computational and memory costs, which make them difficult for real-world deployment. Therefore, model compression is necessary to reduce the computation and memory cost of pre-trained models. In this work, we aim to compress BERT and address the following two challenging practical issues: (1) The compression algorithm should be able to output multiple compressed models with different sizes and latencies, in order to support devices with different memory and latency limitations; (2) The algorithm should be downstream task agnostic, so that the compressed models are generally applicable for different downstream tasks. We leverage techniques in neural architecture search (NAS) and propose NAS-BERT, an efficient method for BERT compression. NAS-BERT trains a big supernet on a search space containing a variety of architectures and outputs multiple compressed models with adaptive sizes and latency. Furthermore, the training of NAS-BERT is conducted on standard self-supervised pre-training tasks (e.g., masked language model) and does not depend on specific downstream tasks. Thus, the compressed models can be used across various downstream tasks. The technical challenge of NAS-BERT is that training a big supernet on the pre-training task is extremely costly. We employ several techniques including block-wise search, search space pruning, and performance approximation to improve search efficiency and accuracy. Extensive experiments on GLUE and SQuAD benchmark datasets demonstrate that NAS-BERT can find lightweight models with better accuracy than previous approaches, and can be directly applied to different downstream tasks with adaptive model sizes for different requirements of memory or latency.
Key facts. Cited by 55 papers in the map (data through 7 Oct 2026). Builds on 45 of its 57 references that are in the map. First posted on arXiv 30 May 2021.
Builds on
45 of 57 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 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
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2019Searching for MobileNetV3cited by 1,984
- 2018DARTS: Differentiable Architecture Searchcited by 1,782
33 more
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2020Designing Network Design Spacescited by 954
- 2018Neural Network Acceptability Judgmentscited by 952
- 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
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 411
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 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
- 2018Auto-Keras: An Efficient Neural Architecture Search Systemcited by 169
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2019FairNAS: Rethinking Evaluation Fairness of Weight Sharing Neural Architecture Searchcited by 129
- 2019Large Memory Layers with Product Keyscited by 120
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2019Blockwisely Supervised Neural Architecture Search with Knowledge Distillationcited by 81
- 2020AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Searchcited by 51
- 2019Improving One-shot NAS by Suppressing the Posterior Fadingcited by 28
- 2017Depthwise Separable Convolutions for Neural Machine Translationcited by 26
- 2020LightPAFF: A Two-Stage Distillation Framework for Pre-training and Fine-tuningcited by 25
- 2019Sample-Efficient Neural Architecture Search by Learning Action Spacecited by 23
- 2020FreeDOM: A Transferable Neural Architecture for Structured Information Extraction on Web Documentscited by 22
- 2019Structured Pruning of a BERT-based Question Answering Modelcited by 16
- 2020Finding Fast Transformers: One-Shot Neural Architecture Search by Component Compositioncited by 10
- 2019Balanced One-shot Neural Architecture Optimizationcited by 6
Built on by
Citing papers per year: 2021: 6; 2022: 12; 2023: 16; 2024: 13; 2025: 4; 2026: 4.
55 papers.
Sort:
By area:
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 216
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2023Speculative Decoding with Big Little Decodercited by 163
- 2022A Fast Post-Training Pruning Framework for Transformerscited by 161
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
- 2021Towards Efficient Post-training Quantization of Pre-trained Language Modelscited by 37
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2024A Survey of Small Language Modelscited by 31
- 2023LLM Performance Predictors are good initializers for Architecture Searchcited by 29
- 2022Meta Learning for Natural Language Processing: A Surveycited by 26
- 2023Gradient-Free Structured Pruning with Unlabeled Datacited by 26
38 more
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2021Analyzing and Mitigating Interference in Neural Architecture Searchcited by 20
- 2024EvoPress: Accurate Dynamic Model Compression via Evolutionary Searchcited by 20
- 2021EfficientBERT: Progressively Searching Multilayer Perceptron via Warm-up Knowledge Distillationcited by 15
- 2022Exploring Extreme Parameter Compression for Pre-trained Language Modelscited by 15
- 2024A Comprehensive Survey of Compression Algorithms for Language Modelscited by 15
- 2022Differentially Private Model Compressioncited by 13
- 2022FlexiBERT: Are Current Transformer Architectures too Homogeneous and Rigid?cited by 12
- 2022SuperTickets: Drawing Task-Agnostic Lottery Tickets from Supernets via Jointly Architecture Searching and Parameter Pruningcited by 12
- 2025EfficientLLM: Scalable Pruning-Aware Pretraining for Architecture-Agnostic Edge Language Modelscited by 10
- 2022AutoMoE: Heterogeneous Mixture-of-Experts with Adaptive Computation for Efficient Neural Machine Translationcited by 9
- 2023Training-free Neural Architecture Search for RNNs and Transformerscited by 9
- 2022AutoDistill: an End-to-End Framework to Explore and Distill Hardware-Efficient Language Modelscited by 7
- 2023Mixture-of-Supernets: Improving Weight-Sharing Supernet Training with Architecture-Routed Mixture-of-Expertscited by 7
- 2025Composer: A Search Framework for Hybrid Neural Architecture Designcited by 7
- 2021SuperShaper: Task-Agnostic Super Pre-training of BERT Models with Variable Hidden Dimensionscited by 6
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inferencecited by 6
- 2024Efficiently Distilling LLMs for Edge Applicationscited by 5
- 2024Structural Pruning of Pre-trained Language Models via Neural Architecture Searchcited by 5
- 2024CE-NAS: An End-to-End Carbon-Efficient Neural Architecture Search Frameworkcited by 5
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Modelscited by 5
- 2022SwiftPruner: Reinforced Evolutionary Pruning for Efficient Ad Relevancecited by 4
- 2023Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classificationcited by 4
- 2023RingMo-lite: A Remote Sensing Multi-task Lightweight Network with CNN-Transformer Hybrid Frameworkcited by 4
- 2022AutoDistil: Few-shot Task-agnostic Neural Architecture Search for Distilling Large Language Modelscited by 3
- 2023Evolutionary Neural Architecture Search for Transformer in Knowledge Tracingcited by 3
- 2024Merino: Entropy-driven Design for Generative Language Models on IoT Devicescited by 3
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollerscited by 3
- 2023EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platformscited by 2
- 2023Sensi-BERT: Towards Sensitivity Driven Fine-Tuning for Parameter-Efficient BERTcited by 2
- 2021AutoHEnsGNN: Winning Solution to AutoGraph Challenge for KDD Cup 2020cited by 1
- 2022Design Automation for Fast, Lightweight, and Effective Deep Learning Models: A Surveycited by 1
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inferencecited by 1
- 2025W-PCA Based Gradient-Free Proxy for Efficient Search of Lightweight Language Modelscited by 1
- 2026Prune Once: Retraining-Free Task-Agnostic Pruning for Vision-Language Modelscited by 1
- 2022SpeedLimit: Neural Architecture Search for Quantized Transformer Modelscited by 0
- 2023NAS-FM: Neural Architecture Search for Tunable and Interpretable Sound Synthesis based on Frequency Modulationcited by 0
- 2024Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Modelscited by 0
50 most cited of 55 All 55 (JSON)
- 2026ATHENA: Knowledge-guided agentic neural architecture search for AutoFormer-based electronic health record modeling22 Aug 2026
- 2026Prune Once: Retraining-Free Task-Agnostic Pruning for Vision-Language Models7 Aug 2026
- 2026Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models28 Apr 2026
- 2026Breaking Robustness Barriers in Cognitive Diagnosis: A One-Shot Neural Architecture Search Perspective8 Jan 2026
- 2025Elastic Architecture Search for Efficient Language Models30 Oct 2025
- 2025Composer: A Search Framework for Hybrid Neural Architecture Design1 Oct 2025
- 2025W-PCA Based Gradient-Free Proxy for Efficient Search of Lightweight Language Models22 Apr 2025
- 2025EfficientLLM: Scalable Pruning-Aware Pretraining for Architecture-Agnostic Edge Language Models10 Feb 2025
- 2024A Survey of Small Language Models25 Oct 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024EvoPress: Accurate Dynamic Model Compression via Evolutionary Search18 Oct 2024
- 2024Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Services22 Aug 2024
38 more
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Models4 Aug 2024
- 2024Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models11 Jul 2024
- 2024CE-NAS: An End-to-End Carbon-Efficient Neural Architecture Search Framework3 Jun 2024
- 2024Structural Pruning of Pre-trained Language Models via Neural Architecture Search3 May 2024
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2024Efficiently Distilling LLMs for Edge Applications1 Apr 2024
- 2024Merino: Entropy-driven Design for Generative Language Models on IoT Devices28 Feb 2024
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases22 Feb 2024
- 2024A Comprehensive Survey of Compression Algorithms for Language Models27 Jan 2024
- 2023LLM Performance Predictors are good initializers for Architecture Search25 Oct 2023
- 2023Evolutionary Neural Architecture Search for Transformer in Knowledge Tracing2 Oct 2023
- 2023RingMo-lite: A Remote Sensing Multi-task Lightweight Network with CNN-Transformer Hybrid Framework16 Sep 2023
- 2023Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classification4 Aug 2023
- 2023A Survey of Techniques for Optimizing Transformer Inference16 Jul 2023
- 2023Sensi-BERT: Towards Sensitivity Driven Fine-Tuning for Parameter-Efficient BERT14 Jul 2023
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference26 Jun 2023
- 2023SqueezeLLM: Dense-and-Sparse Quantization13 Jun 2023
- 2023Mixture-of-Supernets: Improving Weight-Sharing Supernet Training with Architecture-Routed Mixture-of-Experts8 Jun 2023
- 2023Training-free Neural Architecture Search for RNNs and Transformers1 Jun 2023
- 2023NAS-FM: Neural Architecture Search for Tunable and Interpretable Sound Synthesis based on Frequency Modulation22 May 2023
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inference27 Mar 2023
- 2023EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platforms24 Mar 2023
- 2023Gradient-Free Structured Pruning with Unlabeled Data7 Mar 2023
- 2023Full Stack Optimization of Transformer Inference: a Survey27 Feb 2023
- 2023Speculative Decoding with Big Little Decoder15 Feb 2023
- 2022AutoMoE: Heterogeneous Mixture-of-Experts with Adaptive Computation for Efficient Neural Machine Translation14 Oct 2022
- 2022SpeedLimit: Neural Architecture Search for Quantized Transformer Models25 Sep 2022
- 2022SwiftPruner: Reinforced Evolutionary Pruning for Efficient Ad Relevance30 Aug 2022
- 2022Design Automation for Fast, Lightweight, and Effective Deep Learning Models: A Survey22 Aug 2022
- 2022SuperTickets: Drawing Task-Agnostic Lottery Tickets from Supernets via Jointly Architecture Searching and Parameter Pruning8 Jul 2022
- 2022Differentially Private Model Compression3 Jun 2022
- 2022FlexiBERT: Are Current Transformer Architectures too Homogeneous and Rigid?23 May 2022
- 2022Exploring Extreme Parameter Compression for Pre-trained Language Models20 May 2022
- 2022Meta Learning for Natural Language Processing: A Survey3 May 2022
- 2022A Fast Post-Training Pruning Framework for Transformers29 Mar 2022
- 2022AutoDistil: Few-shot Task-agnostic Neural Architecture Search for Distilling Large Language Models29 Jan 2022
- 2022AutoDistill: an End-to-End Framework to Explore and Distill Hardware-Efficient Language Models21 Jan 2022
- 2021AutoHEnsGNN: Winning Solution to AutoGraph Challenge for KDD Cup 202025 Nov 2021
50 newest of 55 All 55 (JSON)
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2023Speculative Decoding with Big Little Decodercited by 163
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inferencecited by 6
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Modelscited by 5
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Models4 Aug 2024
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference26 Jun 2023
- 2023Speculative Decoding with Big Little Decoder15 Feb 2023
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 216
- 2022A Fast Post-Training Pruning Framework for Transformerscited by 161
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
- 2021Towards Efficient Post-training Quantization of Pre-trained Language Modelscited by 37
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2024A Survey of Small Language Modelscited by 31
- 2023LLM Performance Predictors are good initializers for Architecture Searchcited by 29
- 2022Meta Learning for Natural Language Processing: A Surveycited by 26
- 2023Gradient-Free Structured Pruning with Unlabeled Datacited by 26
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2021Analyzing and Mitigating Interference in Neural Architecture Searchcited by 20
12 most cited of 47 All 47 (JSON)
- 2026Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models28 Apr 2026
- 2026Breaking Robustness Barriers in Cognitive Diagnosis: A One-Shot Neural Architecture Search Perspective8 Jan 2026
- 2025Elastic Architecture Search for Efficient Language Models30 Oct 2025
- 2025Composer: A Search Framework for Hybrid Neural Architecture Design1 Oct 2025
- 2025W-PCA Based Gradient-Free Proxy for Efficient Search of Lightweight Language Models22 Apr 2025
- 2025EfficientLLM: Scalable Pruning-Aware Pretraining for Architecture-Agnostic Edge Language Models10 Feb 2025
- 2024A Survey of Small Language Models25 Oct 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024EvoPress: Accurate Dynamic Model Compression via Evolutionary Search18 Oct 2024
- 2024Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Services22 Aug 2024
- 2024Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models11 Jul 2024
- 2024CE-NAS: An End-to-End Carbon-Efficient Neural Architecture Search Framework3 Jun 2024
12 newest of 47 All 47 (JSON)