S$^3$Attention:通过平滑骨架草图改进长序列注意力机制
S$^3$Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketching
AI总结:
针对长序列任务中注意力机制二次复杂度高、信息保留与计算削减难平衡的问题,提出S$^3$Attention,通过平滑模块与行列同选矩阵草图实现线性复杂度下降噪,经理论与LRA等实验验证性能优于现有注意力变体。
摘要:
基于注意力的模型已在众多应用中取得诸多显著突破。然而,注意力的二次复杂度使得基于原始注意力的模型难以应用于长序列任务。研究人员提出了各类改进的注意力结构,通过引入低秩性并以子序列近似整个序列来降低计算成本。这类方法最具挑战性的部分在于维持信息保留与计算量削减之间的恰当平衡:使用的子序列越长,信息保留效果越好,但代价是引入更多噪声与计算成本。本文提出一种基于平滑骨架草图的注意力结构,命名为S$^3$Attention,它在协调这一权衡问题上较先前的研究有显著提升。S$^3$Attention具备两种机制,可在保持与序列长度呈线性复杂度的同时,有效将噪声影响降至最低:用于在长序列上混合信息的平滑模块,以及一种可同时从输入矩阵中选取列与行的矩阵草图方法。我们从理论和实证两方面验证了S$^3$Attention的有效性。在Long Range Arena(LRA,长程竞技场)数据集和六项时间序列预测任务上的广泛研究表明,S$^3$Attention的性能显著优于原始注意力及其他最先进的注意力结构变体。
英文摘要:
Attention based models have achieved many remarkable breakthroughs in numerous applications. However, the quadratic complexity of Attention makes the vanilla Attention based models hard to apply to long sequence tasks. Various improved Attention structures are proposed to reduce the computation cost by inducing low rankness and approximating the whole sequence by sub-sequences. The most challenging part of those approaches is maintaining the proper balance between information preservation and computation reduction: the longer sub-sequences used, the better information is preserved, but at the price of introducing more noise and computational costs. In this paper, we propose a smoothed skeleton sketching based Attention structure, coined S$^3$Attention, which significantly improves upon the previous attempts to negotiate this trade-off. S$^3$Attention has two mechanisms to effectively minimize the impact of noise while keeping the linear complexity to the sequence length: a smoothing block to mix information over long sequences and a matrix sketching method that simultaneously selects columns and rows from the input matrix. We verify the effectiveness of S$^3$Attention both theoretically and empirically. Extensive studies over Long Range Arena (LRA) datasets and six time-series forecasting show that S$^3$Attention significantly outperforms both vanilla Attention and other state-of-the-art variants of Attention structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。