Skip to main content
QUICK REVIEW

[Paper Review] Conformal prediction with localization

Leying Guan|arXiv (Cornell University)|Aug 22, 2019
Anomaly Detection Techniques and ApplicationsComputer Science23 references20 citations
TL;DR

This paper introduces localized conformal prediction, a novel method that enhances traditional conformal prediction by focusing on a local neighborhood around each test point to construct finite-sample valid prediction intervals. By weighting training samples based on proximity to the test input, the approach improves coverage accuracy in heterogeneous error structures while maintaining assumption-free, finite-sample coverage guarantees.

ABSTRACT

We propose a new method called localized conformal prediction, where we can perform conformal inference using only a local region around a new test sample to construct its confidence interval. Localized conformal inference is a natural extension to conformal inference. It generalizes the method of conformal prediction to the case where we can break the data exchangeability, so as to give the test sample a special role. To our knowledge, this is the first work that introduces such a localization to the framework of conformal prediction. We prove that our proposal can also have assumption-free and finite sample coverage guarantees, and we compare the behaviors of localized conformal prediction and conformal prediction in simulations.

Motivation & Objective

  • Address the limitation of standard conformal prediction, which treats all training samples equally regardless of their proximity to the test point.
  • Develop a method that assigns greater influence to nearby training samples to better capture local heterogeneity in prediction uncertainty.
  • Maintain finite-sample, assumption-free coverage guarantees while allowing the test sample to play a special role in inference.
  • Provide a theoretically grounded framework for localized conformal prediction that generalizes standard conformal methods.
  • Demonstrate the method's superiority in capturing heteroscedastic error structures through simulations and real-world examples.

Proposed method

  • Introduce a localizer function $ H(X_i) $ that assigns higher weights to training samples $ X_i $ close to the test point $ X_{n+1} $, e.g., via nearest neighbors or distance-based kernels.
  • Modify the conformal prediction framework by constructing a weighted empirical distribution of conformity scores $ V_i $, where weights are proportional to $ H(X_i) $, and include $ \infty $ for the test sample.
  • Define the prediction interval $ \hat{C}(x) $ as the set of $ y $ values for which the test sample's conformity score $ V(x,y) $ is below the $ \tilde{\alpha} $-quantile of the weighted empirical distribution.
  • Choose $ \tilde{\alpha} $ strategically to ensure finite-sample coverage probability $ \geq \alpha $, even under data-dependent score functions.
  • Use a data-driven tuning procedure to select the localizer bandwidth $ h $, minimizing a criterion balancing coverage and interval length.
  • Apply the method in high-dimensional settings by projecting features onto a lower-dimensional space $ t(x) $, such as the direction of maximum mutual information with the conformity score.

Experimental results

Research questions

  • RQ1Can we construct prediction intervals that adapt to local heterogeneity in error variance while preserving finite-sample coverage guarantees?
  • RQ2How can we assign greater influence to nearby training samples in a way that maintains the validity of conformal inference?
  • RQ3What is the theoretical justification for using localized weights in conformal prediction without violating exchangeability assumptions?
  • RQ4How does localized conformal prediction compare to standard conformal prediction in terms of interval width and coverage accuracy under heteroscedastic errors?
  • RQ5Can the method be extended to data-dependent score functions and high-dimensional feature spaces with theoretical guarantees?

Key findings

  • Localized conformal prediction achieves finite-sample coverage probability $ \geq \alpha $ even when the error variance is heterogeneous across the input space.
  • In simulations with heteroscedastic errors, the localized method captures the true conditional prediction intervals much more accurately than standard conformal prediction, as shown in Figure 1 and Figure 4.
  • For $ p = 3 $ and $ p = 500 $, all methods (standard and localized conformal prediction) maintained coverage near the nominal level $ \alpha = 0.95 $, with localized methods showing better interval shape fidelity.
  • The nearest-neighbor and distance-based localizers both outperformed standard conformal prediction in capturing the true heteroscedastic structure of the conformity scores.
  • The data-driven bandwidth selection procedure effectively balanced coverage and interval length, minimizing the product of empirical under-coverage and interval size.
  • In high-dimensional settings, using the feature direction with maximum mutual information between $ V_i $ and $ X_{i,j} $ significantly improved performance, demonstrating the method's robustness to dimensionality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.