mlsanityData to 7 Oct 2026

PaCa-ViT: Learning Patch-to-Cluster Attention in Vision Transformers

arXiv 2203.11987 ↗First posted 22 Mar 2022cs.CVcited by 11

Not on the map. Why?

Abstract (arXiv)

Vision Transformers (ViTs) are built on the assumption of treating image patches as ``visual tokens" and learn patch-to-patch attention. The patch embedding based tokenizer has a semantic gap with respect to its counterpart, the textual tokenizer. The patch-to-patch attention suffers from the quadratic complexity issue, and also makes it non-trivial to explain learned ViTs. To address these issues in ViT, this paper proposes to learn Patch-to-Cluster attention (PaCa) in ViT. Queries in our PaCa-ViT starts with patches, while keys and values are directly based on clustering (with a predefined small number of clusters). The clusters are learned end-to-end, leading to better tokenizers and inducing joint clustering-for-attention and attention-for-clustering for better and interpretable models. The quadratic complexity is relaxed to linear complexity. The proposed PaCa module is used in designing efficient and interpretable ViT backbones and semantic segmentation head networks. In experiments, the proposed methods are tested on ImageNet-1k image classification, MS-COCO object detection and instance segmentation and MIT-ADE20k semantic segmentation. Compared with the prior art, it obtains better performance in all the three benchmarks than the SWin and the PVTs by significant margins in ImageNet-1k and MIT-ADE20k. It is also significantly more efficient than PVT models in MS-COCO and MIT-ADE20k due to the linear complexity. The learned clusters are semantically meaningful. Code and model checkpoints are available at https://github.com/iVMCL/PaCaViT.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 50 of its 66 references that are in the map. First posted on arXiv 22 Mar 2022.

Builds on

50 of 66 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2017Mask R-CNNcited by 7,259
  7. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  8. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  9. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  10. 2016Feature Pyramid Networks for Object Detectioncited by 5,021
  11. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  12. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
38 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2014Going Deeper with Convolutionscited by 4,231
  3. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  6. 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
  7. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  11. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  12. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
  13. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  14. 2017Random Erasing Data Augmentationcited by 1,235
  15. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  16. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
  17. 2016Deep Networks with Stochastic Depthcited by 973
  18. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  19. 2020Efficient Transformers: A Surveycited by 784
  20. 2018Image Transformercited by 770
  21. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  22. 2019Panoptic Feature Pyramid Networkscited by 644
  23. 2021Transformer in Transformercited by 632
  24. 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
  25. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  26. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  27. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  28. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
  29. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  30. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
  31. 2022How Do Vision Transformers Work?cited by 305
  32. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  33. 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 273
  34. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  35. 2022Patches Are All You Need?cited by 201
  36. 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 175
  37. 2020How Much Position Information Do Convolutional Neural Networks Encode?cited by 171
  38. 2021P2T: Pyramid Pooling Transformer for Scene Understandingcited by 84

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 1; 2024: 4; 2025: 2; 2026: 3.

11 papers.