Batch Multivalid Conformal Prediction

Christopher Jung, Georgy Noarov, Ramya Ramalingam, Aaron Roth

TL;DR: This paper introduces two efficient algorithms for "multivalid" conformal prediction in the batch setting, moving beyond simple average-case coverage. By leveraging pinball loss optimization, the authors provide distribution-free guarantees that prediction sets remain accurate even when conditioning on specific subgroups or the predicted threshold itself, ensuring fairer and more reliable uncertainty estimates.

The Challenge of Marginal Coverage

Standard conformal prediction is a popular framework for creating "prediction sets" (e.g., a range of values rather than a single point) that are guaranteed to contain the true label with a user-specified probability, like 90%. However, most standard methods only guarantee marginal coverage. This means the 90% guarantee holds on average across the entire population.

The problem with marginal coverage is that it can hide significant errors. A model might be 100% accurate for one demographic group but only 80% accurate for another, yet still achieve 90% on average. Furthermore, a model might over-cover for low-uncertainty predictions and under-cover for high-uncertainty ones. This paper tackles multivalid coverage, which requires the guarantee to hold simultaneously across many (potentially intersecting) groups and even conditional on the specific threshold used for the prediction.

Proposed Methods

The authors propose two primary algorithms that take a "black-box" predictor and a non-conformity score (a measure of how much a data point disagrees with the model) as input:

  1. BatchGCP (Batch Group-Conditional Predictor): This algorithm focuses on group-level fairness. It treats the calibration problem as a single convex optimization task. By minimizing the pinball loss (the standard loss function for quantile regression) over a linear combination of group indicator functions, it produces a model that satisfies coverage requirements for every specified subgroup in a collection $\mathcal{G}$.
  2. BatchMVP (Batch Multivalid Predictor): This is a more sophisticated, iterative algorithm. It identifies specific groups and thresholds where the current model fails to meet the coverage target and "patches" them. This process continues until the model is quantile multicalibrated, meaning it satisfies the full multivalid guarantee: valid coverage conditional on both group membership and the predicted threshold value.

Crucially, both methods are "distribution-free," meaning they don't assume the data follows a specific bell curve or linear pattern—they only require the data to be exchangeable (a generalization of i.i.d.).

Key Insights and Ideas

  • Pinball Loss as a Potential Function: The "aha moment" here is using pinball loss not just to train a regressor, but as a tool for calibration. The authors show that "patching" a model to fix a coverage error is mathematically equivalent to taking a step that significantly reduces the total pinball loss, ensuring the iterative algorithm converges quickly.
  • Quantile Multicalibration: The paper bridges the gap between the "fairness" literature (which often looks at mean multicalibration) and the "uncertainty" literature. They define a quantile-based version of multicalibration that is perfectly suited for conformal prediction.
  • Threshold Calibration Matters: By conditioning on the threshold, BatchMVP prevents the model from "gaming" the average. It ensures that if the model says "here is a 90% confidence interval," that interval is actually 90% reliable regardless of whether the interval is narrow or wide.

Experimental Results

The researchers evaluated their algorithms using a synthetic regression task (with correlated label noise across 20 intersecting groups) and real-world Folktables data (US Census Data predicting individual income across race and gender groups).

  • Superior Group Fairness: In both synthetic and census data, BatchGCP and BatchMVP achieved nearly perfect target coverage (e.g., 0.9) across all subgroups. In contrast, "naive" split conformal prediction showed significant under- and over-coverage across different groups.
Mean group coverage across various methods
  • Better Calibration than Baselines: They compared their work to a "conservative" baseline that takes the most pessimistic threshold across groups. While that baseline avoids under-coverage, it often significantly over-covers, leading to unnecessarily large and less useful prediction sets. The proposed methods provided much tighter, more accurate sets.
Mean prediction set size across various methods
  • Efficiency: Despite being iterative, BatchMVP is fast. In experiments with tens of thousands of data points, it typically converged in just a few seconds, making it practical for real-world deployment.

Limitations and Future Work

  • Lipschitz Assumption: The theoretical convergence and generalization bounds rely on the non-conformity score distribution being somewhat "smooth" (specifically, $\rho$-Lipschitz). If the scores are extremely "spiky" or discrete, the guarantees might weaken, though the authors suggest adding small amounts of noise as a workaround.
  • Finite Group Collections: The algorithms require a pre-defined collection of groups $\mathcal{G}$. While these groups can intersect, the complexity scales with the number of groups. Exploring how to handle an infinite or implicitly defined set of groups (e.g., via a kernel) remains an open area.
  • Batch vs. Sequential: While this paper brings multivalid guarantees to the batch setting, there is still a trade-off between the simplicity of batch processing and the adaptivity of sequential methods. Integrating these batch algorithms into online learning pipelines is a logical next step.

Summary updated

BibTeX
@inproceedings{jung2023batch,
  author = {Christopher Jung and Georgy Noarov and Ramya Ramalingam and Aaron Roth},
  title = {{Batch Multivalid Conformal Prediction}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Dk7QQp8jHEo},
}
Figure