Multi-Source Conformal Inference Under Distribution Shift

Yi Liu, Alexander Levis, Sharon-Lise Normand, Larry Han

Abstract

Recent years have experienced increasing utilization of complex machine learning models across multiple sources of data to inform more generalizable decision-making. However, distribution shifts across data sources and privacy concerns related to sharing individual-level data, coupled with a lack of uncertainty quantification from machine learning predictions, make it challenging to achieve valid inferences in multi-source environments. In this paper, we consider the problem of obtaining distribution-free prediction intervals for a target population, leveraging multiple potentially biased data sources. We derive the efficient influence functions for the quantiles of unobserved outcomes in the target and source populations, and show that one can incorporate machine learning prediction algorithms in the estimation of nuisance functions while still achieving parametric rates of convergence to nominal coverage probabilities. Moreover, when conditional outcome invariance is violated, we propose a data-adaptive strategy to upweight informative data sources for efficiency gain and downweight non-informative data sources for bias reduction. We highlight the robustness and efficiency of our proposals for a variety of conformal scores and data-generating mechanisms via extensive synthetic experiments. Hospital length of stay prediction intervals for pediatric patients undergoing a high-risk cardiac surgical procedure between 2016-2022 in the U.S. illustrate the utility of our methodology.

Introduction

Machine learning models are increasingly deployed to guide high-stakes decisions, such as predicting clinical outcomes like hospital length of stay. However, two major hurdles impede their reliability: uncertainty quantification and distribution shift. Standard conformal inference provides a framework for creating distribution-free prediction intervals, but it typically assumes that calibration data is identically distributed to future data. In practice, data often originates from multiple heterogeneous sources (e.g., different hospitals) characterized by covariate shift (varying demographics) and concept shift (varying medical practices). Furthermore, privacy regulations often prohibit the pooling of raw individual-level data.

This paper addresses the challenge of "borrowing strength" from multiple external data sources to improve prediction precision for a specific target population without compromising privacy or succumbing to bias from non-representative source data.

Methodology

The proposed "federated" approach enables robust inference through several key innovations:

  1. Influence Functions (IFs): Sites compute influence functions for outcome quantiles rather than sharing raw data. This semiparametric technique allows the integration of complex machine learning models (e.g., Random Forests) while maintaining theoretical guarantees on error convergence.
  2. Handling Concept Shift: By deriving a new Efficient Influence Function (EIF), the framework remains valid even when the relationship between features and outcomes varies across sites.
  3. Data-Adaptive Federated Weights: The algorithm learns to find optimal weights for each site. It upweights source sites similar to the target population and downweights those that are non-informative or biased.
  4. Privacy-Preserving Aggregation: The method is compatible with federated learning environments as it only requires the exchange of summary statistics (IFs).
Overview of the federated conformal inference framework, illustrating the aggregation of influence functions from multiple sites to produce a weighted prediction set.

Experimental Evaluation

The methodology was validated through extensive synthetic experiments and a real-world clinical application. Synthetic tests covered 162 scenarios, varying sample sizes (300 to 3,000), levels of covariate shift, and degrees of concept shift. The clinical application utilized data from the Society of Thoracic Surgeons’ Congenital Heart Surgery Database (STS-CHSD), involving 3,457 pediatric patients undergoing the high-risk Norwood procedure across four U.S. regions.

Key Results and Discussion

The federated approach demonstrates significant efficiency gains and robustness. Relying solely on local target-site data often results in wide, uninformative prediction intervals due to small sample sizes. By contrast, the proposed method achieves the target 90% coverage while producing significantly narrower intervals.

Comparison of interval widths across methods (top) and visualization of data-adaptive weights assigned to source sites based on their similarity to the target (bottom).

As shown in Figure 4, the federated method (red) consistently outperforms target-only (blue) and pooled (green) methods in terms of interval width across different conformal scores (ASR, Local ASR, CQR). When concept shift is present, the data-adaptive weights successfully move toward zero for biased sites, protecting the target model. In the Norwood procedure application, the federated approach produced 80% prediction intervals for hospital length of stay that were over 30 days shorter than the target-only method, providing much higher clinical utility for family planning and resource management.

Conclusion and Future Work

This framework provides a robust solution for multi-source conformal inference. Future research may explore covariate-adaptive weights to allow site trust to vary by patient characteristics and develop sensitivity analysis tools for data that is "Missing Not at Random" (MNAR). Additionally, further optimization of communication efficiency for large-scale clinical networks remains a priority.

Summary updated

BibTeX
@inproceedings{liu2024multi,
  author = {Yi Liu and Alexander Levis and Sharon-Lise Normand and Larry Han},
  title = {{Multi-Source Conformal Inference Under Distribution Shift}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=qmUbSAgz08},
}
Figure