Abstract
Machine learning models frequently experience performance degradation when deployed in environments that differ from their training data. This paper introduces a nonparametric hierarchical framework, Hierarchical Decomposition of Performance Differences (HDPD), to diagnose these discrepancies. By decomposing the performance gap into aggregate components (marginal vs. conditional shifts) and further into variable-specific attributions using Shapley values, HDPD identifies root causes of model failure with statistically valid confidence intervals.
Introduction: The Challenge of Distribution Shift
Machine learning models often fail in the real world due to "distribution shift"—where the data distribution in the deployment environment differs from the training set. For instance, a model predicting hospital readmissions might perform poorly when moved from a general population to a specific patient group, such as those with heart failure.
Existing "aggregate decompositions" typically distinguish between shifts in feature distributions ($p(X)$) and shifts in the relationship between features and outcomes ($p(Y|X)$). However, these high-level explanations are often too coarse for engineering teams who need to know which specific variables drive the performance drop to decide on interventions like retraining, data collection, or operational changes. Current variable-level methods often require unavailable causal graphs or make restrictive parametric assumptions.
The HDPD Framework
The authors propose Hierarchical Decomposition of Performance Differences (HDPD), a two-stage approach to explaining performance gaps:
- Aggregate Level: The total performance gap is split into three components: baseline feature shifts ($\Lambda_W$), conditional covariate shifts ($\Lambda_Z$), and conditional outcome shifts ($\Lambda_Y$).
- Detailed Level: A Shapley-based framework attributes these aggregate terms to individual variables, pinpointing exactly which feature is responsible for which type of shift.
A core technical innovation of HDPD is its estimation strategy. Standard "plug-in" estimators for these gaps are often biased. The authors derive debiased, nonparametric estimators (utilizing techniques similar to Augmented Inverse Probability Weighting) that provide asymptotically valid confidence intervals (CIs). This statistical rigor allows practitioners to distinguish significant drivers from noise.
Empirical Evaluation
The framework was validated across three distinct settings:
- Synthetic Simulations: To verify that confidence intervals achieve the target 90% coverage and to benchmark against methods like Oaxaca-Blinder and WuShift.
- Hospital Readmission (EHR): Predicting 30-day readmission when shifting from a general population to heart failure patients.
- ACS Public Coverage: Predicting health insurance coverage across different US states (Nebraska to Louisiana) using 31 demographic and employment variables.
Key Results and Insights
HDPD demonstrates that distribution shift does not always equal performance shift; a variable may shift significantly, but if the model does not rely on it, accuracy remains unaffected. By focusing on shifts that impact accuracy, HDPD provides actionable root causes.
In the hospital readmission study, HDPD identified "Drug-induced or toxic-related conditions" as the primary driver of the performance gap. Unlike standard mean-change tests, which often flag nearly every variable as a contributor, HDPD provided a clear, prioritized path for intervention.
Furthermore, the inclusion of confidence intervals proved vital. In the hospital study, HDPD showed that while some variables appeared important, their overlapping CIs indicated that more data was required to confirm the ranking of causes. When used for model revision, HDPD-informed updates achieved higher accuracy (AUC) compared to revisions based on other popular attribution methods.
Conclusion and Future Work
HDPD offers a rigorous, nonparametric path to diagnosing ML model failure. While currently optimized for tabular data and requiring "overlapping support" between domains, future work aims to extend the framework to unstructured data (images/text) and more complex metrics like F1-score or AUC. By providing statistically grounded, variable-level explanations, HDPD bridges the gap between identifying a performance drop and taking effective action to fix it.
Summary updated