AutoBERT-Zero: Evolving BERT Backbone from Scratch

Authors

  • Jiahui Gao The University of Hong Kong
  • Hang Xu Huawei Noah's Ark Lab
  • Han Shi The Hong Kong University of Science and Technology
  • Xiaozhe Ren Huawei Noah's Ark Lab
  • Philip L. H. Yu The Education University of Hong Kong
  • Xiaodan Liang Sun Yat-sen University
  • Xin Jiang Huawei Noah's Ark Lab
  • Zhenguo Li Huawei Noah's Ark Lab

DOI:

https://doi.org/10.1609/aaai.v36i10.21311

Keywords:

Speech & Natural Language Processing (SNLP)

Abstract

Transformer-based pre-trained language models like BERT and its variants have recently achieved promising performance in various natural language processing (NLP) tasks. However, the conventional paradigm constructs the backbone by purely stacking the manually designed global self-attention layers, introducing inductive bias and thus leads to sub-optimal. In this work, we make the first attempt to automatically discover novel pre-trained language model (PLM) backbone on a flexible search space containing the most fundamental operations from scratch. Specifically, we propose a well-designed search space which (i) contains primitive math operations in the intra-layer level to explore novel attention structures, and (ii) leverages convolution blocks to be the supplementary for attentions in the inter-layer level to better learn local dependency. To enhance the efficiency for finding promising architectures, we propose an Operation-Priority Neural Architecture Search (OP-NAS) algorithm, which optimizes both the search algorithm and evaluation of candidate models. Specifically, we propose Operation-Priority (OP) evolution strategy to facilitate model search via balancing exploration and exploitation. Furthermore, we design a Bi-branch Weight-Sharing (BIWS) training strategy for fast model evaluation. Extensive experiments show that the searched architecture (named AutoBERT-Zero) significantly outperforms BERT and its variants of different model capacities in various downstream tasks, proving the architecture's transfer and scaling abilities. Remarkably, AutoBERT-Zero-base outperforms RoBERTa-base (using much more data) and BERT-large (with much larger model size) by 2.4 and 1.4 higher score on GLUE test set.

Downloads

Published

2022-06-28

How to Cite

Gao, J., Xu, H., Shi, H., Ren, X., Yu, P. L. H., Liang, X., Jiang, X., & Li, Z. (2022). AutoBERT-Zero: Evolving BERT Backbone from Scratch. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10), 10663-10671. https://doi.org/10.1609/aaai.v36i10.21311

Issue

Section

AAAI Technical Track on Speech and Natural Language Processing