Multivariate Conformal Prediction using Optimal Transport

Michal Klein, Louis Béthune, Eugene Ndiaye, marco cuturi · Submission to ICML 2025 · Rejected

TL;DR

Conformal prediction provides distribution-free uncertainty guarantees, but extending it to multivariate outputs is notoriously difficult because multidimensional spaces lack a natural ordering. This paper introduces OT-CP, an approach that uses optimal transport to map vector-valued residual scores onto a uniform reference distribution on the unit ball. The resulting center-outward ordering enables practitioners to construct compact, geometry-aware multivariate prediction regions while preserving finite-sample coverage guarantees.

What Problem Does This Paper Address?

Standard conformal prediction (CP) converts model residuals into scalar conformity scores, ranks them, and outputs confidence regions with rigorous $1 - \alpha$ coverage without making distributional assumptions. However, when responses are multivariate ($y \in \mathbb{R}^d, d \ge 2$), there is no natural canonical ordering.

Common workarounds aggregate multidimensional errors using simple heuristics (e.g., maximum coordinate error or Euclidean/Mahalanobis distance) or rely on copulas. Yet, distance aggregations often fail to account for complex, skewed geometries, while copula-based methods can lose exact finite-sample validity if the estimated copula deviates from the truth. The central challenge is defining a principled, multidimensional ranking that respects data geometry without losing finite-sample distribution-free validity.

Methods

The authors propose OT-CP (Optimal Transport Conformal Prediction):

  • Kantorovich Ranks & Optimal Transport (OT): In 1D, the cumulative distribution function (CDF) uniquely maps a distribution to a uniform measure on $[0, 1]$. In higher dimensions, the analog is the Brenier map $\nabla\phi$, which pushes forward the distribution of vector scores to a symmetric uniform distribution on the unit ball $\mathcal{B}(0, 1)$. The rank of a vector $z$ corresponds to its transported distance to the origin: $\text{Rank}(z) = \|T(z)\|_2$.
  • Finite-Sample Validity via Conformal Calibration: Rather than assuming the empirical map perfectly approximates the true Brenier map (which suffers from the curse of dimensionality), the authors calibrate the quantile radius $r_\alpha$ on calibration data. By exchangeability, this calibration preserves exact finite-sample coverage guarantees $\mathbb{P}(Y_{n+1} \in \hat{\mathcal{R}}_{\alpha, n+1}) \ge 1 - \alpha$ for any approximation map $\hat{T}$.
  • Computational Tractability via Entropic Maps: The authors approximate the Brenier map using regularized optimal transport (the Sinkhorn algorithm) between empirical residuals and a discretized uniform grid on the sphere. Out-of-sample points are smoothly mapped using the continuous entropic map formulation $T_\varepsilon(z) = z - \nabla f_\varepsilon(z)$.

Datasets

The authors evaluate OT-CP on a benchmark of 24 tabular regression datasets compiled by Dheur et al. (2025):

  • Dataset sizes range from $n = 103$ to $50,000$.
  • Input dimensions $p$ range from $1$ to $348$.
  • Target output dimensions $d$ range from $2$ to $16$.
  • Specific evaluated datasets include: ansur2, bio, births1, blog_data, calcofi, edm, enb, house, taxi, jura, scpf, sf1, sf2, slump, households, air, atp1d, atp7d, wq, oes10, oes97, scm1d, and scm20d.

No new benchmarks were created; the paper builds upon the standardized suite from Dheur et al. (2025).

Key Insights and Ideas

  • Generalizing Distance-Based CP: When source and target distributions are Gaussian or uniform, the OT map is linear; hence, OT-CP strictly generalizes Euclidean and Mahalanobis distance merging (Merge-CP).
  • Decoupling Approximation Error from Coverage: Statistical optimal transport map estimators degrade rapidly in higher dimensions. However, CP acts as a safety net: even if the entropic OT map is "blurred" or suboptimal due to finite-sample or dimension limits, the exchangeability of conformal calibration guarantees exact coverage regardless.
  • Data-Adaptive Geometry: Unlike axis-aligned bounding boxes (M-CP) or fixed ellipsoids (Mahalanobis distance), OT-CP dynamically warps the uncertainty set to capture nonlinear data geometries, as highlighted by pulling back confidence sets onto actual geographic maps (e.g., the New York taxi dataset).

Key Results

  • Significantly Smaller Prediction Sets: Across datasets with dimension $d \le 6$, OT-CP achieves substantially smaller average region sizes than M-CP, standard Euclidean Merge-CP, and Mahalanobis Merge-CP while maintaining the target coverage (nominal $\alpha = 0.20$ or $0.05$).
  • Performance in Higher Dimensions: On higher-dimensional datasets ($d = 14$ to $16$, e.g., wq, oes10, scm20d), OT-CP continues to maintain valid coverage around $80\%$ while producing competitive region sizes compared to baseline approaches.
  • Hyperparameter Robustness: Grid ablations show that increasing the number of target points on the sphere ($m$, up to $2^{15} = 32,768$) consistently improves region efficiency. Tuning $\varepsilon$ (e.g., $\varepsilon = 0.1$) avoids both the statistical instability of unregularized OT and the map-collapsing effects of over-regularization.

Limitations and Future Work

  • Computational Overhead: Training the entropic map requires running the Sinkhorn algorithm over an $n \times m$ cost matrix (complexity $\mathcal{O}(nm)$). Evaluating test candidates requires $\mathcal{O}(m)$ per evaluation point, leading to noticeably higher runtimes than simple Euclidean baselines.
  • Curse of Dimensionality in OT Estimation: While coverage remains theoretically valid, map estimation quality degrades in high dimensions ($d > 10$), requiring larger target grids and careful regularization tuning to avoid inflating prediction set sizes.
  • Inversion for Set Representation: Evaluating whether a response $y$ belongs to the set is straightforward, but explicitly inverting the transport map to visualize or parameterize continuous multivariate boundaries remains computationally demanding.

Summary updated

BibTeX
@misc{klein2025multivariate,
  author = {Michal Klein and Louis Béthune and Eugene Ndiaye and marco cuturi},
  title = {{Multivariate Conformal Prediction using Optimal Transport}},
  year = {2025},
  eprint = {2502.03609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.03609},
}
Figure