arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.13686cs.CLcs.LG
收藏

AutoTinyBERT:高效预训练语言模型的自动超参数优化

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

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Tsinghua University(清华大学)

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

摘要:

预训练的语言模型(PLM)在自然语言处理中取得了巨大成功。大多数PLM遵循架构超参数的默认设置(例如,隐藏维度是前馈子网络中的中间维度的四分之一)在BERT中(Devlin等人,2019年)。很少有研究已经进行了探索BERT的架构超参数的设计,特别是对于更有效的PLM与小尺寸,这是必要的资源受限的设备上的实际部署。在本文中,我们采用一次性神经架构搜索(NAS)自动搜索架构超参数。具体而言,我们精心设计了一次性学习和搜索空间的技术,以提供一个适应性和有效的开发方式的微小PLM的各种延迟的约束。我们将我们的方法命名为AutoTinyBERT,并在GLUE和SQuAD基准上评估其有效性。大量的实验表明,我们的方法优于基于SOTA搜索的基线(NAS-BERT)和基于SOTA蒸馏的方法(如DistilBERT,TinyBERT,MiniLM和MobileBERT)。此外,基于所获得的架构,我们提出了一个更有效的开发方法,甚至比一个单一的PLM的发展更快。

英文摘要:

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 and evaluate its effectiveness on the GLUE and SQuAD benchmarks. The extensive experiments show that our method outperforms both the SOTA search-based 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