Robust Conditional Conformal Prediction via Branched Normalizing Flow
Abstract
Conformal prediction (CP) constructs prediction sets with marginal coverage guarantees under exchangeability of calibration and test samples. Under distribution shift, existing alignment approaches primarily target marginal conformal score distributions, leaving conditional coverage at individual test inputs uncontrolled. As a consequence, CP can remain unreliable in regions where the conditional score distributions are mismatched. In this work, we bound the conditional invalidity of CP under distribution shift in terms of the Wasserstein distance between the calibration and test distributions. This result highlights the role of invertible transport in mitigating conditional coverage degradation. Motivated by this insight, we introduce Branched Normalizing Flow (BNF), a two-branch architecture that normalizes a test input to the calibration distribution and transforms the prediction set of the normalized input back to the test distribution while preserving an oracle conditional guarantee under exact population transport. Empirically, BNF consistently improves conditional coverage robustness on nine datasets across a wide range of confidence levels.