paper-with-me

Papers

Scatterbrain: Unifying Sparse and Low-rank Attention

2021-05-21 · NeurIPS 2021 12 · Beidi Chen, Tri Dao, Eric Winsor, Zhao Song, Atri Rudra, Christopher Ré

Recent advances in efficient Transformers have exploited either the sparsity or low-rank properties of attention matrices to reduce the computational and memory bottlenecks of modeling long sequences. However, it is still challenging to balance the trade-off between model quality and efficiency to perform a one-size-fits-all approximation for different tasks. To better understand this trade-off, we observe that sparse and low-rank approximations excel in different regimes, determined by the softmax temperature in attention, and sparse + low-rank can outperform each individually. Inspired by the classical robust-PCA algorithm for sparse and low-rank decomposition, we propose Scatterbrain, a novel way to unify sparse (via locality sensitive hashing) and low-rank (via kernel feature map) attention for accurate and efficient approximation. The estimation is unbiased with provably low error. We empirically show that Scatterbrain can achieve $2.1 \times$ lower error than baselines when serving as a drop-in replacement in BigGAN image generation and pre-trained T2T-ViT. On a pre-trained T2T Vision transformer, even without fine-tuning, Scatterbrain can reduce $98\%$ of attention memory at the cost of only $1\%$ drop in accuracy. We demonstrate Scatterbrain for end-to-end training with up to $4$ points better perplexity and 5 points better average accuracy than sparse or low-rank efficient transformers on language modeling and long-range-arena tasks.

📄 PDF Abstract BibTeX

Code (1)

hazyresearch/scatterbrain 공식 구현 pytorch

Tasks

Image GenerationLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Six Ways To Communicate To Someone At Expedia Via Phone And Email's. To communicate or get human at Expedia, the quickest option is typically to call their customer service at +1-888-829-0881 or +1(805) 330 (4056). You can also use the live chat…
Multi-Head Attention 설명 없음
Attention 설명 없음
Non-Local Operation A Non-Local Operation is a component for capturing long-range dependencies with deep neural networks. It is a generalization of the classical non-local mean operation in…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Truncation Trick The Truncation Trick is a latent sampling procedure for generative adversarial networks, where we sample $z$ from a truncated normal (where values which fall outside a range…
1x1 Convolution A 1 x 1 Convolution is a convolution with some special properties in that it can be used for dimensionality reduction,…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Scatterbrain: Unifying Sparse and Low-rank Attention Approximation

2021-10-28 · NeurIPS 2021 12 · Beidi Chen, Tri Dao, Eric Winsor, Zhao Song 외

Recent advances in efficient Transformers have exploited either the sparsity or low-rank properties of attention matrices to reduce the computational and memory bottlenecks of modeling long sequences. However, it is stil…

Image GenerationLanguage ModelingLanguage Modelling

ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attention

2022-11-09 · Jyotikrishna Dass, Shang Wu, Huihong Shi, Chaojian Li 외

Vision Transformer (ViT) has emerged as a competitive alternative to convolutional neural networks for various computer vision applications. Specifically, ViT multi-head attention layers make it possible to embed informa…

Fusion-in-T5: Unifying Document Ranking Signals for Improved Information Retrieval

2023-05-24 · Shi Yu, Chenghao Fan, Chenyan Xiong, David Jin 외

Common document ranking pipelines in search systems are cascade systems that involve multiple ranking layers to integrate different information step-by-step. In this paper, we propose a novel re-ranker Fusion-in-T5 (FiT5…

Document RankingInformation RetrievalPassage RankingRetrieval+1

ELSAA: Efficient Low-Rank and Sparse Attention Approximation for Training Transformers

2026-07-22 · Mahdi Heidari, Mohammad Mahdi Rahimi, Jaekyun Moon arxiv

The quadratic $N\times N$ attention score matrix remains a central obstacle to extending Transformers to longer input lengths. Existing efficient attention methods usually reduce this bottleneck by either imposing sparsi…

O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformers

2020-12-01 · NeurIPS 2020 12 · Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat 외

Recently, Transformer networks have redefined the state of the art in many NLP tasks. However, these models suffer from quadratic computational cost in the input sequence length $n$ to compute pairwise attention in each …