Uncertainty quantification is essential for reliable machine learning. While Conformal Prediction (CP) provides distribution-free coverage guarantees, its application to multivariate outputs has traditionally been limited by the difficulty of ranking vectors in high-dimensional spaces.
Researchers from Apple have introduced OT-CP, a framework that utilizes Optimal Transport (OT) to establish a principled ranking for multivariate non-conformity scores. By mapping complex data distributions to a canonical reference ball, OT-CP constructs prediction sets that are both theoretically sound and practically efficient.
The Challenge of Multivariate Ranking
Standard CP relies on a scalar non-conformity score to rank past errors. In univariate settings, this is trivial. However, for multivariate outputs—such as joint predictions of temperature and humidity—there is no natural ordering.
Existing methods typically resort to:
- Max-aggregation (M-CP): Taking the maximum error across dimensions, resulting in rectangular "box" regions.
- Norm-based aggregation (Merge-CP): Reducing vectors to scalars via Euclidean or Mahalanobis distances, which often produces simple spherical or elliptical regions that fail to capture the true geometry of the data.
Methodology: Ranking via Optimal Transport
The core of OT-CP is the Brenier Map. In one dimension, the cumulative distribution function (CDF) maps any distribution to a uniform one. The Brenier map generalizes this to higher dimensions, providing a unique, monotone transformation that "pushes" a data distribution onto a reference distribution, such as a uniform ball.
The OT-CP algorithm proceeds as follows:
- Entropic Mapping: An Entropic Map is estimated from finite samples using the Sinkhorn algorithm.
- Scoring: The non-conformity score for a point $(x, y)$ is defined as the distance from the origin after transformation by the estimated transport map: $S_{OT-CP}(x, y) = \| \hat{T}(S(x, y)) \|$.
- Theoretical Robustness: The authors prove that the finite-sample coverage guarantee holds even if the OT map is an approximation. The CP framework effectively "absorbs" estimation errors, ensuring the promised coverage (e.g., 95%) is maintained.
Empirical Evaluation
The framework was tested on a benchmark of 24 tabular datasets with output dimensions ranging from 2 to 16.
Prediction Efficiency
OT-CP consistently produces smaller uncertainty regions compared to standard baselines. In low-to-mid dimensional settings ($d \le 6$), OT-CP improved region size in the vast majority of cases.
The results indicate that by respecting the underlying geometry of the data, OT-CP can generate non-elliptical, complex shapes that better capture joint variable behavior. It can be viewed as a non-parametric generalization of Mahalanobis-based CP.
Limitations and Computational Trade-offs
While OT-CP offers superior efficiency in terms of region size, it comes with a higher computational cost. The Sinkhorn algorithm used for map estimation is significantly slower than the simple norm calculations used in M-CP or Merge-CP.
Additionally, the "curse of dimensionality" affects OT-CP; as the output dimension increases beyond 14, the statistical difficulty of estimating accurate maps reduces the method's performance advantage. Future research may focus on more efficient OT map estimators to scale the approach to higher-dimensional tasks.
Summary updated