arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.05359cs.LGcs.CLstat.ML
收藏

素描作为理解和加速长序列自注意力的工具

Sketching as a Tool for Understanding and Accelerating Self-attention for Long Sequences

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Amazon Alexa AI(亚马逊 Alexa 人工智能)

Yifan Chen, Qi Zeng, Dilek Hakkani-Tur, Di Jin, Heng Ji, Yun Yang

摘要:

由于自注意力模块的二次空间复杂度和时间复杂度,基于变换的模型在处理长序列时效率不高。为了解决这个问题,Linformer和Informer分别通过低维投影和行选择将二次复杂度降低到线性(模对数因子)。这两个模型是内在联系的,为了理解它们的联系,我们引入了矩阵素描的理论框架。在理论分析的基础上,提出了Skeinformer算法,通过列采样、自适应行归一化和导频采样重用三个部分,进一步提高了自注意力矩阵逼近的精度。长距离竞技场(LRA)基准上的实验表明,我们的方法优于替代品,具有一贯较小的时间/空间足迹。

英文摘要:

Transformer-based models are not efficient in processing long sequences due to the quadratic space and time complexity of the self-attention modules. To address this limitation, Linformer and Informer are proposed to reduce the quadratic complexity to linear (modulo logarithmic factors) via low-dimensional projection and row selection respectively. These two models are intrinsically connected, and to understand their connection, we introduce a theoretical framework of matrix sketching. Based on the theoretical analysis, we propose Skeinformer to accelerate self-attention and further improve the accuracy of matrix approximation to self-attention with three carefully designed components: column sampling, adaptive row normalization and pilot sampling reutilization. Experiments on the Long Range Arena (LRA) benchmark demonstrate that our methods outperform alternatives with a consistently smaller time/space footprint.

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

↑