Improving Image Clustering with Artifacts Attenuation via Inference-Time Attention Engineering
Not on the map. Why?
Abstract (arXiv)
The goal of this paper is to improve the performance of pretrained Vision Transformer (ViT) models, particularly DINOv2, in image clustering task without requiring re-training or fine-tuning. As model size increases, high-norm artifacts anomaly appears in the patches of multi-head attention. We observe that this anomaly leads to reduced accuracy in zero-shot image clustering. These artifacts are characterized by disproportionately large values in the attention map compared to other patch tokens. To address these artifacts, we propose an approach called Inference-Time Attention Engineering (ITAE), which manipulates attention function during inference. Specifically, we identify the artifacts by investigating one of the Query-Key-Value (QKV) patches in the multi-head attention and attenuate their corresponding attention values inside the pretrained models. ITAE shows improved clustering accuracy on multiple datasets by exhibiting more expressive features in latent space. Our findings highlight the potential of ITAE as a practical solution for reducing artifacts in pretrained ViT models and improving model performance in clustering tasks without the need for re-training or fine-tuning.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 50 of its 60 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
50 of 60 references.
References · 50
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
38 more
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2021Vision Transformers for Dense Predictioncited by 1,789
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
- 2018Deep Clustering for Unsupervised Learning of Visual Featurescited by 1,020
- 2023Vision Transformers Need Registerscited by 844
- 2015Unsupervised Deep Embedding for Clustering Analysiscited by 763
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
- 2018Invariant Information Clustering for Unsupervised Image Classification and Segmentationcited by 454
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2023AnyDoor: Zero-shot Object-level Image Customizationcited by 411
- 2020SCAN: Learning to Classify Images without Labelscited by 351
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2023Triplane Meets Gaussian Splatting: Fast and Generalizable Single-View 3D Reconstruction with Transformerscited by 257
- 2016Deep Unsupervised Clustering with Gaussian Mixture Variational Autoencoderscited by 219
- 2016Variational Deep Embedding: An Unsupervised and Generative Approach to Clusteringcited by 219
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
- 2021Vision Transformer for Small-Size Datasetscited by 122
- 2024EMR-Merging: Tuning-Free High-Performance Model Mergingcited by 108
- 2018ClusterGAN : Latent Space Clustering in Generative Adversarial Networkscited by 75
- 2019Deep Spectral Clustering using Dual Autoencoder Networkcited by 71
- 2021Clustering-friendly Representation Learning via Instance Discrimination and Feature Decorrelationcited by 65
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2023Exploring the Limits of Deep Image Clustering using Pretrained Modelscited by 33
- 2024Training-Free Pretrained Model Mergingcited by 32
- 2022Revisiting a kNN-based Image Classification System with High-capacity Storagecited by 22
- 2023Image Clustering via the Principle of Rate Reduction in the Age of Pretrained Modelscited by 22
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
- 2022Deep Clustering with Features from Self-Supervised Pretrainingcited by 14
- 2024Revisiting Relevance Feedback for CLIP-based Interactive Image Retrievalcited by 3
Built on by
Citing papers per year: 2025: 2.
2 papers.