arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08330cs.LGcs.CLcs.CVcs.NE
收藏

卷积增强的演化注意力网络

Convolution-enhanced Evolving Attention Networks

Peking University(北京大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);ETH Zürich(苏黎世联邦理工学院);Tsinghua University(清华大学)

Yujing Wang, Yaming Yang, Zhuo Li, Jiangang Bai, Mingliang Zhang, Xiangtai Li, Jing Yu, Ce Zhang, Gao Huang, Yunhai Tong

AI总结:

针对现有注意力网络不同层注意力图独立学习无显式交互的问题,提出通过残差卷积模块建模词元关系演化的通用机制,构建的卷积增强演化注意力网络在多任务中性能优异,时间序列任务上较最优模型平均提升17%。

摘要:

基于注意力的神经网络(如Transformer)已在计算机视觉、自然语言处理、时间序列分析等众多应用中得到广泛应用。在各类注意力网络中,注意力图至关重要,因为它们编码了输入词元之间的语义依赖关系。然而,现有大多数注意力网络均基于表征进行建模或推理,其中不同层的注意力图是独立学习的,不存在显式交互。本文提出了一种新颖的通用演化注意力机制,该机制通过一系列残差卷积模块直接建模词元间关系的演化。其主要动机有两点:一方面,不同层的注意力图共享可迁移知识,因此添加残差连接能够促进词元间关系信息在层间流动;另一方面,不同抽象层级的注意力图天然存在演化趋势,因此利用专门的基于卷积的模块来捕捉这一过程是有益的。搭载所提机制的卷积增强演化注意力网络在时间序列表征、自然语言理解、机器翻译、图像分类等多种应用中均取得了优异性能。尤其在时间序列表征任务上,演化注意力增强扩张卷积(Evolving Attention-enhanced Dilated Convolutional, EA-DC-)Transformer显著优于现有最优模型,与最佳SOTA模型相比平均提升17%。据我们所知,这是首个显式建模注意力图逐层演化过程的研究。我们的实现代码可在https://github.com/pkuyym/EvolvingAttention获取。

英文摘要:

Attention-based neural networks, such as Transformers, have become ubiquitous in numerous applications, including computer vision, natural language processing, and time-series analysis. In all kinds of attention networks, the attention maps are crucial as they encode semantic dependencies between input tokens. However, most existing attention networks perform modeling or reasoning based on representations , wherein the attention maps of different layers are learned separately without explicit interactions. In this paper, we propose a novel and generic evolving attention mechanism, which directly models the evolution of inter-token relationships through a chain of residual convolutional modules. The major motivations are twofold. On the one hand, the attention maps in different layers share transferable knowledge, thus adding a residual connection can facilitate the information flow of inter-token relationships across layers. On the other hand, there is naturally an evolutionary trend among attention maps at different abstraction levels, so it is beneficial to exploit a dedicated convolution-based module to capture this process. Equipped with the proposed mechanism, the convolution-enhanced evolving attention networks achieve superior performance in various applications, including time-series representation, natural language understanding, machine translation, and image classification. Especially on time-series representation tasks, Evolving Attention-enhanced Dilated Convolutional (EA-DC-) Transformer outperforms state-of-the-art models significantly, achieving an average of 17% improvement compared to the best SOTA. To the best of our knowledge, this is the first work that explicitly models the layer-wise evolution of attention maps. Our implementation is available at https://github.com/pkuyym/EvolvingAttention.

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

↑