arXiv:2610.31336stat.MLOct 2026

Manuscript Offprint

arXiv:2610.31336

Metric Conformal Prediction via the Conditional Expected Local Radius

Rui Qiu, Fang Yao, Zhou Yu

Abstract

We introduce the conditional expected local radius (CELR) and develop a new conformal prediction method for non-Euclidean responses in general metric spaces. CELR measures local conditional probability concentration, allowing prediction sets to accommodate heterogeneity and multimodality without requiring densities or a vector space structure. Its conditional distribution yields a nonconformity score that is comparable across covariate values and avoids costly transport comparisons between distance profiles. We further adapt a metric distributional random forest that handles multivariate covariates and nonlinear interactions, while a single forest fit supplies all score components, reducing computation by eliminating repeated local fitting. We establish uniform consistency of the estimators and asymptotic conditional validity under suitable regularity conditions, together with finite-sample marginal coverage under exchangeability. Numerical studies demonstrate effective uncertainty quantification across different metric spaces and substantial computational savings over the conditional profile score method.

Keywords: Conditional validity, Conformal prediction, Metric space, Random forest, Random object

1 Introduction

Conformal prediction (CP) quantifies predictive uncertainty through prediction sets with finite-sample and distribution-free coverage guarantees (Vovk et al., 2005). In regression, the aim is to construct a set C^1−α(X0)\hat{C}_{1-\alpha}(X_0) for a future observation (X0,Y0)(X_0, Y_0) satisfying the marginal coverage requirement

P(Y0∈C^1−α(X0))≥1−α.(1)\mathbb{P}\Big(Y_{0}\in\hat{C}_{1-\alpha}(X_{0})\Big)\geq1-\alpha. \tag{1}

Under exchangeability, this guarantee holds without specifying a parametric model for the joint distribution of (X,Y)(X, Y) (Shafer and Vovk, 2008). For scalar responses, CP yields prediction intervals and bands (Lei and Wasserman, 2014; Lei et al., 2018; Chernozhukov et al., 2021; Sesia and Romano, 2021; Barber et al., 2023). The nonconformity score ranks candidate responses and determines the size and shape of the prediction set. Studentized residual scores (Lei et al., 2018) and scores based on conditional quantiles (Romano et al., 2019), for example, allow prediction intervals to adapt to heteroskedasticity. Other developments concern data reuse (Vovk, 2015; Barber et al., 2021), adaptation to changing distributions (Gibbs and Candes, 2021; Gibbs and Candès, 2024), and the selection and aggregation of prediction sets (Yang and Kuchibhotla, 2025; Xu et al., 2026).

Marginal coverage averages over the covariate distribution and need not provide adequate coverage at a particular covariate value. Exact conditional validity without restrictions on the joint distribution is generally unattainable (Vovk, 2012; Lei and Wasserman, 2014; Barber et al., 2021). A common alternative is asymptotic conditional validity:

P(Y0∈C^1−α(X0)∣X0)=1−α+op(1).(2)\mathbb{P}\Big(Y_{0}\in\hat{C}_{1-\alpha}(X_{0})\mid X_{0}\Big)=1-\alpha+o_{p}(1). \tag{2}

To attain (2), Chernozhukov et al. (2021) used conditional distribution ranks in place of residual scores (Lei et al., 2018), obtaining prediction intervals. Conditional density ranks yield sets that converge to highest predictive density regions and adapt to skewness, heavy tails, and multimodality (Izbicki et al., 2022). Localized conformal methods pursue related coverage goals (Guan, 2023; Hore and Barber, 2025; Gibbs et al., 2025). For a general account of conformal prediction, see Angelopoulos et al. (2024).

