Skip to main content
QUICK REVIEW

[Paper Review] ClusterFit: Improving Generalization of Visual Representations

Xueting Yan, Ishan Misra|arXiv (Cornell University)|Dec 6, 2019
Domain Adaptation and Few-Shot LearningComputer Science65 references6 citations
TL;DR

ClusterFit is a simple, post-hoc method that improves the generalization of weakly- and self-supervised visual representations by clustering features from a pre-trained model and fine-tuning a new network on these cluster assignments as pseudo-labels. It significantly boosts performance across 11 diverse image and video benchmarks, achieving up to 9% relative accuracy gains over state-of-the-art models without additional data or supervision.

ABSTRACT

Pre-training convolutional neural networks with weakly-supervised and self-supervised strategies is becoming increasingly popular for several computer vision tasks. However, due to the lack of strong discriminative signals, these learned representations may overfit to the pre-training objective (e.g., hashtag prediction) and not generalize well to downstream tasks. In this work, we present a simple strategy - ClusterFit (CF) to improve the robustness of the visual representations learned during pre-training. Given a dataset, we (a) cluster its features extracted from a pre-trained network using k-means and (b) re-train a new network from scratch on this dataset using cluster assignments as pseudo-labels. We empirically show that clustering helps reduce the pre-training task-specific information from the extracted features thereby minimizing overfitting to the same. Our approach is extensible to different pre-training frameworks -- weak- and self-supervised, modalities -- images and videos, and pre-training tasks -- object and action classification. Through extensive transfer learning experiments on 11 different target datasets of varied vocabularies and granularities, we show that ClusterFit significantly improves the representation quality compared to the state-of-the-art large-scale (millions / billions) weakly-supervised image and video models and self-supervised image models.

Motivation & Objective

  • To address overfitting in weakly- and self-supervised pre-training, where models learn artifacts from proxy objectives instead of general visual invariances.
  • To improve the transferability of visual representations by smoothing the feature space through unsupervised clustering.
  • To develop a scalable, architecture-agnostic method applicable to images, videos, and various pre-training frameworks (weakly- and self-supervised).
  • To demonstrate that post-hoc clustering and retraining can outperform complex pre-training objectives, even with large-scale models.
  • To show that a minimal, unsupervised clustering step can replace costly manual label engineering in pre-training.

Proposed method

  • Extract features from a pre-trained network on a new dataset using the pre-trained model.
  • Apply k-means clustering to the extracted features to group similar samples into clusters.
  • Use the resulting cluster assignments as pseudo-labels to train a new network from scratch.
  • Train the new network using standard cross-entropy loss on the cluster pseudo-labels to learn a smoother, more generalizable feature space.
  • The clustering step acts as a lossy compression that removes proxy-objective-specific artifacts while preserving visual coherence.
  • The method is agnostic to model architecture, modality (images/videos), and pre-training objective, enabling broad applicability.

Experimental results

Research questions

  • RQ1Can post-hoc clustering of features from a pre-trained model improve the generalization of visual representations?
  • RQ2Does removing proxy-objective-specific artifacts through clustering lead to better transfer performance on downstream tasks?
  • RQ3How does ClusterFit compare to state-of-the-art large-scale weakly- and self-supervised models across diverse datasets and modalities?
  • RQ4What is the impact of label space diversity and granularity on the effectiveness of the clustering-based pre-training?
  • RQ5Can a simple, unsupervised clustering step replace complex, manually engineered label spaces in pre-training?

Key findings

  • ClusterFit improves top-1 accuracy by up to 9% on ImageNet-1K and 7-9% on ImageNet-1K when applied to self-supervised models.
  • On weakly-supervised pre-training with 1.5K hashtags on 1 billion images, ClusterFit boosts accuracy by 4.6% on ImageNet-9K and 5.8% on iNaturalist.
  • For video pre-training on 19M videos with 438 hashtags, ClusterFit improves accuracy by 3.2% on Kinetics and 4.3% on Sports1M.
  • When using only the top 100 most frequent verbs in pre-training, ClusterFit achieves within 2% of the performance of the full 438-verb model, outperforming the original weakly-supervised model.
  • The method consistently improves performance across 11 diverse benchmarks, including image and video datasets with varied vocabularies and granularities.
  • The performance gain is achieved without additional data, supervision, or architectural changes, demonstrating the effectiveness of feature space smoothing via clustering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.