Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification

Conformal prediction gives uncertainty sets with guaranteed coverage for any model

  • Problem Softmax scores and other heuristic confidence measures don't guarantee how often the true label is covered. Users need sets with a guaranteed chance of containing the true label, without assumptions on the model or data.
  • Method Conformal prediction sets one threshold on held-out calibration scores.
  • Results The authors prove that the prediction sets contain the true label with probability at least 1 minus alpha. The example uses alpha 0.1, which aims at 90% coverage.

Where fitted models leave users exposed

A fitted classifier usually comes with an internal measure of confidence, such as its softmax outputs. Those outputs are heuristic, though, and nothing guarantees that they match how often the model is actually right. The authors want a set-valued prediction with a guaranteed chance of containing the true label, and they want that guarantee without assumptions on the model or the data.

Because the procedure runs after training, it works with any pre-trained network.

Calibrating any model with held-out data

The key idea is to measure how badly the model disagrees with each labelled calibration example, and then to set one threshold at the level that catches the desired share of those scores. In the classification example, the score is one minus the softmax probability given to the true class, so a low probability on the correct label gives a high score.

The threshold is the empirical quantile of the calibration scores at the adjusted level ceiling of (n+1)(1-alpha) divided by n. The authors used about 500 held-out images and set alpha to 0.1, which aims at 90% coverage.

For a new input, every candidate label whose score passes the threshold goes into the prediction set. The score can be any function of the input and the label, as long as larger values mean worse agreement. The calibration step needs only a few lines of code, which is why the authors present it as a simple procedure.

Why the score function sets how useful the sets are

The guarantee holds even for a poor score, so a skeptical reader can ask how a bad model still yields useful sets. The answer is that a poor score gives large, uninformative sets, while scores that rank inputs by their error give small sets for easy inputs and large sets for hard ones. If the scores are random noise, the sets become random samples of the label space that happen to reach the coverage level.

So the score carries most of the engineering effort, and the authors treat choosing it as the main design decision.

What the validity result says and how to check it

Theorem 1 gives marginal coverage: over the random calibration and test draws, the true label lies in the set with probability at least 1 minus alpha. The authors also state an upper bound of 1 minus alpha plus 1 over (n+1), which needs a small tie-breaking adjustment for discrete labels that they usually ignore in practice. The validity result depends on the calibration and test points being i.i.d., so a shift between them breaks the guarantee.

As a correctness check, the observed coverage should fluctuate around 1 minus alpha by a predictable amount. The authors derive the size of those benign fluctuations, so deviations larger than they predict point to a bug in the implementation. Coverage alone says nothing about usefulness, so the authors also inspect the histogram of set sizes, whose spread shows whether sets adapt to difficulty.

A wide spread is encouraging, but it doesn't by itself show that the large sets fall on the hard examples.

Controlling losses other than miscoverage

Conformal risk control replaces the miscoverage indicator with any bounded loss that shrinks as the set grows, such as the false negative rate in multilabel classification. The authors build the set from the labels whose score is at least 1 minus lambda, so a larger lambda gives a more conservative set. The threshold is \(\hat{\lambda} = \inf\{\lambda : \hat{R}(\lambda) \le \alpha - \frac{B-\alpha}{n}\}\), where the loss is bounded by B and is non-increasing in lambda.

With B = 1, alpha = 0.1 and n = 1000 calibration points, the authors pick the empirical risk level 0.0991 instead of 0.1. That small extra margin is what lets the expected loss on a fresh point stay within alpha. Theorem 2 says that for a loss that is monotone in lambda, the expected loss of the set on a new test point is at most alpha, and the authors defer non-monotone risks to Learn then Test.

Full conformal prediction trades compute for data

Split conformal prediction fits the model once but spends part of the data on calibration, whereas full conformal prediction avoids that split. For each candidate label y, the procedure refits the model on the augmented data and checks whether the new point's score is within the quantile for that fit. The prediction set is \(C(X_{test}) = \{y : s^{y}_{n+1} \le \hat{q}_y\}\), and its validity relies on the exchangeability of the scores.

Computing it costs \((n+1)\cdot K\) model fits when there are K labels, which the authors call computationally costly. Cross-conformal prediction and CV+/Jackknife+ sit between the two extremes, using fewer fits while still using all data for fitting and calibration.

Limits of the guarantee and open problems

The guarantee is marginal, and the authors note that conditional coverage cannot be achieved in general. A two-group example makes the gap concrete: a set can cover 90% of the population overall while never covering one group. Adaptivity is not implied by coverage, so a small average set size can still hide poor behaviour on hard inputs.

Weighted conformal prediction handles only the restricted case of a known covariate shift. Under distribution drift, weighting recent scores keeps marginal coverage and is exact only when the size of the shift is known. The authors list handling dependent data and other distribution shifts as open work.

Paper info

Authors
Anastasios N. Angelopoulos, Stephen Bates
Venue
arXiv · Preprint
First published
2021-7-15
Added
2026-11-12
Updated
2022-12-7
Version
v6
arXiv
2107.07511
Category
cs.LG · cs.AI · math.ST · stat.ME · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Anastasios N. Angelopoulos, Stephen Bates (2021). A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification. arXiv:2107.07511v6. https://arxiv.org/abs/2107.07511v6

BibTeX
@misc{angelopoulos2021gentle,
  title = {{A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification}},
  author = {Anastasios N. Angelopoulos and Stephen Bates},
  year = {2021},
  eprint = {2107.07511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.07511v6}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up