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

Conformal Prediction: 예측 범위를 보장하기

Anastasios N. Angelopoulos, Stephen Bates · arXiv · 2021년 7월 15일

- **연구 문제** 블랙박스 모델은 의료 진단 같은 고위험 분야에서도 쓰이지만, 가정 없이 예측이 얼마나 믿을 만한지 보장하기 어려웠습니다.
- **연구 방법** 저자들은 보정 데이터에서 모델 점수의 분위수를 구하고, 이 값을 기준으로 새 입력의 예측 집합을 만드는 방법을 정리합니다.
- **주요 결과** split conformal prediction은 데이터가 교환 가능하다는 가정 아래에서 테스트 레이블이 1−α 이상의 확률로 예측 집합에 포함됨을 보였습니다.

## 블랙박스 모델의 불확실성과 분포 독립 보장

고위험 분야에서 블랙박스 머신러닝 모델을 사용하려면 예측이 얼마나 믿을 만한지 함께 알아야 합니다. 이 논문은 임의의 pre-training 모델에 대해 정답을 사용자가 정한 확률로 포함하는 예측 집합을 만드는 conformal prediction을 입문 형태로 정리합니다. 핵심 질문은 모델의 내부나 데이터 분포에 대한 가정 없이도 이러한 커버리지 보장을 얻을 수 있는가입니다. 원문은 이 보장이 유한 표본에서도 성립하는 분포 독립적 성질이라고 설명합니다.

## 점수 함수와 보정 분위수로 예측 집합 만들기

기본 절차는 보정 데이터에서 점수 s(x,y)를 계산하고, 그 값들의 ⌈(n+1)(1−α)⌉/n 분위수 q̂를 구한 뒤 새 입력에 대해 s(x,y)≤q̂인 레이블 y를 모아 예측 집합으로 삼는 것입니다. 분류 예에서는 정답 클래스의 소프트맥스 출력을 1에서 뺀 값이 점수로 쓰입니다. 점수가 모델의 불확실성을 얼마나 잘 반영하는지가 집합 크기의 유용성을 결정하며, 보장 자체는 점수 선택과 무관하게 성립합니다.

## 분할 conformal과 교환 가능성 가정의 보장

split conformal prediction은 모델을 한 번만 학습하고 별도의 보정 데이터로 분위수를 정하는 형태입니다. 정리 1은 보정 데이터와 테스트 데이터가 i.i.d.이거나 교환 가능하다는 가정 아래에서 테스트 레이블이 예측 집합에 포함될 확률이 1−α 이상임을 보입니다. 상한 1−α+1/(n+1)은 점수가 연속인 경우에 성립하는 것으로 제시됩니다. 이 보장은 가정이 성립하는 범위에서 주변 커버리지에 관한 것입니다.

## 주변 커버리지와 조건부 커버리지의 차이

주변 커버리지는 입력 분포 전체에 대해 평균한 확률이며, 특정 집단이나 입력 값에서 커버리지가 낮을 수 있습니다. 조건부 커버리지는 각 입력에 대해 목표 확률을 만족하는 더 강한 성질입니다. 원문은 일반적인 경우 조건부 커버리지가 불가능하다는 점을 들어 이 둘을 구분합니다. 따라서 집합이 적응적으로 작동하는지는 별도의 진단으로 확인해야 합니다.

## 적응적 예측 집합과 회귀·위험 통제 확장

APS 절차는 소프트맥스 확률을 높은 순서로 누적하여 클래스를 포함하고, 회귀에서는 분위수 회귀의 두 분위수 구간을 보정 상수로 넓히거나 좁힙니다. 위험 통제 확장인 conformal risk control은 단조 손실의 기대값이 α 이하가 되도록 임계값을 고르며, 다중 레이블 분류에서 FNR 제어가 예로 소개됩니다. 그룹별 및 클래스별 보정은 해당 조건부 커버리지를 목표로 합니다. 이 결과들은 원문이 제시한 절차의 이론적 보장과 예시에 근거합니다.

## 분포 이동과 조건부 평가의 범위

공변량 이동에서는 보정 점수를 가중하여 테스트 분포에 맞추고, 분포 드리프트에서는 최근 점수에 더 큰 가중치를 둡니다. 드리프트 정리의 커버리지 하한은 TV 거리와 정규화된 가중치 합에 의존하며, 그 값을 미리 알기 어렵습니다. 또한 조건부 커버리지를 점검하기 위한 FSC와 SSC 지표는 그룹 정의나 크기 구간에 따라 결과가 달라질 수 있습니다. 원문은 이 방법들이 모든 분포 변화에 대한 보장을 준다고 주장하지 않습니다.

## 논문 정보

- **저자**: Anastasios N. Angelopoulos, Stephen Bates
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 7월 15일
- **등록일**: 2026년 11월 12일
- **수정일**: 2022년 12월 7일
- **버전**: v6
- **arXiv**: 2107.07511
- **분류**: cs.LG · cs.AI · math.ST · stat.ME · stat.ML
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

[논문 원문 ↗](https://arxiv.org/abs/2107.07511v6) · [원문 PDF ↗](https://arxiv.org/pdf/2107.07511v6)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 원문 인용

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}
}
```

## 이 논문의 용어

- [Imagenet](https://refivu.com/terms/5eadad128667-imagenet)
- [MS COCO](https://refivu.com/terms/1a7c38d39825-ms-coco)
- [Conformal prediction](https://refivu.com/terms/8147d0abfe0d-conformal-prediction)
- [Bonferroni correction](https://refivu.com/terms/515c0da49aa8-bonferroni-correction)
- [conformal risk control](https://refivu.com/terms/7339470066f8-conformal-risk-control)
- [covariate shift](https://refivu.com/terms/999984d6d515-covariate-shift)
- [quantile regression](https://refivu.com/terms/5b8c773c37b7-quantile-regression)
- [split conformal prediction](https://refivu.com/terms/a152c0696a56-split-conformal-prediction)
- [False Negative Rate](https://refivu.com/terms/bbe5670a4f4a-false-negative-rate)
- [marginal coverage](https://refivu.com/terms/f7ddfbb416ab-marginal-coverage)
- [conditional coverage](https://refivu.com/terms/31e9a44e50ec-conditional-coverage)
- [conformalized quantile regression](https://refivu.com/terms/27e496db474a-conformalized-quantile-regression)
- [weighted conformal prediction](https://refivu.com/terms/81167d784548-weighted-conformal-prediction)
- [adaptive prediction sets](https://refivu.com/terms/d6eb15e13d8b-adaptive-prediction-sets)
- [TV distance](https://refivu.com/terms/faab4c1f9753-tv-distance)

## 관련 논문

- [Kandinsky Conformal Prediction: Beyond Class- and Covariate-Conditional Coverage](https://refivu.com/papers/8ccec71d-2d82-4cf2-a00a-e6d8a8619c91-kandinsky-conformal-prediction-beyond-class-and-covariate.md)
- [BEiTScore++: Reference-free Image Captioning Evaluation with BEiT-3 and Conformalized Quantile Regression](https://refivu.com/papers/d1ebd7a1-6b06-480b-b9c3-fc39c2b046b9-beitscore-reference-free-image-captioning-evaluation-with.md)
- [Conformal Risk Control for QoT-Aware Lightpath Feasibility Under Technology-Driven Domain Shift](https://refivu.com/papers/11e6f403-70db-44f9-a521-94ad7a42bab4-conformal-risk-control-for-qot-aware-lightpath-feasibility.md)
- [Next-Token Prediction and Regret Minimization](https://refivu.com/papers/3cea966f-c628-4a28-b9c4-075d967afc64-next-token-prediction-and-regret-minimization.md)
- [Language Models Meet Vibration Testing for LEO Constellation Satellites with Calibrated Response Prediction from Few-show Sweeps](https://refivu.com/papers/d307c57d-6ae8-4165-a834-80f2827101d4-language-models-meet-vibration-testing-for-leo-constellation.md)
- [Unreasonable Confidence from Simulator Misspecification: Directional Robustness on the SPEED+ Sim-to-Real Benchmark](https://refivu.com/papers/79d33d4b-ccc3-4483-a836-6b30e714e026-unreasonable-confidence-from-simulator-misspecification.md)

## 다른 논문 해설

- [European Union regulations on algorithmic decision-making and a "right to explanation"](https://refivu.com/papers/8d7d2fe1-f155-44ca-8f0a-551e154b6b3a-european-union-regulations-on-algorithmic-decision-making.md)
- [Robust Physical-World Attacks on Deep Learning Models](https://refivu.com/papers/07947804-f6f2-481e-a0c5-1e222ca2e06f-robust-physical-world-attacks-on-deep-learning-models.md)
- [Invariant Risk Minimization](https://refivu.com/papers/7f6a0d34-8d04-4205-b5c5-1e73e1c91b62-invariant-risk-minimization.md)
- [Equality of Opportunity in Supervised Learning](https://refivu.com/papers/97e846bf-1b27-4e7b-934a-caa8326bd5e9-equality-of-opportunity-in-supervised-learning.md)
- [Explaining Explanations: An Overview of Interpretability of Machine Learning](https://refivu.com/papers/1e2e5cea-7806-41cc-934c-581f9dec0a44-explaining-explanations-an-overview-of-interpretability-of.md)
- [Estimating Continuous Distributions in Bayesian Classifiers](https://refivu.com/papers/318decb8-43d0-4596-b25f-944ca636af13-estimating-continuous-distributions-in-bayesian-classifiers.md)
- [SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks](https://refivu.com/papers/bd27ac05-aab2-4448-8e23-79659dfe759b-siamrpn-evolution-of-siamese-visual-tracking-with-very.md)
- [Neural Turing Machines](https://refivu.com/papers/98345e56-0459-409a-bde9-37eadc2f2d0a-neural-turing-machines.md)
- [A Review on Deep Learning Techniques Applied to Semantic Segmentation](https://refivu.com/papers/8ae0e955-3ed5-48a2-b638-f9e5d7aa334e-a-review-on-deep-learning-techniques-applied-to.md)
- [Thumbs up? Sentiment Classification using Machine Learning Techniques](https://refivu.com/papers/099cc783-1d4a-4899-b08c-ce3886810f1a-thumbs-up-sentiment-classification-using-machine-learning.md)
- [Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks](https://refivu.com/papers/dffa1011-36cd-44c9-b21a-c10cc00af851-run-don-t-walk-chasing-higher-flops-for.md)
- [An All-in-One Network for Dehazing and Beyond](https://refivu.com/papers/03c50633-ad40-4af4-b88a-e6cb99e97639-an-all-in-one-network-for-dehazing-and.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f99c2916-c5f5-45e3-8503-ed9342776182-a-gentle-introduction-to-conformal-prediction-and)
