Abstract
Vision language (VL) models like CLIP are robust to natural distribution shifts, in part because CLIP learns on unstructured data using a technique called caption supervision; the model interprets image-linked texts as ground-truth labels. In a carefully controlled comparison study, we show that caption-supervised CNNs trained on a standard cross-entropy loss (with image labels assigned by scanning captions for class names) can exhibit greater distributional robustness than VL models trained on the same data. To facilitate future experiments with high-accuracy caption-supervised models, we introduce CaptionNet, which includes a class-balanced, fully supervised dataset with over 50,000 new human-labeled ImageNet-compliant samples which includes web-scraped captions. In a series of experiments on CaptionNet, we show how the choice of loss function, data filtration and supervision strategy enable robust computer vision. We also provide the codebase necessary to reproduce our experiments at VL Hub.
Introduction
Deep learning models famously "break" when they encounter data distribution shifts—such as changes in lighting, sketches, or stylized renderings. While OpenAI’s CLIP demonstrated remarkable distributional robustness, it was previously unclear whether this was due to the massive scale of the data, the contrastive InfoNCE loss, or the use of natural language captions as supervision. This paper isolates these variables to determine if "caption supervision"—interpreting image-linked text as ground-truth labels—is the primary driver of robustness.
Methodology
The study employs a controlled comparison using two primary mechanisms to bridge the gap between standard classification and vision-language training:
Subset Matching
To compare standard classifiers (Cross-Entropy loss) against vision-language (VL) models on the same unstructured data, the authors developed "subset matching." This algorithmic process scans captions for class names to assign labels to images, allowing standard models to be trained on the same noisy web data as CLIP.
Experimental Setup
The researchers trained ResNet-50 architectures using both standard Cross-Entropy (CE) loss and the VL-loss used by CLIP. They introduced CaptionNet, a benchmark consisting of four datasets (ImageNet-100, OpenImages-100, LAION-100, and YFCC-100) designed for high-accuracy evaluation on a 100-class subset of ImageNet. Models were tested on natural shifts including ImageNet-Sketch, ImageNet-R (renditions), ImageNet-A (adversarial), and ImageNet-V2.
Key Results and Insights
The experiments reveal that the loss function is not the sole determinant of robustness. Surprisingly, CE-loss models using subset matching can match or exceed the robustness of VL models on certain datasets like LAION.
The Role of Data Filtration
The choice of label matching strategy (filtration) significantly impacts results, affecting distributional robustness by as much as 20%. This suggests that how messy captions are mapped to clean class labels is a critical lever in model performance, often more important than the specific loss function used.
"Bag-of-Words" Reality
In a series of "scrambling" experiments, the authors showed that CLIP’s text tower does not necessarily learn complex linguistic structures. Scrambling word order resulted in only a 1% loss in accuracy, indicating the model treats captions primarily as collections of keywords rather than structured sentences.
Scale vs. Supervision Quality
While VL models scale smoothly with data volume, CE models benefit significantly more from high-quality, human-supervised data. A CE model trained on fewer than 1 million samples achieved higher base accuracy than the best VL model trained on 400 million samples, highlighting the efficiency of high-quality supervision.
Conclusion
This work demonstrates that caption supervision, rather than the specific contrastive loss function, is a major contributor to the robustness seen in modern vision-language models. By providing the CaptionNet benchmark, the authors enable further research into hybrid approaches that combine the high-accuracy strengths of Cross-Entropy with the flexible, open-vocabulary advantages of Vision-Language models.
Summary updated