Skip to content
AI.info

Evaluation

Conformal Prediction: Coverage and Efficiency

Understand split conformal prediction, marginal coverage, set efficiency, calibration data, and the ways distribution shift can break guarantees.

By the end you can

A set can be honest without being useful

A conformal classifier can reach 90% marginal coverage by returning nearly every possible class. The guarantee holds and the output decides nothing. Evaluation therefore separates two things. Validity is whether the true outcome is covered often enough. Efficiency is whether the sets or intervals are narrow enough to act on.

The distance between the two is measurable, and it has been measured. On ImageNet-Val with a ResNeXt-101 base classifier at a 90% target, two conformal procedures both recorded an empirical coverage of 0.900 — the same figure to three decimals. The average prediction set held 19.7 labels under APS and 2.00 under RAPS. One guarantee, two procedures, and a tenfold difference in what a person is actually handed.

The promise itself is stated carefully. Conformal sets are valid “in a distribution-free sense: they possess explicit, non-asymptotic guarantees even without distributional assumptions or model assumptions”, and you can “use conformal prediction with any pre-trained model, such as a neural network, to produce sets that are guaranteed to contain the ground truth with a user-specified probability, such as 90%”. That is Angelopoulos and Bates, writing in 2021. Distribution-free is a claim about the data distribution. It is not a claim that the procedure has no assumptions at all.

Coverage is necessary for a conformal claim, but size determines practical value.

Steps

Split conformal in five stages

The method wraps a fitted predictor with a calibration procedure. Stage three is the one that carries a number. The quantile comes from a finite calibration set, so the coverage you get from that particular set is itself a random quantity. Its distribution is Beta(n + 1 − l, l), with l = floor((n + 1) × alpha) — a result credited to Vovk in 2012. A single fixed calibration set does not deliver exactly 1 − alpha. It delivers a draw.

Calibration size is therefore a design decision with a computable answer rather than a matter of taste. At alpha = 0.1 the guideline is about a thousand points. Angelopoulos and Bates put it this way: “Inspecting Figure 11, we see that choosing n = 1000 calibration points leads to coverage that is typically between .88 and .92, hence our rough guideline of choosing about 1000 calibration points.” Tighter promises are priced separately. At delta = 0.1 and alpha = 0.1, a coverage slack of 0.05 needs n = 102. A slack of 0.01 needs n = 2,491.

The matching design rule comes with a second bill, because it costs a level adjustment as well as data. The calibration size n must exceed N := (−ln delta) / (2 × epsilon^2). The predictor must then be run at the reduced level epsilon − sqrt((−ln delta) / (2n)) to be (epsilon, delta)-valid. That is Vovk again, in 2012. More data buys the promise. The promise itself is quietly shaved to pay for it.

FigureProcess · 5 steps
  1. 1. Fit the base model

    Train on a proper training subset without using conformal calibration cases.

  2. 2. Define nonconformity

    Measure how unusual each calibration outcome is relative to the model output.

  3. 3. Choose a quantile

    Use calibration scores and the target error level to set a cutoff.

  4. 4. Form sets or intervals

    Include outcomes whose nonconformity stays within the cutoff.

  5. 5. Audit coverage and size

    Measure empirical validity, efficiency, slices, and change over time.

Comparison

Three coverage claims that should not be confused

Guarantees differ in strength and in what they assume, and the standard one is two-sided. With n calibration points at level alpha, split conformal satisfies 1 − alpha ≤ P(Ytest in C(Xtest)) ≤ 1 − alpha + 1/(n + 1). It cannot fall short of the target. It cannot overshoot it by more than one calibration point's worth.

The load-bearing word sits in the middle of the definition. “In words, the probability that the prediction set contains the correct label is almost exactly 1 − α; we call this property marginal coverage, since the probability is marginal (averaged) over the randomness in the calibration and test points”, write Angelopoulos and Bates, immediately after their equation (1). Marginal means averaged. It is not a promise about the case in front of you.

