PaCa-ViT: Learning Patch-to-Cluster Attention in Vision Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Mask R-CNNcited by 7,259
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016Feature Pyramid Networks for Object Detectioncited by 5,021
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Going Deeper with Convolutionscited by 4,231
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2017Random Erasing Data Augmentationcited by 1,235
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2020Efficient Transformers: A Surveycited by 784
- 2018Image Transformercited by 770
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2021Transformer in Transformercited by 632
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2022How Do Vision Transformers Work?cited by 305
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 273
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2022Patches Are All You Need?cited by 201
- 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 175
- 2020How Much Position Information Do Convolutional Neural Networks Encode?cited by 171
- 2021P2T: Pyramid Pooling Transformer for Scene Understandingcited by 84
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 4; 2025: 2; 2026: 3.
11 papers.
- 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretationcited by 9
- 2024Multi-View Attentive Contextualization for Multi-View 3D Object Detectioncited by 7
- 2023ComPtr: Towards Diverse Bi-source Dense Prediction Tasks via A Simple yet General Complementary Transformercited by 3
- 2024SeTformer is What You Need for Vision and Languagecited by 3
- 2025Efficient Data Driven Mixture-of-Expert Extraction from Trained Networkscited by 3
- 2025EvoPS: Evolutionary Patch Selection for Whole Slide Image Analysis in Computational Pathologycited by 1
- 2022Accelerating Transfer Learning with Near-Data Computation on Cloud Object Storescited by 0
- 2024Restorer: Removing Multi-Degradation with All-Axis Attention and Prompt Guidancecited by 0
- 2026How to Build Robust, Scalable Models for GSV-Based Indicators in Neighborhood Researchcited by 0
- 2026Patch Hierarchical Attention Transformer for Efficient Particle Jet Taggingcited by 0
- 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Visioncited by 0
- 2026PRISM: Progressive Reasoning through Iterative Slot Memory for Vision29 May 2026
- 2026Patch Hierarchical Attention Transformer for Efficient Particle Jet Tagging20 May 2026
- 2026How to Build Robust, Scalable Models for GSV-Based Indicators in Neighborhood Research10 Jan 2026
- 2025EvoPS: Evolutionary Patch Selection for Whole Slide Image Analysis in Computational Pathology10 Nov 2025
- 2025Efficient Data Driven Mixture-of-Expert Extraction from Trained Networks21 May 2025
- 2024Restorer: Removing Multi-Degradation with All-Axis Attention and Prompt Guidance18 Jun 2024
- 2024Multi-View Attentive Contextualization for Multi-View 3D Object Detection20 May 2024
- 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretation16 May 2024
- 2024SeTformer is What You Need for Vision and Language7 Jan 2024
- 2023ComPtr: Towards Diverse Bi-source Dense Prediction Tasks via A Simple yet General Complementary Transformer23 Jul 2023
- 2022Accelerating Transfer Learning with Near-Data Computation on Cloud Object Stores16 Oct 2022