Contrastive Conformal Sets
About
Contrastive learning produces coherent semantic feature embeddings by encouraging positive samples to cluster closely while separating negative samples. However, existing contrastive learning methods lack a principled construction of geometric sets in the semantic feature space with distribution-free guarantees at any user-specified coverage level. We extend conformal prediction to this setting by introducing covering sets equipped with learnable generalized hyper-ball constraints. We propose a method that constructs conformal sets guaranteeing user-specified coverage of positive samples while maximizing negative sample exclusion. We theoretically motivate volume minimization as a proxy for negative exclusion, enabling our approach to operate effectively even when negative pairs are unavailable. The positive inclusion guarantee inherits the distribution-free coverage property of conformal prediction, while negative exclusion is maximized through learned set geometry optimized on a held-out training split. Experiments on simulated and real-world image datasets demonstrate improved inclusion-exclusion trade-offs compared to standard distance-based conformal baselines.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| OOD Detection | SVHN (test) | AUROC0.998 | 84 | |
| OOD Detection | CIFAR-10 OOD (test) | AUROC98.3 | 46 | |
| Out-of-Distribution Detection | CIFAR-100 (In-distribution) vs CIFAR-10 (OOD) (test) | AUROC96.3 | 44 | |
| OOD Detection | ImageNet-100 (ID) vs TEXTURES (OOD) | AUROC99.3 | 33 | |
| Out-of-Distribution Detection | CIFAR100 (ID) vs SVHN (OOD) | AUROC0.992 | 33 | |
| OOD Detection | CIFAR-100 OOD (test) | AUROC98.6 | 22 | |
| OOD Detection | ImageNet-100 (ID) vs NINCO (OOD) | AUROC96.9 | 19 | |
| OOD Detection | ImageNet 100 classes (test) | FPR956.5 | 16 |