SAttention: Improving Long Sequence Attention with Smoothed Skeleton Sketching
arXiv:2408.08567 · doi:10.1109/JSTSP.2024.3446173
Abstract
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 SAttention, which significantly improves upon the previous attempts to negotiate this trade-off. SAttention 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 SAttention both theoretically and empirically. Extensive studies over Long Range Arena (LRA) datasets and six time-series forecasting show that SAttention significantly outperforms both vanilla Attention and other state-of-the-art variants of Attention structures.
References in corpus (8)
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting
- Rapid Robust Principal Component Analysis: CUR Accelerated Inexact Low Rank Estimation
- Robust CUR Decomposition: Theory and Imaging Applications
- Matrix Completion with Cross-Concentrated Sampling: Bridging Uniform Sampling and CUR Sampling
- Robust Tensor CUR Decompositions: Rapid Low-Tucker-Rank Tensor Recovery with Sparse Corruption
- Long Horizon Forecasting With Temporal Point Processes
- On the Robustness of Cross-Concentrated Sampling for Matrix Completion