arXiv:2608.23153cs.LGAug 2026

Manuscript Offprint

arXiv:2608.23153

Conformal Risk Minimization for Semi-Supervised Domain Adaptation via Optimal Transport

Manos Giannopoulos, Yi Shen, Michael M. Zavlanos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In high-stakes healthcare applications, machine learning models are frequently trained on data from one patient population and deployed on another, creating a distribution shift that degrades both accuracy and reliability. Semi-Supervised Domain Adaptation (SSDA) addresses this by leveraging labeled data from some source domain to improve model performance on a target domain where labels are scarce. However, existing SSDA methods optimize primarily for point-prediction accuracy and offer no principled uncertainty quantification — a prerequisite for clinical trust. Conformal Prediction (CP) can address this limitation by providing prediction sets with rigorous, distribution-free coverage guarantees. However, applying CP post-hoc to a pre-trained model can yield prohibitively large prediction sets, as SSDA pre-training methods do not account for the nonconformity score geometry that determines conformal set size. Conformal Risk Minimization (CRM) has been used to resolve this issue in the fully supervised setting by integrating the CP objective directly into model training, but it requires a large labeled dataset to compute nonconformity thresholds during training, precisely the data that is scarce in the SSDA regime. We propose an end-to-end framework that integrates CRM into the SSDA training objective, enabling effective CRM in the limited-labeled-target-data regime. The key idea is to utilize Optimal Transport (OT) to generate pseudolabels for unlabeled target instances, providing the additional training signal needed by CRM to operate using only a small labeled target set. This results in a model jointly optimized for domain invariance and conformal efficiency, producing prediction sets that are compact, coverage-valid, and support domain-specific constraints such as excluding mutually contradictory diagnoses in skin lesion classification.

1 Introduction

In many clinical applications of machine learning, medical imaging being a prominent example, labeled data in the target domain are scarce, while labeled data from a related source domain and unlabeled data from the target domain may be abundant. Semi-Supervised Domain Adaptation (SSDA) algorithms exploit this setting by leveraging labeled source data alongside the limited labeled target data to improve point-prediction accuracy on the target domain. Another requirement in high-stakes settings, where an incorrect decision could lead to serious complications, is reliable deployment beyond predictive accuracy alone. To reliably use a model, a clinician might require both a prediction and a calibrated measure of its uncertainty, in order to assess when an output can be trusted and when further evidence is warranted. Conventional SSDA objectives, designed solely around point-prediction accuracy, do not provide such uncertainty estimates.

Conformal Prediction (Vovk et al., 2005a) (CP) can address this limitation by equipping any pre-trained model with distribution-free, finite-sample guarantees on prediction uncertainty. Given a significance level

Figure

Figure 1: Our proposed framework (CP-JDOT) that integrates conformal optimization in-the-loop for Semi-Supervised Domain Adaptation tasks. Our algorithm uses the labeled target dataset to compute a differentiable quantile of the nonconformity score distribution. Then, it optimizes a loss function that contains a Domain Alignment component and a Conformal Alignment component derived from the sizes of the conformal sets constructed on the unlabeled target data, using pseudolabels generated from optimally transported source data.

α\alpha, CP constructs a prediction set C(X)C(X) for an input XX (e.g., a feature vector, an image, or other structured input) such that the true label YY is included in the set with a probability of at least 1−α1 - \alpha, i.e.,

P(Y∈C(X))≥1−α.\mathbb{P}(Y\in C(X))\geq1-\alpha.

Through this guarantee, CP produces prediction sets that are inherently adaptive: small for inputs that the model can easily classify, and larger for inputs that are more difficult or atypical. This adaptive behavior makes predictive uncertainty explicit in a statistically rigorous way, providing a principled foundation for clinical decision-making.

Traditionally, CP has been applied as a post-hoc wrapper on top of pre-trained models (Angelopoulos et al., 2021; Romano et al., 2019; 2020; Vovk & Bendtsen, 2018; Vovk et al., 2020). However, this approach often yields prediction sets that are far too large to be clinically useful. The reason is fundamental: A pre-training objective that optimizes for point-prediction accuracy does not account for the nonconformity score geometry that governs conformal set size. While an optimized post-hoc calibration method can yield modest improvements in set size, the best achievable result is fundamentally constrained by the predictive outputs of the underlying model. Conformal Risk Minimization (CRM) (Bellotti, 2020; 2021; Stutz et al., 2021) addresses this by incorporating set-size directly into the training objective via differentiable nonconformity thresholds, jointly optimizing accuracy and conformal efficiency end-to-end. However, extending CRM to an SSDA setting is non-trivial: existing approaches rely on large labeled datasets to estimate or learn nonconformity score thresholds during training, and do not provide a clear way to use labeled data from a different distribution. The question we address in this work is therefore:

How can we optimally train conformal predictors for semi-supervised domain adaptation tasks where labeled data is limited in the target domain?

In this work, we propose CP-JDOT (outlined in Figure 1), an end-to-end CRM training algorithm designed for SSDA tasks where labeled target data are scarce. We assume access to a small labeled target set, sufficient unlabeled target data, and labeled source data. The labeled target samples are used to compute a differentiable quantile of the nonconformity scores at each training iteration, serving as the conformal threshold during training. To align source and target distributions, we use Joint Domain Adaptation to map both domains into a shared representation space, and rely on Optimal Transport (OT) to transfer source labels to unlabeled target instances as pseudolabels. Conformal sets are then constructed around these pseudolabeled target instances using the quantile derived from the small labeled target set, and the resulting classification and set-size losses are backpropagated end-to-end, directly shaping the model's output geometry for conformal efficiency. Our experiments show that CP-JDOT consistently reduces average prediction set size compared to state-of-the-art SSDA pre-training methods that optimize for top-1 accuracy, while preserving coverage. Furthermore, since our method directly modifies the training loss, it can support domain-specific constraints — for example, penalizing sets that simultaneously include benign and malignant classes in skin lesion classification — making the framework attractive for applications where prediction set composition directly impacts clinical decision-making.

The key contributions of this work are summarized as follows:

  1. We propose CP-JDOT, a novel SSDA training framework that integrates a CRM objective within a Joint Domain Adaptation with Optimal Transport framework to enable the optimization of a predictive model with respect to the prediction sets it will produce downstream. This framework specifically addresses target-label scarcity by leveraging OT-derived pseudolabels to calibrate a conformal predictor in a globally aligned feature space, bridging the gap between supervised CRM and SSDA.

  2. We demonstrate that, by incorporating the conformal objective directly into the training loop, CP-JDOT supports penalty terms tailored to domain-specific requirements. Beyond minimizing set cardinality, this enables control over set composition — such as mitigating “coverage confusion” (Stutz et al., 2021) by penalizing the simultaneous inclusion of mutually exclusive high-level classes — yielding prediction sets that are both statistically valid and semantically meaningful.

  3. We provide a rigorous empirical analysis demonstrating that our end-to-end approach consistently outperforms state-of-the-art CP-agnostic SSDA methods with post-hoc conformal wrappers when evaluated on the downstream average set size, while preserving coverage guarantees.

References (44)