This ICLR 2021 paper investigates a surprising trend in computer vision: why does unsupervised pretraining (which ignores labels) often outperform supervised pretraining (which uses them) when transferring to downstream tasks like object detection? The authors dissect the "black box" of instance discrimination to understand what knowledge is actually being transferred and how we can use human labels more effectively.
The Problem: Task Misalignment
For years, the standard recipe for computer vision was to pretrain on ImageNet with labels, then finetune on a target task. However, recent contrastive learning methods like MoCo and SimCLR—which learn by distinguishing one image from all others without using labels—started beating supervised models on tasks like object detection.
Why would ignoring a million human-annotated labels lead to better features? The authors identify a "task misalignment": supervised learning encourages intra-category invariance (making all "dogs" look the same in feature space). While great for classification, this process discards the fine-grained, instance-specific details (pose, texture, exact boundaries) needed for precise object localization and segmentation.
Diagnosing the Models
The authors employ several clever diagnostic techniques to probe the models and uncover why unsupervised methods transfer better:
1. Feature Inversion (Holistic vs. Discriminative) Using the "Deep Image Prior" technique, the authors attempted to reconstruct the original pixels from the learned features. They found that unsupervised models (like MoCo and SimCLR) allow for holistic reconstruction of the entire image. In contrast, supervised models only preserve the "discriminative parts" (e.g., just the head of a bird) needed to identify the class, discarding the rest.
2. Error Diagnosis (The Invariance Trap) Using a detection toolbox to categorize false positives, the authors found that supervised models were significantly more prone to localization errors (getting the bounding box slightly wrong) compared to unsupervised models. By forcing all instances of a category to cluster together, supervised learning destroys the unique "signature" of an image that downstream tasks need for precise localization.
The Solution: Exemplar-based Supervised Pretraining
Based on their findings, the authors propose a new pretraining objective. Instead of forcing all images of the same category to have similar features, they treat every image as its own "class" (instance discrimination). They use the labels only to ensure that the model doesn't accidentally treat two different images of the same category as "negatives" to be pushed apart. In this framework, labels act as filters for true negatives, rather than magnets pulling all same-class images together.
Key Results
- Localization Superiority: On PASCAL VOC, MoCo-v2 (unsupervised) achieved 48.5 AP, significantly higher than the 46.2 AP of standard supervised pretraining.
- The Best of Both Worlds: Their proposed Exemplar-v2 method (supervised but exemplar-based) outperformed MoCo-v2 across the board. For example, on ImageNet classification, it reached 68.9% (vs. MoCo's 67.5%) while also improving VOC detection to 48.8 AP.
- Low-level features are the MVP: The study confirms that transfer performance is driven primarily by low- and mid-level representations. High-level semantic overlap between the pretraining and target datasets matters much less than previously thought.
Limitations and Future Work
While the exemplar-based supervised method improves transfer, its ImageNet classification accuracy (68.9%) still lags behind traditional supervised learning (77.3%). This suggests a fundamental trade-off: features optimized for "naming" an object are not necessarily the best for "locating" it. Future research should look for pretraining objectives that can achieve high performance on both classification and transfer tasks simultaneously, perhaps by finding better ways to balance instance-level uniqueness with category-level semantics.
Summary updated