Abstract
Conformal Prediction (CP) provides a framework for generating prediction sets with rigorous statistical coverage guarantees. However, a persistent challenge in CP is the "efficiency problem," where prediction sets become excessively large and uninformative, particularly when models are poorly calibrated. This paper introduces Entropy Reweighting (ER), a novel method that leverages a model's internal uncertainty—quantified via entropy—to dynamically scale logits. By performing instance-specific reweighting, ER produces significantly smaller prediction sets while maintaining the required coverage levels. Experimental results across text and image classification benchmarks demonstrate that ER consistently outperforms state-of-the-art methods like APS and RAPS.
1. Introduction
In high-stakes machine learning applications, such as medical diagnosis or autonomous driving, point estimates are often insufficient. Decision-makers require uncertainty quantification in the form of prediction sets that are guaranteed to contain the ground truth with a user-specified probability (e.g., $1 - \alpha = 0.95$). Conformal Prediction (CP) has emerged as the standard for providing these guarantees.
Despite its theoretical strengths, CP often suffers from low efficiency. If a model is uncertain or miscalibrated, the resulting prediction sets may include a large number of irrelevant classes to satisfy the coverage requirement, rendering the output less useful for human interpretation. Interestingly, standard calibration techniques like temperature scaling can sometimes exacerbate this issue by increasing the average set size. This paper addresses this gap by proposing Entropy Reweighting (ER), a technique designed to minimize set size without compromising the mathematical validity of the coverage.
2. Methodology
2.1 Entropy-based Reweighting (ER)
The core contribution of this work is the transformation of model outputs based on their predictive entropy. For a given input $X$, the model produces a probability distribution. The entropy $H(X)$ of this distribution serves as a proxy for the model's confidence: low entropy indicates high confidence, while high entropy indicates confusion.
To refine the prediction sets, the authors propose adjusting the raw logits $z$ using the following formula:
$$\tilde{z}_k(X) = \frac{z_k(X)}{H(X) \cdot T}$$
where:
- $z_k(X)$ is the raw logit for class $k$.
- $H(X)$ is the entropy of the predicted distribution.
- $T$ is a global temperature parameter optimized on a validation set.
2.2 Dynamic Scaling and Optimization
Unlike standard temperature scaling, which applies a uniform factor to all inputs, ER performs "instance-specific" scaling. By dividing by entropy, the method dynamically sharpens the distribution for high-confidence samples and flattens it for uncertain ones. The global temperature $T$ is tuned specifically to minimize the average size of the prediction sets while ensuring the coverage constraint is met on a hold-out validation set.
This approach is orthogonal to existing conformal scoring functions. It acts as a preprocessing step that can be integrated with various CP algorithms, such as Adaptive Prediction Sets (APS) or Regularized APS (RAPS).
3. Experimental Evaluation
3.1 Datasets and Models
The effectiveness of ER was evaluated on four diverse benchmarks:
- AG News: Topic classification for news articles (Text).
- CARER (CelebA Attributes): Facial attribute classification (Images).
- MNIST: Handwritten digit recognition (Images).
- Fashion MNIST: Clothing item classification (Images).
For text-based tasks, the authors utilized BERT as the base classifier, while standard multi-layer neural networks were employed for the image datasets.
3.2 Results
The ER method consistently yielded smaller prediction sets compared to baseline methods (APS, RAPS, and SAPS) across all datasets and coverage levels ($\alpha = 0.01, 0.05, 0.10$).
Key findings include:
- Efficiency Gains: On the AG News dataset at a 95% coverage level, ER achieved an average set size of 1.125, a significant reduction from the 1.367 produced by the standard APS method.
- Pareto Improvement: Analysis of Size vs. Coverage curves indicates that ER shifts the efficiency frontier, providing better trade-offs across the entire spectrum of confidence levels.
- Robustness: The method maintained the required coverage guarantees in all scenarios, confirming that the reduction in set size does not come at the cost of statistical validity.
4. Discussion and Key Insights
4.1 Correcting Overconfidence
Deep learning models are frequently overconfident in their errors. ER mitigates this by adjusting conformity scores such that when a model is "confidently wrong" (low entropy but incorrect), the incorrect label is less likely to be included in the final prediction set.
4.2 Adaptivity to Heteroskedasticity
Standard CP methods often treat all samples with a degree of uniformity. By using entropy as a proxy for the varying noise levels (heteroskedasticity) inherent in the data, ER allows the conformal pipeline to adapt more fluidly to the difficulty of individual samples, resulting in tighter, more precise sets.
5. Conclusion and Future Work
Entropy Reweighting represents a simple yet powerful advancement in making Conformal Prediction more practical for real-world use. By effectively utilizing the model's internal uncertainty, ER reduces the "bloat" in prediction sets while preserving rigorous coverage guarantees.
Future research directions include:
- Theoretical Formalization: Developing a rigorous proof of why entropy-based scaling specifically optimizes the CP objective.
- Conditional Scaling: Exploring feature-conditional temperature functions, $T(X)$, to provide even more granular control over the scaling process.
- Graph-Structured Data: Extending the ER framework to graph neural networks, where uncertainty is often a function of both node features and network topology.
Summary updated