Conformal Risk Minimization with Variance Reduction

Sima Noorani, Orlando Romero, Nicolò Dal Fabbro, Hamed Hassani, George J. Pappas · DOI

Abstract

Conformal Prediction (CP) provides a framework for generating prediction sets with rigorous coverage guarantees. While Conformal Training (ConfTr) attempts to optimize models for smaller prediction sets, it is hampered by high-variance gradient estimates that do not diminish with increased batch sizes. This paper introduces VR-ConfTr, a variance-reduced approach that leverages a novel "plug-in" estimator for the quantile gradient. Our method achieves significantly faster convergence and produces smaller, more efficient prediction sets across multiple image classification benchmarks without additional computational overhead.

Introduction: The Stability Gap in Conformal Training

In safety-critical applications such as autonomous driving or medical diagnostics, point predictions are often insufficient. Conformal Prediction (CP) addresses this by providing a set of labels guaranteed to contain the ground truth with a user-specified probability. Recent advancements in Conformal Risk Minimization (CRM) aim to train models that inherently produce smaller prediction sets while maintaining this coverage.

However, the leading method for this, Conformal Training (ConfTr), is notoriously unstable. This research identifies a fundamental theoretical flaw: the variance of ConfTr’s gradient estimates is $\Omega(1)$, meaning it remains high regardless of batch size. This "variance bottleneck" leads to sample inefficiency and slow convergence, as the optimizer effectively "fights" the noise in the gradient of the quantile threshold.

The VR-ConfTr Approach

To overcome the instability of standard ConfTr, the authors propose VR-ConfTr (Variance-Reduced Conformal Training). The core innovation lies in a new method for estimating the gradient of the population quantile by decoupling the estimation of the quantile value from the estimation of its gradient.

The VR-ConfTr pipeline decouples quantile estimation from gradient calculation to reduce variance.

The pipeline introduces three key technical shifts:

  1. Theoretical Reformulation: The gradient of a quantile is expressed as a conditional expectation—specifically, the average gradient of scores for samples that fall exactly on the threshold.
  2. Plug-in Estimator: Since no single sample falls exactly on the threshold in a finite batch, the authors use an $\epsilon$-threshold strategy. They estimate the gradient by averaging the $m$ samples whose conformity scores are closest to the current quantile.
  3. Efficiency through Localization: By focusing the gradient calculation only on samples near the decision boundary, the model receives a much clearer signal on how to adjust parameters to shrink prediction sets.

Experimental Evaluation

The authors evaluated VR-ConfTr against standard ConfTr and cross-entropy baselines across five diverse image classification benchmarks: MNIST, Fashion-MNIST, Kuzushiji-MNIST, OrganAMNIST, and CIFAR-10.

Comparative results showing VR-ConfTr's superior prediction set efficiency across multiple benchmarks.

The results demonstrate that VR-ConfTr consistently outperforms existing methods:

  • Smaller Prediction Sets: Across all datasets, VR-ConfTr produced the smallest prediction sets. On Fashion-MNIST, it reduced the average set size by ~13% compared to a baseline and ~8% compared to standard ConfTr.
  • Faster Convergence: The method reached lower loss values significantly faster than standard ConfTr (e.g., 10x fewer epochs on MNIST).
  • Optimization Stability: Training curves for VR-ConfTr are notably smoother, confirming that variance reduction successfully stabilizes the learning process.
  • Accuracy Preservation: Interestingly, VR-ConfTr often maintained or slightly improved test accuracy compared to standard ConfTr, which frequently suffers an "accuracy tax" due to training instability.

Key Insights and Conclusion

The primary contribution of this work is the realization that the gradient of the population quantile can be estimated more reliably through a stable "plug-in" step. Because the technique adds virtually no computational overhead, it serves as a strict upgrade to the original ConfTr framework.

While the method introduces a new hyperparameter $m$ (the number of samples used for the gradient estimate), the authors provide heuristics to tune it effectively. Future work will explore extending this variance-reduction logic to conformal regression and more complex score functions in Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{noorani2025conformal,
  author = {Sima Noorani and Orlando Romero and Nicolò Dal Fabbro and Hamed Hassani and George J. Pappas},
  title = {{Conformal Risk Minimization with Variance Reduction}},
  booktitle = {R2-FM @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=y2hYL7y8T9},
}
Figure