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.
Hierarchical Bracketing Encodings for Dependency Parsing as Tagging
Universidade da Coruña, CITIC(乌拉圭科鲁纳大学,CITIC);Tampere University, Math. Res. Centre, Computing Sciences(塔尔基大学,数学研究中心,计算科学);University of Helsinki, Faculty of Arts, Digital Humanities(赫尔辛基大学,人文学院,数字人文)
Bracketing Encodings for 2-Planar Dependency Parsing
Universidade da Coruña(拉科鲁尼亚大学);CITIC;FASTPARSE Lab(FASTPARSE实验室);LyS Research Group(LyS研究组);Departamento de Ciencias de la Computación y Tecnologías de la Información(计算机科学与信息技术系)
Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Models
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);Shanghai Engineering Research Center of Intelligent Vision and Imaging(上海智能视觉与成像工程技术研究中心)
A Unifying Theory of Transition-based and Sequence Labeling Parsing
Universidade da Coruña(拉科鲁尼亚大学);CITIC;FASTPARSE Lab(FASTPARSE实验室);LyS Research Group(LyS研究组);Departamento de Ciencias de la Computación y Tecnologías de la Información(计算机科学与信息技术系)
Parsing All: Syntax and Semantics, Dependencies and Spans
Department of Computer Science and Engineering, Shanghai Jiao Tong University(上海交通大学计算机科学与工程系);Key Laboratory of Shanghai Education Commission for Intelligent Interactionand Cognitive Engineering, Shanghai Jiao Tong University(上海市教育委员会智能交互与认知工程重点实验室(上海交通大学));MoE Key Lab of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University(教育部人工智能重点实验室(上海交通大学人工智能研究院))