Class Adaptive Conformal Training
Badr-Eddine Marani, Julio Silva-Rodriguez, Ismail Ben Ayed, Maria Vakalopoulou, Stergios Christodoulidis, Jose Dolz
TL;DR
CaCT addresses the challenge of unreliable probability estimates by enabling class-conditioned uncertainty quantification. It reframes conformal training as an augmented Lagrangian optimization that learns per-class penalties, producing adaptive, compact prediction sets while preserving the $(1-\alpha)$ coverage guarantee. Across long-tailed and standard datasets, CaCT consistently outperforms existing conformal-training methods in efficiency and class-conditional coverage, with the ALM variant demonstrating robust performance and reduced hyperparameter sensitivity. The approach scales to many classes and practical imbalanced regimes, offering a principled, end-to-end framework for calibrated prediction in real-world, multi-class tasks.
Abstract
Deep neural networks have achieved remarkable success across a variety of tasks, yet they often suffer from unreliable probability estimates. As a result, they can be overconfident in their predictions. Conformal Prediction (CP) offers a principled framework for uncertainty quantification, yielding prediction sets with rigorous coverage guarantees. Existing conformal training methods optimize for overall set size, but shaping the prediction sets in a class-conditional manner is not straightforward and typically requires prior knowledge of the data distribution. In this work, we introduce Class Adaptive Conformal Training (CaCT), which formulates conformal training as an augmented Lagrangian optimization problem that adaptively learns to shape prediction sets class-conditionally without making any distributional assumptions. Experiments on multiple benchmark datasets, including standard and long-tailed image recognition as well as text classification, demonstrate that CaCT consistently outperforms prior conformal training methods, producing significantly smaller and more informative prediction sets while maintaining the desired coverage guarantees.
