"Why did the Model Fail?": Attributing Model Performance Changes to Distribution Shifts

Haoran Zhang, Harvineet Singh, Marzyeh Ghassemi, Shalmali Joshi
10/19/2022
cs.LGstat.ML

Official code: MLforHealth/expl_perf_drop (8 stars, Python, MIT, last commit 2023-05-17).

Abstract

Machine learning models frequently experience performance drops under distribution shifts. The underlying cause of such shifts may be multiple simultaneous factors such as changes in data quality, differences in specific covariate distributions, or changes in the relationship between label and features.

Show full abstract

When a model does fail during deployment, attributing performance change to these factors is critical for the model developer to identify the root cause and take mitigating actions. In this work, we introduce the problem of attributing performance differences between environments to distribution shifts in the underlying data generating mechanisms. We formulate the problem as a cooperative game where the players are distributions. We define the value of a set of distributions to be the change in model performance when only this set of distributions has changed between environments, and derive an importance weighting method for computing the value of an arbitrary set of distributions. The contribution of each distribution to the total performance change is then quantified as its Shapley value. We demonstrate the correctness and utility of our method on synthetic, semi-synthetic, and real-world case studies, showing its effectiveness in attributing performance changes to a wide range of distribution shifts.

View on arXivView PDF

Code Implementations(1)

MIT

Attributing model performance changes to distribution shifts in causal mechanisms.

82PythonOct 29, 20223 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022why,
  title  = {"Why did the Model Fail?": Attributing Model Performance Changes to Distribution Shifts},
  author = {Haoran Zhang and Harvineet Singh and Marzyeh Ghassemi and Shalmali Joshi},
  year   = {2022},
  eprint = {2210.10769},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10769}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.10769.svg)](https://codeofpaper.com/paper/2210.10769)

Discussion