Abstract
Conformal Prediction (CP) is widely used for uncertainty quantification, providing prediction sets with guaranteed coverage. Conventional wisdom holds that better-calibrated models yield more efficient (smaller) prediction sets. This paper challenges this assumption, demonstrating that standard calibration methods often increase set sizes. We introduce Conformal Temperature Scaling (ConfTS), a post-hoc optimization method that minimizes prediction set size while preserving statistical guarantees. Our results across various architectures and modalities show that ConfTS significantly improves efficiency compared to standard calibration.
Introduction
Conformal Prediction (CP) provides a framework for generating prediction sets that contain the true label with a user-specified probability $1-\alpha$. A primary goal in CP is efficiency: producing the smallest possible sets that satisfy the coverage guarantee. It is commonly assumed that confidence calibration—aligning predicted probabilities with empirical accuracy—is the key to achieving this efficiency. Consequently, practitioners frequently apply Temperature Scaling (TS) to calibrate models before conformalization.
However, this work reveals a "Calibration Paradox": standard calibration techniques, typically optimized for negative log-likelihood (NLL), can lead to significantly larger prediction sets. We investigate this relationship and propose a novel optimization objective specifically designed for CP efficiency.
The Calibration Paradox
The researchers theoretically and empirically investigated the relationship between the softmax temperature ($t$) and the resulting conformal set size. They proved that lower temperatures—which make a model more "confident" or "sharp"—generally lead to smaller expected prediction sets.
As shown in Figure 1, decreasing the temperature consistently reduces the average set size across multiple architectures like ResNet and DenseNet. However, there is a "Precision Floor": if the temperature is set too low, floating-point limitations truncate the "tail" probabilities of incorrect classes to zero. This numerical error causes the conformal threshold to fail, resulting in massive, "trivial" prediction sets (Figure 1c).
Methods: Conformal Temperature Scaling (ConfTS)
To optimize efficiency without falling into the precision floor or relying on standard calibration, the authors propose Conformal Temperature Scaling (ConfTS). Instead of minimizing Cross-Entropy, ConfTS minimizes a new loss function based on the Efficiency Gap.
The Efficiency Gap is defined as the difference between the conformal threshold ($\tau$) and the score of the ground-truth label. By minimizing the square of this gap on a validation set, ConfTS finds an optimal temperature that "pushes" the threshold as close to the true label's score as possible. This post-hoc method is computationally efficient, requiring only the tuning of a single scalar parameter without retraining the underlying model.
Experimental Results
The effectiveness of ConfTS was evaluated across diverse tasks (image and text classification) and architectures (ResNet, DenseNet, VGG, ViT, BERT, GPT-Neo).
As detailed in Table 2, ConfTS achieves substantial efficiency gains. For instance, on ImageNet using a ViT-B-16 model at $\alpha=0.05$, ConfTS reduced the average prediction set size from 36.72 to 9.05—a nearly 4x improvement. These gains are consistent across different conformal methods like Adaptive Prediction Sets (APS) and Regularized Adaptive Prediction Sets (RAPS).
Discussion and Limitations
The findings suggest that the goal of "perfect calibration" (e.g., minimizing Expected Calibration Error) is misaligned with the goal of CP efficiency. A slightly "overconfident" model often yields more practical prediction sets than a perfectly calibrated one.
Limitations: * Method Specificity: ConfTS is primarily effective for adaptive conformal methods (APS, RAPS). Its impact on non-adaptive methods like LAC is less pronounced. * Coverage Type: The method ensures marginal coverage (average performance across the dataset) but does not explicitly optimize for conditional coverage (performance on specific subgroups).
Future work may involve developing more complex loss functions to address conditional coverage while maintaining the efficiency benefits demonstrated by ConfTS.
Summary updated