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

Cluster-Former:一种基于稀疏Transformer的长距离相关编码算法

Cluster-Former: Clustering-based Sparse Transformer for Long-Range Dependency Encoding

Microsoft Corporation(微软公司)

Shuohang Wang, Luowei Zhou, Zhe Gan, Yen-Chun Chen, Yuwei Fang, Siqi Sun, Yu Cheng, Jingjing Liu

摘要:

Transformer在深度学习领域已经变得无处不在。决定其成功的关键因素之一是自我注意力机制,它允许在输入标记上进行完全连接的上下文编码。然而,尽管它在建模短序列时有效,但当处理具有极长范围依赖性的输入时,自我注意力会受到影响,因为其复杂性相对于序列长度呈二次增长。因此,长序列通常由Transformer使用滑动窗口以块的形式编码。在本文中,我们提出了一种新的基于聚类的稀疏Transformer,以执行跨块序列的注意力。该框架基于两种独特的Transformer层:滑动窗口层和前处理层,它们联合迭代地编码局部序列信息和全局上下文。这种新设计允许在本地窗口之外进行信息集成,这对于依赖于远程依赖关系的问答(QA)任务尤其有益。实验表明,在几个主要的QA基准测试中,该算法达到了最先进的性能。

英文摘要:

Transformer has become ubiquitous in the deep learning field. One of the key ingredients that destined its success is the self-attention mechanism, which allows fully-connected contextual encoding over input tokens. However, despite its effectiveness in modeling short sequences, self-attention suffers when handling inputs with extreme long-range dependencies, as its complexity grows quadratically with respect to the sequence length. Therefore, long sequences are often encoded by Transformer in chunks using a sliding window. In this paper, we propose Cluster-Former, a novel clustering-based sparse Transformer to perform attention across chunked sequences. The proposed framework is pivoted on two unique types of Transformer layer: Sliding-Window Layer and Cluster-Former Layer, which encode local sequence information and global context jointly and iteratively. This new design allows information integration beyond local windows, which is especially beneficial for question answering (QA) tasks that rely on long-range dependencies. Experiments show that Cluster-Former achieves state-of-the-art performance on several major QA benchmarks.

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

↑