Abstract
Pre-training general-purpose visual features with convolutional neural networks without relying on annotations is a challenging and important task. Most recent efforts in unsupervised feature learning have focused on either small or highly curated datasets like ImageNet, whereas using uncurated raw datasets was found to decrease the feature quality when evaluated on a transfer task. Our goal is to bridge the performance gap between unsupervised methods trained on curated data, which are costly to obtain, and massive raw datasets that are easily available. To that effect, we propose a new unsupervised approach which leverages self-supervision and clustering to capture complementary statistics from large-scale data. We validate our approach on 96 million images from YFCC100M, achieving state-of-the-art results among unsupervised methods on standard benchmarks, which confirms the potential of unsupervised learning when only uncurated data are available. We also show that pre-training a supervised VGG-16 with our method achieves 74.9% top-1 classification accuracy on the validation set of ImageNet, which is an improvement of +0.8% over the same network trained from scratch.
Introduction
In computer vision, ImageNet has long served as the primary benchmark for pre-training. However, ImageNet is a highly curated dataset—human-labeled, balanced, and carefully cleaned. In contrast, real-world data is often messy, unbalanced, and lacks annotations. Previous research has shown that while unsupervised methods perform well on curated data, their performance often degrades when applied to "non-curated" raw data streams from the web.
This performance gap stems from two major challenges: the "long-tail" distribution of real-world data and the inherent instability of complex unsupervised tasks at scale. Simple pretext tasks, such as predicting image rotations, are stable but lack the semantic depth to improve significantly with more data. Conversely, clustering-based methods are powerful but can become computationally unstable and sensitive to data distribution when scaled.
Methodology: Hierarchical Unsupervised Learning
To address these challenges, we introduce DeeperCluster, a framework that fuses self-supervision and deep clustering into a single hierarchical system. This approach allows the model to learn both intra-image structures and inter-image semantic similarities.
The core components of the methodology include:
- Self-Supervision (RotNet): The model learns to predict one of four rotations (0°, 90°, 180°, 270°) applied to an input image, providing a stable structural signal.
- Hierarchical Deep Clustering: To handle 96 million images, we employ a two-level hierarchy. Level 1 partitions images into "super-classes" based on rotation and coarse clustering. Level 2 performs fine-grained clustering within these super-classes, reaching up to 320,000 total clusters.
- Distributed Optimization: We implemented a distributed k-means algorithm capable of re-clustering 96 million 4096-dimensional features across 64 GPUs in minutes, ensuring the system remains computationally feasible at scale.
- Data Pre-processing: Applying a Sobel filter to highlight edges and remove color information was found to be crucial, preventing the model from "cheating" by grouping images based on simple color histograms.
Scaling to the "Wild" Web
A central finding of this work is that DeeperCluster's performance continues to scale with both dataset size and the number of clusters. Unlike previous methods that often plateaued, our approach benefits significantly from the massive 96 million image YFCC100M dataset.
By utilizing a massive number of clusters, the model can capture rare "long-tail" concepts that would be lost in coarser setups. This ability to discover fine-grained semantic categories from uncurated data is a key advantage of the hierarchical approach.
Key Results and Transfer Learning
DeeperCluster achieves state-of-the-art results across several standard benchmarks:
- Pascal VOC 2007: Achieved 79.7% mAP in classification, outperforming previous unsupervised methods trained on both curated and non-curated data.
- ImageNet Pre-training: A VGG-16 network pre-trained with DeeperCluster on YFCC100M and then fine-tuned on ImageNet reached 74.9% top-1 accuracy, a +0.8% improvement over training from scratch.
- Generalization to Scenes: On the Places205 dataset, our unsupervised features matched the performance of a supervised ImageNet-trained model across nearly all layers, demonstrating strong generalization capabilities.
Conclusion
DeeperCluster demonstrates that massive scale can effectively compensate for a lack of manual curation. By combining stable self-supervision with scalable hierarchical clustering, we can leverage the vast amounts of uncurated data available on the web to learn high-quality visual features. While a domain gap still exists between Flickr images and object-centric datasets like ImageNet, this work paves the way for unsupervised learning on even larger, billion-image datasets.
Paper Citation: Caron, M., Bojanowski, P., Mairal, J., & Joulin, A. (2019). Unsupervised Pre-Training of Image Features on Non-Curated Data. arXiv:1905.01278v3.
Summary updated