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

多路径Transformer更优:以神经机器翻译为例的案例研究

Multi-Path Transformer is Better: A Case Study on Neural Machine Translation

Northeastern University(东北大学);The Chinese University of Hong Kong(香港中文大学);NiuTrans Research(NiuTrans研究院)

Ye Lin, Shuhan Zhou, Yanyang Li, Anxiang Ma, Tong Xiao, Jingbo Zhu

AI总结:

本研究通过参数高效的多路径结构探究Transformer宽度的影响,在12个WMT任务上证明相同参数下浅层多路径模型性能不逊于深层模型,强调深度与宽度需平衡。

摘要:

多年来,机器学习中的模型性能与模型大小遵循幂律关系。出于参数效率的考虑,近年来的研究侧重于增加模型深度而非宽度以获得更好的性能。在本文中,我们通过一种参数高效的多路径结构研究模型宽度如何影响Transformer模型。为了更好地融合从不同路径提取的特征,我们在每个子层中添加了三个额外操作:每条路径末尾的归一化、一种产生更多特征的廉价操作,以及一种可学习的加权机制以灵活融合所有特征。在12个WMT机器翻译任务上的大量实验表明,在参数数量相同的情况下,较浅的多路径模型可以达到与较深模型相似甚至更好的性能。这揭示了我们应更加关注多路径结构,并且在训练更好的大规模Transformer时,模型深度与宽度之间应保持平衡。

英文摘要:

For years the model performance in machine learning obeyed a power-law relationship with the model size. For the consideration of parameter efficiency, recent studies focus on increasing model depth rather than width to achieve better performance. In this paper, we study how model width affects the Transformer model through a parameter-efficient multi-path structure. To better fuse features extracted from different paths, we add three additional operations to each sublayer: a normalization at the end of each path, a cheap operation to produce more features, and a learnable weighted mechanism to fuse all features flexibly. Extensive experiments on 12 WMT machine translation tasks show that, with the same number of parameters, the shallower multi-path model can achieve similar or even better performance than the deeper model. It reveals that we should pay more attention to the multi-path structure, and there should be a balance between the model depth and width to train a better large-scale Transformer.

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

↑