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

CAB:长序列建模的综合注意力基准测试

CAB: Comprehensive Attention Benchmarking on Long Sequence Modeling

Shanghai AI Laboratory(上海人工智能实验室);Shanghai Jiao Tong University(上海交通大学);The University of Hong Kong(香港大学)

Jun Zhang, Shuyang Jiang, Jiangtao Feng, Lin Zheng, Lingpeng Kong

AI总结:

针对现有长序列注意力基准LRA覆盖模式不全的问题,本文提出含4种注意力模式、7项真实任务、8种骨干网络的CAB基准,测试9种高效注意力架构,揭示了高效注意力的多项核心特性。

摘要:

Transformer已在语言、图像和语音处理领域取得了显著成功。近年来,研究者们提出了各类高效注意力架构,旨在提升Transformer的效率同时基本保留其效能,尤其是在长序列建模场景下。测试这类高效方法长程建模能力的常用基准是Long Range Arena(LRA,长程竞技场)。但LRA仅聚焦于标准双向(即非因果)自注意力,完全忽略了对下游应用同等重要的交叉注意力与单向(即因果)注意力。本文提出了Comprehensive Attention Benchmark(CAB,综合注意力基准),该基准基于细粒度注意力分类体系,涵盖四种可区分的注意力模式:非因果自注意力、因果自注意力、非因果交叉注意力与因果交叉注意力。CAB收集了来自不同研究领域的7项真实世界任务,用于在四种注意力模式下评估各类高效注意力方法。在这些任务中,CAB在8种骨干网络中验证高效注意力方法,以展现其在不同神经架构间的泛化性。我们开展了详尽实验,在CAB上对9种基于不同设计理念的常用高效注意力架构的性能进行基准测试。大量实验结果也揭示了高效注意力的核心问题,例如相较于原生注意力的效率长度表现、跨注意力模式的性能一致性、注意力机制的增益,以及长上下文语言建模中的插值/外推表现。

英文摘要:

Transformer has achieved remarkable success in language, image, and speech processing. Recently, various efficient attention architectures have been proposed to improve transformer's efficiency while largely preserving its efficacy, especially in modeling long sequences. A widely-used benchmark to test these efficient methods' capability on long-range modeling is Long Range Arena (LRA). However, LRA only focuses on the standard bidirectional (or noncausal) self attention, and completely ignores cross attentions and unidirectional (or causal) attentions, which are equally important to downstream applications. In this paper, we propose Comprehensive Attention Benchmark (CAB) under a fine-grained attention taxonomy with four distinguishable attention patterns, namely, noncausal self, causal self, noncausal cross, and causal cross attentions. CAB collects seven real-world tasks from different research areas to evaluate efficient attentions under the four attention patterns. Among these tasks, CAB validates efficient attentions in eight backbone networks to show their generalization across neural architectures. We conduct exhaustive experiments to benchmark the performances of nine widely-used efficient attention architectures designed with different philosophies on CAB. Extensive experimental results also shed light on the fundamental problems of efficient attentions, such as efficiency length against vanilla attention, performance consistency across attention patterns, the benefit of attention mechanisms, and interpolation/extrapolation on long-context language modeling.

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

↑