These methods are designed primarily for Euclidean responses. Non-Euclidean responses, such as phylogenetic trees, covariance matrices, and networks, are naturally treated as random objects in metric spaces. Methods for such data include Fréchet regression, regression on manifolds (Lin et al., 2017; Petersen and Müller, 2019; Dubey and Müller, 2020; Lin and Müller, 2021; Bhattacharjee et al., 2025), and dimension reduction (Panaretos et al., 2014; Virta et al., 2022; Zhang et al., 2024). Constructing informative prediction sets requires additional information about the spread and shape of the conditional law. Vector operations and densities need not be available in these spaces, so conventional constructions based on residuals or densities are not directly applicable. The conditional law may also concentrate in several separated regions whose locations and relative masses vary with the predictors. A ball centered at a single regression estimate may therefore give a poor description of the likely responses.

Zhou and Müller (2025) addressed this problem by constructing conformal prediction sets from conditional distance profiles, using the average transport cost between profiles. Their method accommodates multimodality without requiring a density or a conventional distribution function for the response. A candidate’s distance profile can also be summarized by the radii needed to accumulate probability mass around it. These local radii underlie the distance-to-a-measure (DTM) family (Chazal et al., 2011, 2016), including the L1L^{1} formulation studied by Brécheteau (2019), which primarily concern unconditional geometric or topological inference and comparisons between metric spaces equipped with probability measures.

In this work, our contributions are three-fold. First, we construct a conformal score from the conditional expected local radius (CELR) that is distinct from the conditional distance profiles. Its unconditional counterpart, the expected local radius (ELR), coincides with the L1L^{1} formulation of DTM studied by Brécheteau (2019), up to the convention used at probability mass thresholds. Under the conditional law of Y∣X=xY \mid X = x, CELR averages the radii needed to accumulate probability mass around a candidate. This description of local concentration complements metric depths, ranks, and quantiles (Geenens et al., 2023; Dai et al., 2023; Liu et al., 2022; Dubey et al., 2024). We transform CELR by its conditional distribution before conformal calibration, making the score comparable across covariate values. The resulting prediction sets can accommodate heterogeneity and multimodality in the conditional law without requiring densities or a vector space structure. CELR also simplifies computation: it uses only the candidate's conditional distance profile and avoids the transport comparisons between profiles required by Zhou and Müller (2025).

Second, we estimate the conditional law with a metric distributional random forest (MDRF). Local linear smoothing often requires additional structure or dimension reduction as the number of covariates increases (Fan and Gijbels, 1996). Our construction uses maximum mean discrepancy to select splits and draws on generalized random forests (Athey et al., 2019; Wager and Athey, 2018) and distributional random forests (Cevid et al., 2022). It differs from the local linear approach of Zhou and Müller (2025) in three respects:

(1) Unified estimation. A single forest fit provides the weights for estimating conditional distance profiles, CELRs, and the conditional distributions of CELRs.

Reusing these weights reduces the computation needed at each stage. Zhou and Müller (2025) estimate distance profiles, average transport costs, and their conditional distributions through separate local linear fits.

(2) Adaptive weights. The forest uses response information to choose splits, so its weights can adapt to variation in the conditional law (Lin and Jeon, 2006; Qiu et al., 2024). The local linear weights in Zhou and Müller (2025) are instead based on Euclidean distances in covariate space.

(3) Multivariate covariates. The forest partitions the multivariate covariate space directly and can represent nonlinear interactions and local variation. The multivariate procedure of Zhou and Müller (2025) relies on a single index assumption, which can be restrictive when covariate effects cannot be captured by a single linear combination.

Third, we establish uniform consistency of the estimated conditional distance profiles, CELRs, and score ranks, and derive asymptotic conditional validity. Pointwise consistency does not suffice because the score construction evaluate fitted quantities at arguments that depend on the data. The proof treats the forest as a growing-order U-statistic whose order increases with sample size. We derive a maximal inequality for the associated U-process and combine it with leaf shrinkage and stability bounds to control the accumulated estimation error.

The paper is organized as follows. Section 2 defines ELR and studies its geometric properties. Section 3 presents the score construction, split conformal calibration, and forest estimator. Section 4 gives the uniform consistency and asymptotic conditional validity results. Sections 5 and 6 present simulations in several metric spaces and two data applications, respectively. Section 7 concludes. Proofs and additional implementation details are in the supplementary material.

References (38)