arXiv:2612.02929 · v1
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 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.
作者备注:37 pages, 4 figures. Code and results available at https://github.com/MahmoudAlyosify1/scarce-labels-contrastive and https://doi.org/10.5281/zenodo.24494137