arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2208.14580cs.LGcs.AIcs.CL
收藏

高效稀疏激活的Transformers

Efficient Sparsely Activated Transformers

University of Michigan(密歇根大学);NVIDIA Corporation(英伟达公司)

Salar Latifi, Saurav Muralidharan, Michael Garland

摘要:

基于变换器的神经网络已经在包括自然语言处理和计算机视觉的许多机器学习领域中实现了最先进的任务性能。为了进一步提高它们的准确性,最近的工作已经探索了将动态行为以专家混合(MoE)层的形式集成到这些网络中。在本文中,我们探讨了MoE层的引入,以优化不同的度量:推理延迟。我们引入了一个名为PLANER的新系统,该系统采用现有的基于Transformer的网络和用户定义的延迟目标,并生成原始网络的优化,稀疏激活版本,该版本试图在保持基线准确性的同时满足延迟目标。我们使用Transformer-XL网络在两个真实世界的语言建模任务上评估了PLANER,并在等精度下将推理延迟降低了2倍以上。

英文摘要:

Transformer-based neural networks have achieved state-of-the-art task performance in a number of machine learning domains including natural language processing and computer vision. To further improve their accuracy, recent work has explored the integration of dynamic behavior into these networks in the form of mixture-of-expert (MoE) layers. In this paper, we explore the introduction of MoE layers to optimize a different metric: inference latency. We introduce a novel system named PLANER that takes an existing Transformer-based network and a user-defined latency target and produces an optimized, sparsely-activated version of the original network that tries to meet the latency target while maintaining baseline accuracy. We evaluate PLANER on two real-world language modeling tasks using the Transformer-XL network and achieve inference latency reductions of over 2x at iso-accuracy.

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

↑