Four researchers stated the same guarantee independently in JMLR in 2024, as P[Yi in C_{1−alpha}(Xi)] ≥ 1 − alpha − eta with eta = (1 − alpha)/(n_cal + 1). They add at once that “the results above are strongly reliant on the data exchangeability.”

The third column is not merely harder to reach than the first. It is unavailable. A 2021 paper on the limits of distribution-free conditional predictive inference says so in its abstract: “On the other hand, exact conditional inference guarantees are known to be impossible without imposing assumptions on the underlying distribution.”

Insisting anyway has a price, and a second 2012 result of Vovk's names it. A set predictor with exact object-conditional validity must return regression intervals of infinite Lebesgue measure at almost every non-atomic test point. In classification it must include each individual label with probability at least 1 − epsilon. An interval of infinite length always covers the truth. That is the point. Exact conditional validity is purchased by handing back a set that says nothing. Group coverage on named slices sits between the two, and it is the claim you can actually audit.

FigureComparison · 3 columns

Marginal coverage

The true outcome is covered at the target rate on average over exchangeable cases.

  • Standard conformal target
  • Finite-sample under assumptions
  • Can hide subgroup gaps
  • Does not guarantee each case

Group coverage

Coverage is assessed within specified subpopulations.

  • Useful for critical slices
  • Needs sufficient calibration support
  • May require group-aware methods
  • Groups must be defined

Conditional coverage

Coverage holds for every relevant feature configuration.

  • Stronger and desirable
  • Generally difficult without assumptions
  • Can force wide sets
  • Not implied by marginal validity

Example

One 90% target, 92.0% for one group and 87.1% for another

Marginal coverage is an average, and averages have insides. A 2019 paper on equalized coverage ran split conformal on the MEPS health-expenditure data at alpha = 0.1, averaged over 40 random 80/20 train-test splits. Then it printed the coverage group by group. “On the other hand, the marginal CP method under-covers in the white group and over-covers in the non-white group”, its authors write. The one number that looks correct is the one the method was built to hit.

  • Marginal method, non-white group: covered 92.0% of cases, well above the 90% target the procedure was calibrated to.
  • Marginal method, white group: covered 87.1%, below target — a 4.9-point spread produced by a single 90% guarantee that was never wrong at the aggregate level.
  • Group-conditional versions: coverage returned to 90.3% and 90.1%, so the gap is fixable when the groups are named in advance.
  • The bill for the fix: average interval lengths of 2.764 and 3.182 across the two groups, against 2.907 for both groups under the marginal method — the under-covered group gets its coverage back as width.
  • Replication in imaging: a 16,577-image dermatology dataset, measured in AAAI in 2022, showed lower coverage disparity across Fitzpatrick skin types for group conformal predictors than for aggregate APS and RAPS.

Key idea

Exchangeability is doing the real work

Standard conformal guarantees rely on calibration and future examples being exchangeable under the procedure. Losing that relationship used to be a caution. It is now a quantity. A 2023 paper in the Annals of Statistics bounds the coverage gap — the target 1 − alpha minus the realised coverage — at (sum_i w_i × d_TV(Z, Z^i)) / (1 + sum_i w_i), for fixed weights w_i in [0,1]. Z is the training-plus-test sequence. Z^i is that sequence with the test point swapped for the i-th training point. d_TV is total variation distance. Nothing is assumed about the joint distribution of the n + 1 points. With exchangeable data and equal weights, the bound is exactly zero.

An independent group in JMLR says what that means for the data they work on: “They bound the coverage gap—i.e., the difference between nominal and actual coverage levels—by a measure of deviation from exchangeability, which may be quite large for the time series or spatiotemporal data we deal with.”

