mlsanityData to 7 Oct 2026

Improving Image Clustering with Artifacts Attenuation via Inference-Time Attention Engineering

arXiv 2410.04801 ↗First posted 7 Oct 2024cs.CV cs.LGcited by 2

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  9. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  10. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  11. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  12. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
38 more
  1. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  3. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  4. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  5. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  6. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  7. 2020Exploring Simple Siamese Representation Learningcited by 2,853
  8. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
  9. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
  10. 2021Vision Transformers for Dense Predictioncited by 1,789
  11. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  12. 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
  13. 2018Deep Clustering for Unsupervised Learning of Visual Featurescited by 1,020
  14. 2023Vision Transformers Need Registerscited by 844
  15. 2015Unsupervised Deep Embedding for Clustering Analysiscited by 763
  16. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
  17. 2018Invariant Information Clustering for Unsupervised Image Classification and Segmentationcited by 454
  18. 2020End-to-End Video Instance Segmentation with Transformerscited by 443
  19. 2023AnyDoor: Zero-shot Object-level Image Customizationcited by 411
  20. 2020SCAN: Learning to Classify Images without Labelscited by 351
  21. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  22. 2023Triplane Meets Gaussian Splatting: Fast and Generalizable Single-View 3D Reconstruction with Transformerscited by 257
  23. 2016Deep Unsupervised Clustering with Gaussian Mixture Variational Autoencoderscited by 219
  24. 2016Variational Deep Embedding: An Unsupervised and Generative Approach to Clusteringcited by 219
  25. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
  26. 2021Vision Transformer for Small-Size Datasetscited by 122
  27. 2024EMR-Merging: Tuning-Free High-Performance Model Mergingcited by 108
  28. 2018ClusterGAN : Latent Space Clustering in Generative Adversarial Networkscited by 75
  29. 2019Deep Spectral Clustering using Dual Autoencoder Networkcited by 71
  30. 2021Clustering-friendly Representation Learning via Instance Discrimination and Feature Decorrelationcited by 65
  31. 2023A Study on ReLU and Softmax in Transformercited by 53
  32. 2023Exploring the Limits of Deep Image Clustering using Pretrained Modelscited by 33
  33. 2024Training-Free Pretrained Model Mergingcited by 32
  34. 2022Revisiting a kNN-based Image Classification System with High-capacity Storagecited by 22
  35. 2023Image Clustering via the Principle of Rate Reduction in the Age of Pretrained Modelscited by 22
  36. 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
  37. 2022Deep Clustering with Features from Self-Supervised Pretrainingcited by 14
  38. 2024Revisiting Relevance Feedback for CLIP-based Interactive Image Retrievalcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.