Positive Unlabeled Contrastive Learning
Anish Acharya, Sujay Sanghavi, Li Jing, Bhargav Bhushanam, Dhruv Choudhary, Michael Rabbat et al. · 2022 · 17 citationsRead the paper
All 7 authors
Self-supervised pretraining on unlabeled data followed by supervised fine-tuning on labeled data is a popular paradigm for learning from limited labeled examples. We extend this paradigm to the classical positive unlabeled (PU) setting, where the task is to learn a binary classifier given only a few labeled positive samples, and (often) a large amount of unlabeled samples (which could be positive or negative). We first propose a simple extension of standard infoNCE family of contrastive losses, to the PU setting; and show that this learns superior representations, as compared to existing unsupervised and supervised approaches. We then develop a simple methodology to pseudo-label the unlabeled samples using a new PU-specific clustering scheme; these pseudo-labels can then be used to train the final (positive vs. negative) classifier. Our method handily outperforms state-of-the-art PU methods over several standard PU benchmark datasets, while not requiring a-priori knowledge of any class prior (which is a common assumption in other PU methods). We also provide a simple theoretical analysis that motivates our methods.
What the full text shows
Shown in the lab- puNCE outperforms state-of-the-art PU methods on CIFAR10 (Vehicle/Animal) using ResNet18 encoder. — 97.59% accuracy with nP=1k vs 88.69% for nnPU (PU CIFAR10, ResNet18, nP=1k)
- puNCE outperforms state-of-the-art PU methods on CIFAR10 (Vehicle/Animal) using All Conv encoder. — 96.37% accuracy with nP=1k vs 89.68% for SelfPU (PU CIFAR10, All Conv, nP=1k)
- puNCE improves classification accuracy on MNIST (Odd/Even) compared to nnPU. — 98.27% accuracy with nP=10k vs 97.18% for nnPU (PU MNIST, MLP encoder, nP=10k)
- puNCE achieves high accuracy on CIFAR10 even with very limited labeled positives. — 97.95% accuracy with nP=10k (PU CIFAR10, ResNet18)
- Setup
- Evaluated on binary versions of CIFAR10 (Vehicle/Animal), MNIST (Odd/Even), and SST2 sentiment dataset using ResNet18, All Conv, MLP, and RoBERTa encoders.
- How
- The authors propose puNCE, a contrastive loss that weights labeled positives as unit weight and treats unlabeled samples as a convex combination of positive and negative samples. This is followed by a PU-specific clustering scheme to pseudo-label unlabeled samples for training the final binary classifier.
Summarized by Gemma 4 from the open-access full text · 20 Nov 2026. Read it