Volume Optimality in Conformal Prediction with Structured Prediction Sets

Chao Gao, Liren Shan, Vaidehi Srinivas, Aravindan Vijayaraghavan

Introduction

Conformal Prediction (CP) has emerged as a premier framework for quantifying uncertainty in machine learning. By providing a "black-box" wrapper around any predictive model, CP offers a rigorous mathematical guarantee: the resulting prediction sets will contain the true label with a user-defined probability (e.g., 90%). However, a significant gap exists between theoretical coverage and practical utility. While a method that always predicts the entire range of possible values technically satisfies coverage requirements, it provides no actionable information. The primary challenge in the field is achieving efficiency—constructing the smallest possible prediction sets (minimum volume) that still maintain the required coverage.

The Challenge of Volume Optimality

Ideally, we seek a distribution-free method that produces the smallest possible volume for any data distribution. However, the authors of this work identify a fundamental theoretical barrier: an "impossibility result" demonstrating that no distribution-free method can consistently find the absolute smallest set for every possible distribution. Achieving true volume optimality typically requires precise knowledge of the underlying data distribution, which is rarely available in real-world scenarios.

To bypass this theoretical hurdle, this paper introduces the concept of Restricted Volume Optimality. Instead of searching for an arbitrary set, the authors restrict the prediction set to a specific, interpretable family: a union of $k$ intervals. By limiting the search space to a family with finite VC-dimension, the authors make the problem of finding near-optimal volumes computationally and theoretically tractable.

Methodology: Conformalized Dynamic Programming

The core of the proposed approach is a novel strategy that combines dynamic programming with distributional estimation. The technical contributions are three-fold:

  1. Conformalized Dynamic Programming (DP): The authors developed an efficient DP algorithm designed to find the union of $k$ intervals that covers the required number of data points with the minimum total length. This algorithm transforms a complex combinatorial problem into a structured optimization task.
  2. CDF-Based Integration: Traditional methods for finding optimal sets often rely on estimating probability density functions (PDFs). However, density estimation is notoriously sensitive to hyperparameters like kernel bandwidth. This paper instead utilizes the conditional Cumulative Distribution Function (CDF). By combining the DP approach with Distributional Conformal Prediction (DCP), the method extracts optimal intervals directly from the estimated CDF, which is generally more robust than density estimation.
  3. Split Conformal Framework: To ensure that finite-sample coverage guarantees remain intact regardless of the underlying model's accuracy, the DP solver is wrapped in a standard "split conformal" procedure. This ensures that the mathematical guarantee of CP is never sacrificed for the sake of volume reduction.

Experimental Evaluation

The method was evaluated against several synthetic and supervised benchmarks designed to test uncertainty estimation under multi-modal and complex conditions:

  • Unsupervised Benchmarks: These included Gaussian distributions, Censored Gaussians (featuring point masses), and Mixtures of Gaussians to test multi-modality.
  • Supervised Benchmarks: The authors utilized the Romano et al. (2019) dataset, characterized by periodic variance and outliers, and the Izbicki et al. (2020) dataset, which features a 20-dimensional feature set and a bimodal response variable.

Key Results

  • Significant Volume Reduction: On the Romano et al. dataset, the proposed method achieved an average volume of 0.45, a nearly 3x improvement over the previous state-of-the-art (DCP-QR), which produced a volume of 1.29* while maintaining the same 70% coverage.
  • Superiority over KDE: In multi-modal settings, the DP method consistently outperformed Kernel Density Estimation (KDE). While KDE performance fluctuated significantly based on bandwidth selection, the DP approach remained stable and close to the theoretical optimal volume.
  • Handling Discontinuity: The method proved particularly adept at handling "Censored Gaussian" data. Where traditional smoothing methods like KDE struggle with point masses (discrete jumps), the DP approach correctly identified zero-length intervals at these points.
  • Robustness to $k$: A notable finding is the method's relative insensitivity to the choice of $k$. As long as $k$ is at least as large as the number of modes in the data, the volume remains near-optimal. If $k$ is overestimated, the algorithm simply leaves redundant intervals empty.

Discussion and Limitations

While the approach represents a significant step forward in efficient uncertainty quantification, several considerations remain for future work. The current DP algorithm has a computational complexity of $O(n^3 k / \gamma)$. While effective for standard calibration sets, this may become a bottleneck for extremely large-scale data, potentially requiring grid-based approximations for speed.

Additionally, the current framework is optimized for one-dimensional label spaces ($Y = \mathbb{R}$). Extending these "structured prediction sets" to multi-dimensional spaces (e.g., 2D coordinates or high-dimensional manifolds) would require new geometric strategies beyond simple interval unions. Finally, the algorithm introduces a "slack" parameter $\gamma$ that requires tuning to balance the trade-off between computational speed and volume optimality.

In conclusion, by restricting the search space to unions of intervals and leveraging the robustness of CDF estimation via dynamic programming, this work provides a practical path toward achieving highly efficient, narrow prediction sets without compromising the rigorous guarantees of conformal prediction.

Summary updated

BibTeX
@inproceedings{gao2025volume,
  author = {Chao Gao and Liren Shan and Vaidehi Srinivas and Aravindan Vijayaraghavan},
  title = {{Volume Optimality in Conformal Prediction with Structured Prediction Sets}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=oNDhnGrD51},
}
Figure