Problem
Risk and fraud teams need to tell why a model labelled a transaction "high-risk". Popular explainers mislead here. SHAP assumes features are independent, so on correlated data it evaluates the model on combinations that never occur, and the attributions describe behavior on impossible inputs. Integrated Gradients (IG) reports "absolute" importance against a "no signal" baseline, which hides what the explanation is compared with. Neither output is easy to trust or act on.
Example from the article: a flagged transaction is explained by real transactions labelled "low-risk" plus the features that drove the difference. The author's example output uses made-up features, not real Coinbase ones.
Solution in brief
Compare the case with real cases that the model scored differently. A nearest-neighbor search over a dataset of real inferences finds the closest such cases (real counterfactuals). IG then attributes the output difference between the case and each counterfactual to features, and the attributions are averaged into one ranking.
Questions this case answers
- How to explain an individual prediction of a deep model when features are correlated and perturbation-based explanations create inputs that cannot occur in the data
- How to attribute the difference between two real cases' model outputs to specific features without choosing an arbitrary reference baseline
- How to explain why a neural network labelled a transaction high-risk without showing impossible synthetic inputs?
- How to show which features separate a flagged case from similar cases that were not flagged?
Tools and methods
- DiCE (Diverse Counterfactual Explanations) with KD trees — searches a dataset for the nearest real examples with a different outcome
- Integrated Gradients — attributes the change in model output between two real points to individual features
Google or a one-time email code. No password.