Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

SAC: Accelerating and Structuring Self-Attention via Sparse Adaptive Connection (2003.09833v3)

Published 22 Mar 2020 in cs.CL and cs.LG

Abstract: While the self-attention mechanism has been widely used in a wide variety of tasks, it has the unfortunate property of a quadratic cost with respect to the input length, which makes it difficult to deal with long inputs. In this paper, we present a method for accelerating and structuring self-attentions: Sparse Adaptive Connection (SAC). In SAC, we regard the input sequence as a graph and attention operations are performed between linked nodes. In contrast with previous self-attention models with pre-defined structures (edges), the model learns to construct attention edges to improve task-specific performances. In this way, the model is able to select the most salient nodes and reduce the quadratic complexity regardless of the sequence length. Based on SAC, we show that previous variants of self-attention models are its special cases. Through extensive experiments on neural machine translation, LLMing, graph representation learning and image classification, we demonstrate SAC is competitive with state-of-the-art models while significantly reducing memory cost.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Xiaoya Li (42 papers)
  2. Yuxian Meng (37 papers)
  3. Mingxin Zhou (8 papers)
  4. Qinghong Han (11 papers)
  5. Fei Wu (317 papers)
  6. Jiwei Li (137 papers)
Citations (20)