Lune

ACL2021Top-tier venue

AutoTinyBERT: Automatic Hyper-parameter Optimization for Efficient Pre-trained Language Models

Yichun Yin, Cheng Chen, Lifeng Shang, Xin Jiang, Xiao Chen, Qun Liu

Abstract

Pre-trained language models (PLMs) have achieved great success in natural language processing. Most of PLMs follow the default setting of architecture hyper-parameters (e.g., the hidden dimension is a quarter of the intermediate dimension in feed-forward sub-networks) in BERT (Devlin et al., 2019). Few studies have been conducted to explore the design of architecture hyper-parameters in BERT, especially for the more efficient PLMs with tiny sizes, which are essential for practical deployment on resource-constrained devices. In this paper, we adopt the one-shot Neural Architecture Search (NAS) to automatically search architecture hyper-parameters. Specifically, we carefully design the techniques of one-shot learning and the search space to provide an adaptive and efficient development way of tiny PLMs for various latency constraints. We name our method AutoTinyBERT 1 and evaluate its effectiveness on the GLUE and SQuAD benchmarks. The extensive experiments show that our method outperforms both the SOTA searchbased baseline (NAS-BERT) and the SOTA distillation-based methods (such as DistilBERT, TinyBERT, MiniLM and MobileBERT). In addition, based on the obtained architectures, we propose a more efficient development method that is even faster than the development of a single PLM. * Contribution during internship at Noah's Ark Lab. 1 Our code implementation and pre-trained models are available at https://github.com/huawei-noah/ Pretrained-Language-Model .

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.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TinyBERT: Distilling BERT for Natural Language Understanding cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • TinyBERT: Distilling BERT for Natural Language Understanding cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • TinyBERT: Distilling BERT for Natural Language Understanding cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Structured Pruning Learns Compact and Accurate Models cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Structured Pruning Learns Compact and Accurate Models cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Structured Pruning Learns Compact and Accurate Models cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • Towards Efficient Post-training Quantization of Pre-trained Language Models cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Towards Efficient Post-training Quantization of Pre-trained Language Models cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • Towards Efficient Post-training Quantization of Pre-trained Language Models cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Towards Efficient Post-training Quantization of Pre-trained Language Models cites Language Models are Few-Shot Learners
  • Gradient-Free Structured Pruning with Unlabeled Data cites Structured Pruning Learns Compact and Accurate Models
  • Gradient-Free Structured Pruning with Unlabeled Data cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • Gradient-Free Structured Pruning with Unlabeled Data cites A Fast Post-Training Pruning Framework for Transformers
  • Gradient-Free Structured Pruning with Unlabeled Data cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Gradient-Free Structured Pruning with Unlabeled Data cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • A Fast Post-Training Pruning Framework for Transformers cites Structured Pruning Learns Compact and Accurate Models
  • A Fast Post-Training Pruning Framework for Transformers cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • A Fast Post-Training Pruning Framework for Transformers cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • A Fast Post-Training Pruning Framework for Transformers cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • A Fast Post-Training Pruning Framework for Transformers cites Language Models are Few-Shot Learners
  • Speculative Decoding with Big Little Decoder cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • Speculative Decoding with Big Little Decoder cites A Fast Post-Training Pruning Framework for Transformers
  • Speculative Decoding with Big Little Decoder cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Speculative Decoding with Big Little Decoder cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • Speculative Decoding with Big Little Decoder cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. A Fast Post-Training Pruning Framework for TransformersWoosuk Kwon, Sehoon Kim, Michael W. Mahoney, Joseph Hassoun et al.NeurIPS 2022 · 247 citations
  2. Structured Pruning Learns Compact and Accurate ModelsMengzhou Xia, Zexuan Zhong, Danqi ChenACL 2022 · 236 citations
  3. Speculative Decoding with Big Little DecoderSehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik et al.NeurIPS 2023 · 212 citations
  4. Towards Efficient Post-training Quantization of Pre-trained Language ModelsHaoli Bai, Lu Hou, Lifeng Shang, Xin Jiang et al.NeurIPS 2022 · 62 citations
  5. Gradient-Free Structured Pruning with Unlabeled DataAzade Nova, Hanjun Dai, Dale SchuurmansICML 2023 · 38 citations

Builds on13

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel et al.ICLR 2020 · 7,418 citations
  3. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang et al.EMNLP Findings 2020 · 1,787 citations
  4. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu et al.ACL 2020 · 660 citations
  5. Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTSheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma et al.AAAI 2020 · 656 citations

Related papers

  1. 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
  2. Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language ModelsNeal Lawton, Anoop Kumar, Govind Thattai, Aram Galstyan et al.ACL Findings 2023 · 17 citations
  3. EfficientBERT: Progressively Searching Multilayer Perceptron via Warm-up Knowledge DistillationChenhe Dong, Guangrun Wang, Hang Xu, Jiefeng Peng et al.EMNLP Findings 2021 · 20 citations
  4. AutoBERT-Zero: Evolving BERT Backbone from ScratchJiahui Gao, Hang Xu, Han Shi, Xiaozhe Ren et al.AAAI 2022 · 40 citations
  5. Few-shot Task-agnostic Neural Architecture Search for Distilling Large Language ModelsDongkuan Xu, Subhabrata Mukherjee, Xiaodong Liu, Debadeepta Dey et al.NeurIPS 2022 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines