Conformal prediction is a statistical framework for quantifying uncertainty in machine learning predictions, providing calibrated confidence measures under minimal assumptions. While "conformal risk prediction" is not a standard term, it can be interpreted in two contexts:
- Using conformal prediction to assess risks (e.g., uncertainty in predictions).
- Conformal risk control, where conformal methods bound the risk of errors (e.g., false positives).
Let’s break this down:
1. Core Concepts of Conformal Prediction
Key Idea
Conformal prediction constructs prediction regions (e.g., confidence intervals or label sets) with guaranteed coverage probability under the assumption of exchangeability (data points are generated independently from the same distribution).
Steps
- Non-Conformity Measure: Define a function that quantifies how "strange" a new data point is relative to training data (e.g., prediction error for regression, margin-based scores for classification).
- Calibration: Use held-out data to compute a threshold for the non-conformity scores, ensuring that prediction regions achieve the desired coverage (e.g., 95% confidence).
Example
For regression, a conformal prediction interval for a new input ( x_{\text{new}} ) is:
[
C(x_{\text{new}}) = \left[ \hat{f}(x_{\text{new}}) - \epsilon, \hat{f}(x_{\text{new}}) + \epsilon \right],
]
where ( \epsilon ) is chosen so that 95% of true values lie within ( C(x_{\text{new}}) ).
2. Conformal Risk Prediction
If interpreted as quantifying uncertainty/risk, conformal prediction directly addresses:
- Marginal Coverage: The probability that the true value lies in the prediction region on average (over all possible data).
- Conditional Coverage: Coverage for specific subgroups (harder to guarantee, but recent methods like Adaptive Conformal Inference address this).
Risk Interpretation
- Uncertainty Quantification: Wider prediction intervals imply higher risk/uncertainty.
- Calibrated Probabilities: Conformal prediction avoids overconfidence (common in Bayesian methods) by directly controlling coverage.
3. Conformal Risk Control
Recent work (e.g., Angelopoulos et al., 2022) uses conformal methods to bound risks like:
- False Positive Rate: In classification, ensure the probability of a false positive is ≤ α.
- Quantile Risk: Control the probability that a prediction exceeds a threshold.
Example: Classification with Risk Control
Given a classifier ( f ), conformal risk control can guarantee:
[
\mathbb{P}\left( Y \notin \text{Top-}k \text{ Predictions} \right) \leq \alpha,
]
where ( k ) is chosen via conformal calibration.
4. Assumptions & Limitations
- Exchangeability: Data must be exchangeable (e.g., i.i.d. or time-series with no distribution shift).
- Marginal vs. Conditional Coverage: Conformal guarantees are marginal (average over data), not conditional (per input).
- Efficiency: Prediction regions can be large if the model is poorly calibrated.
5. Applications
- Safety-Critical Systems: Quantify uncertainty in medical diagnosis or autonomous driving.
- Finance: Risk bounds for portfolio losses.
- Anomaly Detection: Identify outliers with calibrated confidence.
Key References
Let me know if you'd like a deeper dive into specific aspects!