Mixture-of-Supernets:通过架构路由的专家混合改进权重共享超网训练
Mixture-of-Supernets: Improving Weight-Sharing Supernet Training with Architecture-Routed Mixture-of-Experts
AI总结:
本文提出mixture-of-supernets方法,通过基于架构路由的专家混合机制改进权重共享超网训练,在机器翻译和BERT模型的神经架构搜索中取得最先进性能。
摘要:
权重共享超网在先进的神经架构搜索(NAS)框架中对性能估计至关重要。尽管它们能够在不重新训练的情况下生成多样的子网络,但由于权重共享,这些子网络的质量无法得到保证。在机器翻译和预训练语言建模等自然语言处理任务中,相同模型架构下超网与从头训练之间存在显著的性能差距,因此在确定最优架构后需要重新训练。本研究提出了一种名为mixture-of-supernets的解决方案,这是一种利用专家混合(MoE)的广义超网公式,以最小的训练开销增强超网模型的表达能力。与传统超网不同,该方法采用基于架构的路由机制,实现子网络之间模型权重的间接共享。通过梯度下降学习到的针对特定架构的权重定制,最大限度地减少了重新训练时间,显著提升了自然语言处理中的训练效率。所提出的方法在快速机器翻译模型的NAS中达到了最先进(SoTA)性能,与机器翻译领域最先进的NAS框架HAT相比,展现出更优的延迟-BLEU权衡。此外,它在构建内存高效的任务无关BERT模型的NAS中表现出色,在各种模型规模上超越了NAS-BERT和AutoDistil。代码可在以下地址获取:https://github.com/UBC-NLP/MoS。
英文摘要:
Weight-sharing supernets are crucial for performance estimation in cutting-edge neural architecture search (NAS) frameworks. Despite their ability to generate diverse subnetworks without retraining, the quality of these subnetworks is not guaranteed due to weight sharing. In NLP tasks like machine translation and pre-trained language modeling, there is a significant performance gap between supernet and training from scratch for the same model architecture, necessitating retraining post optimal architecture identification. This study introduces a solution called mixture-of-supernets, a generalized supernet formulation leveraging mixture-of-experts (MoE) to enhance supernet model expressiveness with minimal training overhead. Unlike conventional supernets, this method employs an architecture-based routing mechanism, enabling indirect sharing of model weights among subnetworks. This customization of weights for specific architectures, learned through gradient descent, minimizes retraining time, significantly enhancing training efficiency in NLP. The proposed method attains state-of-the-art (SoTA) performance in NAS for fast machine translation models, exhibiting a superior latency-BLEU tradeoff compared to HAT, the SoTA NAS framework for machine translation. Furthermore, it excels in NAS for building memory-efficient task-agnostic BERT models, surpassing NAS-BERT and AutoDistil across various model sizes. The code can be found at: https://github.com/UBC-NLP/MoS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。