Skip to content

Benign vs harmful shift

A system can behave differently without causing worse outcomes. source is the reference group; target is the group under review. Choose a score that reflects the problem you want to catch: no single score can reveal every kind of problem.

Choose a score linked to the concern

MannWhitneyU checks whether scores tend to rank higher in one group. Dsos checks the high end of a score you linked to harm. For Dsos, higher values must mean worse outcomes; reverse the sign if lower values are worse.

Score Labels needed? Harmful direction Pass to Dsos When it helps
Predicted risk No Higher risk as-is Flag a group that the model estimates to be riskier
Confidence (e.g. LogitGap) No Lower certainty negate (-score) Watch for less certain predictions before outcomes arrive
Outlier / atypicality No More unusual inputs as-is Find cases unlike those seen before
Prediction error (Brier, log loss) Yes Larger error as-is Check accuracy after outcomes arrive
Outcome of interest (higher is better) No Lower outcome negate (-score) Compare groups or batches on a real outcome

The same measure can mean different things in different settings. A score change is not automatically a change in the real outcome.

Next steps

See Compare outcomes for a real measure and Monitor model scores for model predictions.

Reference

  • Polyzotis, N. et al. (2019). Data validation for machine learning. Proc. MLSys 1:334–347.