NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond the Training Distribution: Evaluating Predictions Under Distribution Shift and Selection Bias

Annie S Ulichney, Amanda Lee CostonNeurIPS 2026

TL;DR

Before deploying a predictive model into a high-stakes setting like a new hospital, you need to know if it will actually work—a tough ask when the new patients look different from your training set and historical outcomes were only recorded when doctors chose to run a test. This paper introduces the first statistical framework to evaluate black-box models when covariate shift and selective labels happen at the exact same time. Using Double Machine Learning, the authors accurately predict real-world deployment error using only selectively labeled training data and unlabeled data from the new environment.

What Problem Does This Paper Address?

Machine learning models love to ace their held-out test sets and then quietly fall apart in the real world. In high-stakes domains like healthcare, lending, or hiring, this degradation usually stems from a double whammy of data distortions:

  1. Covariate Shift: Your target deployment population looks systematically different from your source training population (e.g., a clinical model trained in a predominantly white, older hospital is deployed in a younger, more diverse hospital).
  2. Selective Labels: Even in your training data, you don't see the true outcome for everyone—only for those selected by historical human or policy decisions. You only know if a borrower defaults if you approved their loan; you only observe a patient's lab result if a clinician suspected an issue and ordered the test.

Previously, researchers tackled covariate shift (assuming fully observed source labels) or selective labels (assuming a single, unshifted population) in isolation. In reality, they almost always co-occur. If you want to know a model's target risk (its expected loss in the new environment) before deploying it and potentially causing harm, correcting for just one of these biases—or naïvely slapping two standard corrections together—gives you a dangerously misleading report card.

Methods

The authors treat both the prediction model and the loss function as arbitrary black boxes. Assuming standard causal and transfer learning conditions (e.g., outcomes given features remain stable across domains, and historical testing decisions depended only on observed features), they prove that true target risk is mathematically identifiable using selectively labeled source data and unlabeled target data.

To actually compute this risk without blowing up variance, they build a Double Machine Learning (DML) estimator derived from the Efficient Influence Function (EIF)—essentially the mathematical steepest-descent tool for de-biasing estimates.

Their estimator relies on three standard ML "nuisance" models trained via cross-fitting (sample splitting):

  1. A domain classifier estimating the probability a data point comes from the target vs. source hospital (to handle covariate shift).
  2. A propensity model estimating the probability a source patient received a diagnostic test (to handle selective labels).
  3. An outcome regression model predicting the expected loss on observed source patients.

What's novel here is how the EIF combines these pieces: it takes a plug-in loss prediction on the unlabeled target data and adds a doubly-reweighted residual correction from the labeled source data. Because of this structure, estimation errors multiply together rather than adding up. Even if your nuisance ML models converge relatively slowly, the final target risk estimate remains $\sqrt{n}$-consistent, asymptotically normal, and supports standard confidence intervals.

Datasets

The authors evaluate their method on the eICU Collaborative Research Database, which contains de-identified electronic health records from over 200,000 ICU admissions across the US. No new external datasets are introduced, but they cleverly partition eICU hospitals to create realistic distribution shifts:

  • Source & Benchmark: Hospital 208 (demographically average across the dataset).
  • Shifted Targets: Hospital 443 (younger, more African American patients), Hospital 199 (more Caucasian patients), and Hospital 283 (older, more "unknown/other" ethnicity).

They run two types of evaluations: a semi-synthetic setup (real patient covariates, but simulated outcomes and age-biased testing policies so ground-truth risk is known) and a fully real-world setup predicting four clinical complications (elevated BNP, troponin-I, creatine kinase, and hypoxemia) where labels are only observed if an ICU clinician actually ordered the corresponding lab test within 12–24 hours.

Key Insights and Ideas

  • Solving half the problem can make things worse: Adjusting only for covariate shift ignores that your source labels are a biased sample; adjusting only for selective labels evaluates the model on the wrong demographic mix. Both routinely miss the true deployment risk.
  • Naïve combinations are brittle: Simply multiplying inverse-propensity weights for selection and density ratios for covariate shift ("plug-in" weighting) inherits first-order errors from your nuisance models and suffers from massive variance. The DML bias-correction cancels out first-order sensitivity.
  • Uncertainty matters as much as point estimates: In real clinical tasks, ignoring selection bias doesn't just shift the estimated error—it can make an evaluator artificially overconfident (yielding overly narrow confidence intervals) about deploying a risky model.

Key Results

Semi-synthetic eICU selection strength experiment showing bias and RMSE across hospitals.

Figure 1: Semi-synthetic eICU selection strength experiment. Each column corresponds to a target hospital: 443, 199, and 283 represent covariate-shifted deployment populations, while 208 is a no-shift benchmark. Colors denote different evaluation methods that estimate the risk of a fixed prediction rule trained on source hospital 208. Outcomes and labeling are simulated such that risk is higher and label observability lower for older patients as the selection strength parameter on the horizontal axis increases. The top row reports bias and the bottom row RMSE relative to ground-truth target risk. Our DML estimator is the least biased (closest to zero) across the shifted hospitals (443, 199, and 283). Our estimator also achieves among the lowest RMSE across hospitals. Methods addressing only one source of bias (SL-only and CS-only), as well as naïve attempts to combine corrections (plug-in), can misrepresent deployment performance when covariate shift and selective labels jointly occur. Points denote means, and vertical bars denote 95% bootstrapped confidence intervals. Fig. 11 provides the same experiment with log loss.
  • Semi-Synthetic Ground-Truth Tracking: Across all covariate-shifted hospitals (443, 199, 283), the proposed DML estimator is consistently the least biased—hovering right around 0.00 Mean Absolute Error (MAE) bias even as selection bias ramps up (see Figure above). Meanwhile, Covariate-Shift-Only (CS Only) overestimates risk by 0.02 to 0.07, and Selective-Labels-Only (SL Only) underestimates risk on Hospital 443 by nearly -0.10. DML also achieves among the lowest RMSE (~0.015 to 0.055) across the board.
  • Real-World Clinical Shifts: When evaluating lab-dependent outcomes without ground-truth oracle labels, the DML estimator reveals blind spots in baseline methods. For instance, on BNP (heart failure marker) in Hospitals 443 and 199, unadjusted source risk and SL-Only significantly underestimate the target MAE (~0.15–0.20) compared to DML (~0.30–0.40). Furthermore, naïve plug-in estimators produce wildly wide bootstrap confidence intervals, demonstrating DML's practical efficiency gains.

Limitations and Future Work

The mathematical guarantees rely on two strong, untestable assumptions: selection on observables and positivity (overlap). In a messy ICU, if a doctor orders a troponin test based on an unrecorded hunch or bedside observation not captured in the EHR covariates, selection on observables breaks. Similarly, if a target hospital treats a patient demographic that never gets tested in the source hospital, overlap fails.

While appendix sensitivity checks show tolerance to minor violations, the authors suggest future work relaxing these assumptions (e.g., sensitivity analyses or partial identification) or using adaptive data collection to patch overlap gaps. They also highlight exciting extensions to fairness auditing (evaluating subgroup risks) and LLM evaluation, where user prompts shift wildly in deployment while human feedback (thumbs up/down) is selectively observed.

Summary updated

BibTeX
@inproceedings{ulichney2026beyond,
  author = {Annie S Ulichney and Amanda Lee Coston},
  title = {{Beyond the Training Distribution: Evaluating Predictions Under Distribution Shift and Selection Bias}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=tZ71MZ096G},
}
Figure