TL;DR
Deep clustering methods like DeepCluster learn visual representations by alternating between clustering image embeddings with $k$-means and training a network on the resulting pseudo-labels. This paper introduces Unsupervised Image Classification (UIC), which removes the expensive, memory-heavy offline clustering step entirely by letting the network assign its own pseudo-labels directly through its softmax output. By coupling this with dual-view data augmentation, UIC matches or beats DeepCluster while training twice as fast and scaling seamlessly to large datasets.
What Problem Does This Paper Address?
Self-supervised visual representation learning aims to train neural networks on unlabeled images so that the resulting features can transfer cleanly to downstream tasks like detection and segmentation. A prominent paradigm is deep clustering (e.g., DeepCluster), which alternates between two steps:
- Extracting latent embeddings across the entire dataset and clustering them via $k$-means to generate discrete pseudo-labels.
- Training the CNN backbone and a linear classification head to predict those pseudo-labels using standard cross-entropy.
However, storing latent embeddings for millions (or billions) of images requires massive memory that scales linearly with dataset size ($O(N)$). Furthermore, cluster IDs permute after every clustering run, forcing the classification head to be re-initialized from scratch each epoch.
The authors ask a straightforward question: Can we eliminate global clustering altogether and treat unsupervised representation learning purely as standard image classification?
Methods
The authors propose Unsupervised Image Classification (UIC), unifying pseudo-label assignment and feature learning into a single forward-backward workflow:
- Direct Pseudo-Label Generation: Instead of running $k$-means, the model simply passes an image through its current classification head (backbone + linear classifier with $k$ outputs) and takes the $\arg\max$ of the softmax probabilities as the pseudo-label.
- Dual Data Augmentation: To prevent the model from collapsing into trivial constant assignments or local optima, data augmentation is applied to both stages. Given an image $x_n$, a pseudo-label $y_n$ is produced from transformed view $t_1(x_n)$, and the network is trained using cross-entropy loss on a distinct transformed view $t_2(x_n)$.
- Computational Efficiency: The forward pass used for training in the current epoch doubles as the label generator for the next epoch, cutting out an entire extra forward pass and making training roughly twice as fast as DeepCluster.
- Stability Tricks:
- Empty class handling: If a class receives zero samples, the largest class is split into two equal halves, assigning one half to the empty class (primarily needed only during early initialization).
- Class-balanced sampling: Uniformly samples across classes to prevent majority-class collapse.
- Theoretical Link: The authors show that UIC is conceptually equivalent to a 1-iteration deep clustering algorithm where cluster centroids remain fixed as orthogonal one-hot basis vectors. It also mirrors contrastive learning: predicting the pseudo-label pulls two views of the same image toward the same prototype vector while pushing away the remaining $k-1$ classes.
Datasets
The authors evaluate representation quality across multiple standard benchmarks:
- Pre-training: ImageNet-1k (1.28 million unlabeled images).
- Linear Probe Evaluation: ImageNet (evaluating frozen convolutional features from AlexNet or ResNet-50).
- Transfer Learning (Fine-tuning): PASCAL VOC (multi-label classification, object detection using Fast R-CNN, and semantic segmentation using FCN).
- Transfer Learning (Metric-based Few-Shot): miniImageNet evaluated via Prototypical Networks without fine-tuning.
Key Insights and Ideas
- Explicit clustering is unnecessary: Clustering the entire latent space with iterative $k$-means is not what makes DeepCluster work. Enforcing consistency across augmented views using fixed, discrete class heads achieves the same effect.
- Dual augmentation prevents collapse: Augmenting both the label generation view and the optimization view introduces sufficient label noise to drive the network toward augmentation-invariant representations.
- Natural balance without optimal transport: Prior works (such as SelfLabel) relied on optimal transport algorithms like Sinkhorn-Knopp to force equal partition sizes across clusters. UIC achieves an almost uniform distribution across classes naturally simply by combining class-balanced batch sampling with standard training.
Key Results
- Speedup: UIC trains $2\times$ faster than DeepCluster by reusing forward activations from representation learning instead of requiring an offline feature extraction and clustering phase.
- ImageNet Linear Probing (AlexNet):
- Under standard settings, UIC achieves 41.6% (conv3), 41.5% (conv4), and 39.0% (conv5) top-1 accuracy, outperforming DeepCluster (41.0%, 39.6%, 38.2%).
- Adding strong data augmentation (color jitter, Gaussian blur) boosts AlexNet conv5 accuracy to 44.3%.
- Modern Architectures (ResNet-50):
- With strong augmentation and an MLP projection head, UIC attains 64.4% top-1 linear probing accuracy on ImageNet, outperforming non-contrastive methods like SelfLabel (61.5%).
- Downstream Transfer (PASCAL VOC):
- AlexNet pre-trained with UIC reaches 54.9% mAP on VOC object detection and 45.9% mIU on segmentation, competitive with DeepCluster (55.4% mAP, 45.1% mIU) and surpassing methods like BiGAN and Split-Brain.
Limitations and Future Work
- Performance Gap with Contrastive SOTA: While simpler and faster than deep clustering, UIC trails behind pure contrastive methods like SimCLR (69.3%) and MoCo-v2 (71.1%) on ResNet-50 benchmarks.
- Sensitivity to Predefined Class Count ($k$): The number of pseudo-classes must be chosen beforehand (tested at 3k, 5k, and 10k). While 3k performed best on AlexNet, setting the optimal number of prototypes remains an empirical hyperparameter choice.
- Future Work: The authors highlight combining UIC's streamlined classification format with complementary self-supervised auxiliary signals and modern training enhancements.
Summary updated