Interpretability & Fairness in 2 Minutes Each
Understanding why a model decides, and whether it treats people fairly.
Global vs local explanations
Global explains the model overall; local explains one prediction.
Remember: âincome matters most to this modelâ is global; âyou were declined mainly because of your debt ratioâ is local.
Interpretable by design
Models simple enough to read directly: linear models, small trees, rule lists, additive models.
Remember: for high-stakes decisions, an interpretable model thatâs nearly as accurate often beats a black box plus an explanation.
Permutation importance
Shuffle a feature and see how much the modelâs accuracy drops.
Remember: model-agnostic and simple; misleading when features are correlated (the model can lean on a substitute).
Partial dependence
How the prediction changes, on average, as one feature varies.
Remember: shows the shape of a relationship (ârisk rises sharply after age 60â); individual curves (ICE) reveal when the average hides different behaviors.
LIME
Explain one prediction by fitting a simple model to the black boxâs behavior in the neighborhood of that example.
Remember: intuitive but can be unstable between runs.
SHAP
Split a prediction among features fairly, using Shapley values from game theory.
Picture it: dividing a groupâs prize according to how much each member added across every possible team they could have joined.
Remember: contributions add up exactly to the prediction minus the average prediction. Fast and exact for tree models (TreeSHAP).
Counterfactual explanations
The smallest change that would flip the decision.
Remember: âyouâd have been approved with a slightly lower debt ratioâ is actionable for the person affected.
Saliency maps
Highlight which input pixels most affect the output.
Watch out: they can look convincing even for broken models; sanity-check them. Grad-CAM and Integrated Gradients are more reliable variants.
Mechanistic interpretability
Reverse-engineer the internal circuits and features of a neural network.
Remember: an active research area; sparse autoencoders find interpretable features inside large models.
Where unfairness comes from
- Historical bias: labels reflect past discrimination.
- Representation bias: some groups are underrepresented.
- Measurement bias: features mean different things for different groups.
- Proxies: removing a sensitive attribute doesnât help if zip code stands in for it.
Fairness definitions
| Definition | Means |
|---|---|
| Demographic parity | Each group gets positive outcomes at the same rate |
| Equal opportunity | Qualified people in each group are approved at the same rate |
| Equalized odds | Equal true and false positive rates across groups |
| Calibration | A score of 0.7 means the same risk in every group |
Remember: when groupsâ base rates differ, you canât satisfy all of these at once. Choosing one is a values decision about which harm matters most.
Mitigation
Remember: fix data (reweight, collect more), constrain training, or adjust thresholds per group, and always report metrics per group, not just overall.
Responsible practice
Remember: document models (model cards) and data (datasheets), keep humans in high-stakes loops, allow appeals, and monitor fairness after launch because data shifts.