Lune

ACL2022Top-tier venue

ClusterFormer: Neural Clustering Attention for Efficient and Effective Transformer

Ningning Wang, Guobing Gan, Peng Zhang, Shuai Zhang, Victor Junqiu Wei, Qun Liu, Xin Jiang

Abstract

Recently, a lot of research has been carried out to improve the efficiency of Transformer. Among them, the sparse pattern-based method is an important branch of efficient Transformers. However, some existing sparse methods usually use fixed patterns to select words, without considering similarities between words. Other sparse methods use clustering patterns to select words, but the clustering process is separate from the training process of the target task, which causes a decrease in effectiveness. To address these limitations, we design a neural clustering method, which can be seamlessly integrated into the Self-Attention Mechanism in Transformer. The clustering task and the target task are jointly trained and optimized to benefit each other, leading to significant effectiveness improvement. In addition, our method groups the words with strong dependencies into the same cluster and performs the attention mechanism for each cluster independently, which improves the efficiency. We verified our method on machine translation, text classification, natural language inference, and text matching tasks. Experimental results show that our method outperforms two typical sparse attention methods, Reformer and Routing Transformer while having a comparable or even better time and memory efficiency.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention cites Reformer: The Efficient Transformer
  • Transformer-VQ: Linear-Time Transformers via Vector Quantization cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Transformer-VQ: Linear-Time Transformers via Vector Quantization cites Blockwise Self-Attention for Long Document Understanding
  • Transformer-VQ: Linear-Time Transformers via Vector Quantization cites Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention
  • Transformer-VQ: Linear-Time Transformers via Vector Quantization cites Reformer: The Efficient Transformer
  • Blockwise Self-Attention for Long Document Understanding cites Reformer: The Efficient Transformer
  • Treeformer: Dense Gradient Trees for Efficient Attention Computation cites Reformer: The Efficient Transformer
  • DARKER: Efficient Transformer with Data-driven Attention Mechanism for Time Series cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • DARKER: Efficient Transformer with Data-driven Attention Mechanism for Time Series cites Reformer: The Efficient Transformer
  • Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention cites Reformer: The Efficient Transformer
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Transformer-VQ: Linear-Time Transformers via Vector QuantizationLucas D. LingleICLR 2024 · 30 citations
  2. DARKER: Efficient Transformer with Data-driven Attention Mechanism for Time SeriesRundong Zuo, Guozhong Li, Rui Cao, Byron Choi et al.VLDB 2024 · 4 citations
  3. Treeformer: Dense Gradient Trees for Efficient Attention ComputationLovish Madaan, Srinadh Bhojanapalli, Himanshu Jain, Prateek JainICLR 2023

Builds on5

  1. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  2. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
  3. Nyströmformer: A Nyström-based Algorithm for Approximating Self-AttentionYunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan et al.AAAI 2021 · 675 citations
  4. Blockwise Self-Attention for Long Document UnderstandingJiezhong Qiu, Hao Ma, Omer Levy, Wen-tau Yih et al.EMNLP Findings 2020 · 165 citations
  5. Multiple Positional Self-Attention Network for Text ClassificationBiyun Dai, Jinlong Li, Ruoyi XuAAAI 2020 · 10 citations

Related papers

  1. ClusterAttn: KV Cache Compression under Intrinsic Attention ClusteringMinwei Zhang, Haifeng Sun, Jingyu Wang, Shaolong Li et al.ACL 2025 · 5 citations
  2. SpARC: Token Similarity-Aware Sparse Attention Transformer Accelerator via Row-wise ClusteringHan Cho, Dongjun Kim, Seung-Eon Hwang, Jongsun ParkDAC 2024 · 7 citations
  3. NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language ModelsAmit Dhurandhar, Tejaswini Pedapati, Ronny Luss, Soham Dan et al.ACL Findings 2024 · 3 citations
  4. Neural Machine Translation with Joint RepresentationYanyang Li, Qiang Wang, Tong Xiao, Tongran Liu et al.AAAI 2020 · 10 citations
  5. Diffuser: Efficient Transformers with Multi-Hop Attention Diffusion for Long SequencesAosong Feng, Irene Li, Yuang Jiang, Rex YingAAAI 2023 · 20 citations
Dusk over the sea between two cliffs drawn in fine vertical lines