TL;DR
This paper introduces a data-efficient method for zero-shot learning (ZSL) that leverages noisy image-text pairs by employing a self-distillation technique with soft labels. Their approach achieves state-of-the-art performance on challenging ZSL benchmarks using significantly less training data than previous methods like CLIP.
What Problem Does This Paper Address?
Traditional computer vision models are trained to recognize a fixed set of categories. However, in real-world scenarios, the number of potential object categories is vast and constantly growing, far exceeding what can be exhaustively labeled for training. Zero-shot learning (ZSL) aims to bridge this gap by enabling models to recognize unseen classes based on their relationship to known classes, often through natural language descriptions.
Previous ZSL methods have relied on various paradigms, including mapping image and word embeddings, using graph structures to propagate class knowledge, or leveraging human-annotated attributes. While powerful, these methods often have limitations: they might not train image and text encoders end-to-end, limiting representation quality, or they depend on rigid class hierarchies or specific attribute annotations, restricting their generality.
A recent breakthrough, CLIP, demonstrated the power of learning from massive image-text datasets (over 400 million pairs) to achieve impressive ZSL capabilities. However, the sheer scale of data required for CLIP makes it impractical for many researchers and organizations. This paper tackles the challenge of achieving high ZSL performance with significantly less data, specifically focusing on the "general ZSL" setting where test labels can be either seen or unseen.
Methods
The proposed method, "Data-Efficient Language-Supervised Zero-Shot Learning with Self-Distillation," builds upon a two-tower architecture comprising an image encoder and a sentence encoder. Key to their approach are the following techniques:
- Data-Efficient Pretraining: They initialize their model with pre-trained image encoders (e.g., ResNet50) and universal sentence encoders (e.g., DeCLUTR), leveraging existing powerful representations.
- Contrastive Learning: Similar to CLIP, they employ a contrastive loss (specifically InfoNCE) to maximize the similarity between corresponding image-text pairs and minimize it for negative pairs. This encourages the model to learn a shared embedding space.
- Self-Distillation with Soft Labels: Recognizing that internet-sourced image-text pairs are inherently noisy (e.g., images containing objects not mentioned in captions, or vice-versa), they introduce a novel self-distillation mechanism. Instead of relying solely on hard labels, they use an Exponential Moving Average (EMA) of their model as a "teacher." The model is trained to match the soft probability outputs of this teacher, effectively denoising the learning process and allowing for better modeling of nuanced correlations between images and text. This is achieved using a KL divergence loss.
- Hybrid Loss: The final loss function combines the contrastive loss (for learning strong representations) and the KL divergence loss from EMA self-distillation (for robustness to noise).
Datasets
- Training: The primary training dataset used is Conceptual Captions (CC), containing approximately 3 million loosely correlated image-caption pairs. This is significantly smaller than the datasets used by CLIP.
- Evaluation:
- ImageNet 21k+1k: A standard benchmark for ZSL, containing 21,841 classes.
- Google Open Images (GOI) V6: A newly proposed benchmark for ZSL evaluation, containing 19,958 classes. The authors highlight GOI as a more suitable benchmark due to its richer class interactions, differentiation of words with multiple meanings, and labeling of multiple classes per image, which better reflects real-world complexity and inter-class relationships. They also discuss issues with ImageNet's suitability for ZSL evaluation (e.g., repeated classes, ambiguous labels).
Key Insights and Ideas
- Noise is Not Necessarily Bad (If Handled): The paper demonstrates that even noisy image-text data can be effectively leveraged for ZSL. The key is to use techniques like self-distillation with soft labels to mitigate the negative impact of this noise.
- Data Efficiency is Achievable: By combining pre-trained encoders, contrastive learning, and self-distillation, the authors show that state-of-the-art ZSL performance can be achieved with orders of magnitude less data than previously thought necessary.
- Soft Labels for Robustness: The use of soft labels from an EMA teacher is crucial for handling the inherent noise in large-scale, uncurated image-text datasets. This allows the model to learn more robust and generalizable representations.
- Google Open Images as a Better Benchmark: The paper makes a strong case for using Google Open Images as a more representative benchmark for general ZSL, due to its more complex and realistic labeling scheme compared to ImageNet.
Key Results
- On Google Open Images (GOI): Their model, using a ResNet50 image encoder and DeCLUTR text encoder, trained on 3M CC pairs, achieved a 10.5% relative improvement over CLIP on the flat hit@k metric, while using over 100x less data.
- On ImageNet 21k+1k: Their method achieved a 73% relative improvement over the previous state-of-the-art (HZSL) on this benchmark.
- Data Efficiency: The model achieved strong results with only 3 million image-text pairs, a 133x reduction compared to CLIP's reported training data size.
Limitations and Future Work
- ImageNet Evaluation Nuance: The authors note that EMA distillation slightly decreased performance on ImageNet when evaluated with hard labels, hypothesizing this is because ImageNet uses only one "gold" label per image during evaluation, while distillation encourages softer, multi-class outputs. This suggests a potential mismatch between the training objective's robustness and the evaluation's strictness on certain datasets.
- Future Work: While not explicitly detailed, the success with a data-efficient approach opens avenues for further exploration in even more constrained data regimes, or for adapting this method to other vision-language tasks. The proposed Google Open Images benchmark also invites further research and comparison.
Summary updated