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

DARTFormer:寻找最佳的注意力类型

DARTFormer: Finding The Best Type Of Attention

University of Cambridge(剑桥大学);Imperial College London(帝国理工学院);University of Oxford(牛津大学)

Jason Ross Brown, Yiren Zhao, Ilia Shumailov, Robert D Mullins

摘要:

鉴于不同的高效Transformer注意力机制的范围广泛且不断增长,重要的是要确定在给定任务时哪种注意力最有效。在这项工作中,我们也有兴趣结合不同的注意力类型,建立异构的Transformers。我们首先提出了一个类似DARTS的神经结构搜索(NAS)方法来找到一个给定的任务的最佳注意力,在这个设置中,所有的头使用相同的注意力(同质模型)。我们的研究结果表明,NAS在这项任务上是非常有效的,它确定了最好的注意力机制的IMDb字节级文本分类和Listops。然后,我们扩展了我们的框架,以搜索和构建具有多种不同注意力类型的Transformers,并将其称为异构Transformers。我们表明,虽然这些异构Transformers优于平均同质模型,他们不能超越最好的。我们探讨了为什么异质注意是有意义的,为什么它最终失败的原因。

英文摘要:

Given the wide and ever growing range of different efficient Transformer attention mechanisms, it is important to identify which attention is most effective when given a task. In this work, we are also interested in combining different attention types to build heterogeneous Transformers. We first propose a DARTS-like Neural Architecture Search (NAS) method to find the best attention for a given task, in this setup, all heads use the same attention (homogeneous models). Our results suggest that NAS is highly effective on this task, and it identifies the best attention mechanisms for IMDb byte level text classification and Listops. We then extend our framework to search for and build Transformers with multiple different attention types, and call them heterogeneous Transformers. We show that whilst these heterogeneous Transformers are better than the average homogeneous models, they cannot outperform the best. We explore the reasons why heterogeneous attention makes sense, and why it ultimately fails.

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

↑