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

AutoTrans:通过增强的架构搜索实现Transformer设计自动化

AutoTrans: Automating Transformer Design via Reinforced Architecture Search

Wei Zhu, Xiaoling Wang, Xipeng Qiu, Yuan Ni, Guotong Xie

摘要:

虽然Transformer架构在许多自然语言理解任务中表现出主导地位,但对于Transformer模型的训练仍然存在未解决的问题,特别是需要一种原则性的预热方式,这对于Transformer的稳定训练以及手头的任务是否更喜欢缩放注意力产品具有重要意义。在本文中,我们经验性地探索了Transformer模型中的设计选择自动化,即,如何设置层规范、是否缩放、层数、头数、激活函数等,以便可以获得更适合手头任务的Transformer架构。采用强化学习在搜索空间中导航,并设计了特殊的参数共享策略来加速搜索。结果表明,在搜索过程中,每个时期采样一定比例的训练数据有助于提高搜索质量。在CoNLL 03、Multi-30 k、IWSLT 14和WMT-14上的实验表明,所搜索的Transformer模型性能优于标准Transformers。特别是,我们证明了我们的学习模型可以在没有预热的情况下以较大的学习率进行更鲁棒的训练。

英文摘要:

Though the transformer architectures have shown dominance in many natural language understanding tasks, there are still unsolved issues for the training of transformer models, especially the need for a principled way of warm-up which has shown importance for stable training of a transformer, as well as whether the task at hand prefer to scale the attention product or not. In this paper, we empirically explore automating the design choices in the transformer model, i.e., how to set layer-norm, whether to scale, number of layers, number of heads, activation function, etc, so that one can obtain a transformer architecture that better suits the tasks at hand. RL is employed to navigate along search space, and special parameter sharing strategies are designed to accelerate the search. It is shown that sampling a proportion of training data per epoch during search help to improve the search quality. Experiments on the CoNLL03, Multi-30k, IWSLT14 and WMT-14 shows that the searched transformer model can outperform the standard transformers. In particular, we show that our learned model can be trained more robustly with large learning rates without warm-up.

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

↑