The failure is documented on real data, not hypothesised. On the ELEC2 Australian electricity-usage dataset — 3,444 half-hourly observations from 1996 to 1999 — standard conformal prediction lost coverage over a substantial stretch of time, averaging 85.2% against its 90% target. Two nonexchangeable variants averaged 89.0% and 89.3%. A randomly permuted copy of the same data restored 89.9%. The ordering broke the promise, not the data.

Daily stock volatility broke it too. Gibbs and Candès ran non-adaptive conformal on that task and reported: “These stocks were selected out of a total of 12 stocks that we examined because they showed a clear failure of the non-adaptive method.” Four out of twelve. One of the four was Fannie Mae, whose realised volatility the fixed-alpha method failed to cover through the 2008 financial crisis. The adaptive method was robust to that event.

“Distribution free” does not mean assumption free. It means the guarantee does not require a parametric model for the data distribution under the stated sampling condition.

A guarantee travels only as far as its exchangeability assumption.

Analogy

A tailor choosing a size allowance from prior fittings

Recent fitting errors, measured across enough customers, tell a tailor how much allowance to add so that the next garment fits almost everyone who walks in. The promise holds while the next customers resemble the ones measured. It is a promise about the shop's average day, not about the person at the counter.

Conformal prediction makes that allowance exact rather than approximate. It comes with finite-sample rules and no assumption about how the scores were produced. What it cannot do is notice that the clientele has changed. That is what a substantial stretch of ELEC2 looks like from inside the procedure. The 2008 crisis in the Fannie Mae series looks the same way.

Calibration evidence determines the width of the promise.

Visual

Efficiency is task-specific

Narrowness has different meanings across outputs, and each has its own unit. On the classification axis it is countable: 19.7 labels against 2.00 at the same 0.900 empirical coverage. On the regression axis it is a length: 2.907 against 2.764 and 3.182 in the MEPS intervals. Neither figure is the guarantee. Both decide whether the guarantee is worth having.

FigureHierarchy · 4 levels
  • Regression interval width

    Smaller intervals are more actionable when coverage remains valid.

    • Classification set size

      Fewer labels reduce ambiguity, provided the true label remains covered.

      • Structured-output burden

        Set complexity, review time, or downstream search can matter more than cardinality.

        • Abstention impact

          Empty or very large sets may trigger fallback and should be evaluated operationally.

Validate the conformal layer as a product component

Report nominal and empirical coverage, confidence intervals, set-size distributions, conditional slices, calibration-set size, the nonconformity definition, and failure under plausible shift. Conformalization does not fix a bad base model, label errors, or a harmful decision policy. What it changes is the form and interpretation of uncertainty, and that still has to be integrated into the workflow.

Efficiency is measurable, and the gap has now been measured twice by two groups. The first measurement was an ICLR 2021 spotlight, and its abstract put it this way: “In experiments on both Imagenet and Imagenet-V2 with ResNet-152 and other classifiers, our scheme outperforms existing approaches, achieving coverage with sets that are often factors of 5 to 10 smaller than a stand-alone Platt scaling baseline.” The paper's own table puts figures under the phrase. On ImageNet-Val at a 90% target, empirical coverage was 0.900 for both APS and RAPS. The average set held 19.7 labels against 2.00 for ResNeXt-101, and 89.1 against 5.32 for Inception. Those are medians of means over 100 trials, each using a 20K conformal-calibration split and a 20K evaluation split.

A second group reproduced the gap independently, in AAAI in 2023. Mean set sizes on ImageNet at 1 − alpha = 0.900, over five runs: 20.57 (SD 1.10) for APS against 2.36 (SD 0.069) for RAPS on ResNeXt-101, and 90.28 (SD 4.16) against 5.96 (SD 0.373) on Inception. Both procedures were valid, in both labs, to three decimal places. Only one produced sets a person could act on.

Figure

Validity and efficiency separated: the coverage rate a user picks, and how much smaller a set can be while still holding it.

A statistically valid set can still support a poor decision.

Key takeaways