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

AutoMoE:面向高效神经机器翻译的自适应计算异构混合专家模型

AutoMoE: Heterogeneous Mixture-of-Experts with Adaptive Computation for Efficient Neural Machine Translation

University of British Columbia(不列颠哥伦比亚大学);Microsoft Research(微软研究院);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Ganesh Jawahar, Subhabrata Mukherjee, Xiaodong Liu, Young Jin Kim, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Ahmed Hassan Awadallah, Sebastien Bubeck, Jianfeng Gao

AI总结:

本文提出AutoMoE框架,利用NAS在FLOPs和延迟等约束下搜索异构稀疏MoE架构,实现token级自适应计算,并在NMT上以更低计算量达到接近SwitchTransformer的翻译性能。

摘要:

混合专家(Mixture-of-Expert,MoE)模型已在神经机器翻译(Neural Machine Translation,NMT)任务上取得最先进性能。现有MoE研究大多采用同构设计,即在整个网络中均匀放置相同数量、相同规模的专家。此外,现有MoE研究没有考虑FLOPs、延迟等计算约束来指导设计。为此,我们开发了AutoMoE,这是一个在计算约束下设计异构MoE的框架。AutoMoE利用神经架构搜索(Neural Architecture Search,NAS)获得高效的稀疏MoE子Transformer;在NMT基准数据集的汇总结果上,相比人工设计的Transformer,其CPU推理速度提升4倍并减少FLOPs,同时BLEU分数与稠密Transformer持平,并且与MoE SwitchTransformer的差距在1个BLEU点以内。包含稠密和稀疏激活Transformer模块的异构搜索空间(例如:多少个专家?应放置在何处?其规模应是多少?)支持自适应计算,即对输入中的不同token使用不同的计算量。这种自适应自然来自于将token发送给不同规模专家的路由决策。AutoMoE代码、数据和已训练模型可在https://aka.ms/AutoMoE获取。

英文摘要:

Mixture-of-Expert (MoE) models have obtained state-of-the-art performance in Neural Machine Translation (NMT) tasks. Existing works in MoE mostly consider a homogeneous design where the same number of experts of the same size are placed uniformly throughout the network. Furthermore, existing MoE works do not consider computational constraints (e.g., FLOPs, latency) to guide their design. To this end, we develop AutoMoE -- a framework for designing heterogeneous MoE's under computational constraints. AutoMoE leverages Neural Architecture Search (NAS) to obtain efficient sparse MoE sub-transformers with 4x inference speedup (CPU) and FLOPs reduction over manually designed Transformers, with parity in BLEU score over dense Transformer and within 1 BLEU point of MoE SwitchTransformer, on aggregate over benchmark datasets for NMT. Heterogeneous search space with dense and sparsely activated Transformer modules (e.g., how many experts? where to place them? what should be their sizes?) allows for adaptive compute -- where different amounts of computations are used for different tokens in the input. Adaptivity comes naturally from routing decisions which send tokens to experts of different sizes. AutoMoE code, data, and trained models are available at https://aka.ms/AutoMoE.

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

↑