Where Do Scarce Labels Belong? Evaluating Contrastive Pretraining under Equal Compute and Realistic Label Budgets
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…
- arXiv
- 2612.02929
- Authors
- Mahmoud Alyosify, Mirna Imbabi, Natalie Nashed, Hazem M. Abbas
- Categories
- cs.CV · cs.LG