Computer Science > Computer Vision and Pattern Recognition
Title:Where Do Scarce Labels Belong? Evaluating Contrastive Pretraining under Equal Compute and Realistic Label Budgets
Abstract:Supervised contrastive learning uses labels during pretraining, but labels are often scarce and unlabeled images plentiful. Should the few labels go inside the contrastive loss, or wait until after label-free pretraining? Two confounds hide the answer: unequal compute, and evaluations that use labels the practitioner does not have. We remove both with a compute-matched $2\times 2$ design: SimCLR and supervised contrastive learning (SupCon), each trained on the labeled subset or on all images for the same number of gradient steps, on CIFAR-10, CIFAR-100, STL-10 and Tiny-ImageNet. First, labels inside the loss buy speed, not a better end point: with 10% of the CIFAR-10 labels, SupCon leads SimCLR by 13.3 points after 970 steps and trails it by 6.6 points after 97,000 steps. Second, the protocol changes the comparison: after 9,700 steps the all-label linear probe puts a semi-supervised SupCon 1.9 points ahead of SimCLR, but fine-tuning on the 5,000 labels puts it behind under every recipe, including the best of an equal search for all encoders. Holding out 1,000 labels to choose the recipe brings SupCon level with SimCLR, not ahead; with longer training SimCLR leads under every probe and recipe. Third, label-using encoders make classes several times tighter on their labeled images than on any other images. Given enough pretraining, scarce labels are better kept out of the contrastive loss and spent afterwards, best of all in semi-supervised training. Budgets should be counted in steps, and encoders evaluated with the available labels.
| Comments: | 37 pages, 4 figures. Code and results available at this https URL and this https URL |
|---|---|
| Subjects: | Computer Vision and Pattern Recognition (cs.CV) ; Machine Learning (cs.LG) |
| Cite as: | arXiv:2612.02929 [cs.CV] |
| (or arXiv:2612.02929v1 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2612.02929 arXiv-issued DOI via DataCite (pending registration) |
Submission history
Access Paper:
- HTML (experimental)
Additional Features
- Audio Summary
Current browse context:
References & Citations
- Google Scholar
- Semantic Scholar
BibTeX formatted citation
Bookmark
Bibliographic and Citation Tools
Code, Data and Media Associated with this Article
Demos
Recommenders and Search Tools
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.