FlexiBERT:当前的Transformer架构是否过于同质化和僵化?
FlexiBERT: Are Current Transformer Architectures too Homogeneous and Rigid?
摘要:
过多的语言模型的存在使得为定制任务选择最佳语言模型的问题具有挑战性。大多数现有技术的方法利用基于变压器的模型(例如,BERT)或它们的变体。然而,训练这些模型并探索它们的超参数空间在计算上是昂贵的。先前的工作提出了几种神经架构搜索(NAS)方法,其采用性能预测器(例如,代理模型)来解决这个问题;然而,分析一直局限于在整个网络中使用固定维度的同质模型。这导致了次优架构。为了解决这一限制,我们提出了一套异构和灵活的模型,即BLENBERT,具有不同的编码器层与不同的一组可能的操作和不同的隐藏维度。为了在这个扩展的设计空间中更好地进行代理建模,我们提出了一个新的基于图相似性的嵌入方案。我们还提出了一种新的NAS政策,称为BOSHNAS,利用这种新的计划,贝叶斯建模和二阶优化,快速训练和使用神经代理模型收敛到最佳架构。一组全面的实验表明,所提出的政策,当应用到BERBERT设计空间,推动性能前沿向上相比,传统的模式。我们提出的模型之一BERT-Mini的参数比BERT-Mini少3%,GLUE得分高8.9%。与最佳同质模型具有同等性能的BROBERT模型尺寸小2.6倍。另一个提出的模型BLENBERT-Large实现了最先进的结果,在GLUE基准测试中至少比基线模型高出5.7%。
英文摘要:
The existence of a plethora of language models makes the problem of selecting the best one for a custom task challenging. Most state-of-the-art methods leverage transformer-based models (e.g., BERT) or their variants. Training such models and exploring their hyperparameter space, however, is computationally expensive. Prior work proposes several neural architecture search (NAS) methods that employ performance predictors (e.g., surrogate models) to address this issue; however, analysis has been limited to homogeneous models that use fixed dimensionality throughout the network. This leads to sub-optimal architectures. To address this limitation, we propose a suite of heterogeneous and flexible models, namely FlexiBERT, that have varied encoder layers with a diverse set of possible operations and different hidden dimensions. For better-posed surrogate modeling in this expanded design space, we propose a new graph-similarity-based embedding scheme. We also propose a novel NAS policy, called BOSHNAS, that leverages this new scheme, Bayesian modeling, and second-order optimization, to quickly train and use a neural surrogate model to converge to the optimal architecture. A comprehensive set of experiments shows that the proposed policy, when applied to the FlexiBERT design space, pushes the performance frontier upwards compared to traditional models. FlexiBERT-Mini, one of our proposed models, has 3% fewer parameters than BERT-Mini and achieves 8.9% higher GLUE score. A FlexiBERT model with equivalent performance as the best homogeneous model achieves 2.6x smaller size. FlexiBERT-Large, another proposed model, achieves state-of-the-art results, outperforming the baseline models by at least 5.7% on the GLUE benchmark.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。