Conformal Prediction for Distribution-to-Distribution Regression

Trung-Khang Tran, Tuan A. Hoang, Viet-Hoang Tran, Tan Minh NguyenNeurIPS 2026

TL;DR

When your machine learning model predicts entire probability distributions instead of single numbers, standard uncertainty quantification breaks down—leaving you with mathematically valid but practically useless infinite-dimensional blobs. This paper introduces a clever workaround using orthogonal basis projections to turn those abstract blobs into neat, measurable ellipsoids. You get rock-solid statistical guarantees on your predicted distributions, plus the ability to actually calculate their volume and sample from them for downstream tasks.

What Problem Does This Paper Address?

Suppose it’s late, your eyes are tired, and you want to know how sure your model is about a prediction. Enter Conformal Prediction (CP): a wildly popular, model-agnostic wrapper that turns point predictions into prediction sets (like intervals in 1D regression) guaranteed to contain the true answer, say, 90% of the time.

Usually, CP sets are easy to interpret: a wider interval means higher uncertainty, and you can easily sample points from inside that interval to run downstream simulations.

Now, enter Distribution-to-Distribution Regression (DDR). Here, both your inputs and outputs are entire probability distributions—observed only through finite samples (e.g., predicting a city's future income distribution based on its current age distribution). If you naively slap standard Split CP onto a DDR model, you still get that 90% coverage guarantee. However, your prediction set now lives in an infinite-dimensional function space. In infinite dimensions, "volume" is ill-defined or intractable, and "uniformly sampling" a random distribution from the set makes no canonical sense. You have a formal guarantee, sure, but it's locked inside a mathematical black box.

Methods

To bring geometry and intuition back from the infinite-dimensional void, the authors propose mapping distributions into a finite-dimensional vector space before doing any conformal math:

  1. Basis Expansion & Truncation: Instead of wrestling with raw density functions, they project the output distributions onto a truncated orthonormal basis (assuming the distributions are reasonably smooth—formally, lying in an anisotropic Sobolev ellipsoid). Now, every distribution is represented by a finite vector of expansion coefficients.
  2. Calibration in Coefficient Space: Using a standard held-out calibration set, they measure the weighted Euclidean distance between the base model's predicted coefficients and the empirical coefficients of the observed data. Finding the right quantile of these scores defines a clean ellipsoid in coefficient space.
  3. Mapping Back: Because the linear map between the truncated basis coefficients and the density functions preserves geometry (it's an isometry), this neat ellipsoid maps directly back into a concrete set of distributions.
  4. An Adaptive Variant: Standard CP only guarantees coverage on average across all inputs. Building on existing local-CP techniques, the authors introduce a $k$-nearest-neighbors step: for a given test input distribution, they calibrate only on the $k$ closest input distributions in the calibration set, achieving asymptotic conditional coverage tailored to that specific input.

Datasets

The authors evaluate their framework across existing synthetic and real-world benchmarks (no new datasets are introduced):

  • Synthetic Data: 1D mixtures of two truncated Gaussians, 1D mixtures of three Beta distributions, and multidimensional cosmological Dark Matter simulations in 3D and 6D.
  • Real-World Data: A House Price distribution dataset and a Mortality (age-at-death) dataset used to test performance in low-data regimes.

Key Insights and Ideas

  • Validity without interpretability is a trap: Proving that $\mathbb{P}(Y \in \mathcal{Q}(X)) \ge 1-\gamma$ isn't enough if $\mathcal{Q}(X)$ is an irregular subset of a function space. By operating in a truncated basis, you get a closed-form equation for the prediction set's volume and can uniformly sample candidate distributions using standard ellipsoid-sampling algorithms.
  • Exact finite-sample math for calibration: How big does your calibration set need to be? The authors prove that conditional on the calibration set, the true coverage probability follows an exact Beta distribution (and the number of covered test points follows a Beta-Binomial distribution), giving engineers a concrete way to budget calibration data.
  • Local neighborhoods tame distributional heterogeneity: Some input distributions are just harder to predict than others. Calibrating via $k$-nearest neighbors in distribution space dynamically shrinks or expands the prediction ellipsoid depending on local difficulty.

Key Results

Tested across three base DDR models—Nonparametric Distribution Regression (NDR), Optimal Transport Map Regression (OTR), and Wasserstein Regression (WR)—the framework delivers on its theoretical promises:

  • Tighter Sets via Adaptivity: Across all 1D, 3D, and 6D synthetic tasks as well as the House Price dataset, the adaptive CP variant consistently matches or shrinks the prediction set size (measured via the threshold $\hat{q}$) compared to non-adaptive CP for the same target coverage.
  • Spot-on Conditional Coverage: When aiming for a nominal coverage level (e.g., 90%), the adaptive method stays remarkably close across distinct input groups: maximum empirical coverage deviations are bounded by 0.04 (Truncated Gaussians), 0.06 (Mixture of Betas), 0.04 (3D Dark Matter), 0.02 (6D Dark Matter), and 0.06 (House Price).
  • Theory Matches Reality: Empirical coverage histograms across repeated trials align tightly with the theoretical Beta-Binomial curves, and distributions uniformly sampled from the conformal sets visually hug the true underlying densities.

Limitations and Future Work

  • Exchangeability Required: Like classical CP, this framework assumes your calibration and test distributions are exchangeable. It does not currently handle covariate shift (where the distribution of input distributions drifts over time).
  • Curse of Dimensionality in Local Calibration: Finding $k$-nearest neighbors in distribution space gets tricky as dimensions scale up. Extending the framework to non-exchangeable data and improving local calibration in high-dimensional distribution spaces are flagged as prime directions for future work.

Summary updated

BibTeX
@inproceedings{tran2026conformal,
  author = {Trung-Khang Tran and Tuan A. Hoang and Viet-Hoang Tran and Tan Minh Nguyen},
  title = {{Conformal Prediction for Distribution-to-Distribution Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4xA4yCPjL5},
}
Figure