A stakeholder asks which features drive your gradient-boosted model. Compare built-in importance, permutation importance and SHAP, and tell me where each one misleads.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
All three answer "what does the model rely on". None of them answers "what causes the outcome", and they disagree in predictable ways. Say that first, because the stakeholder usually wants the causal answer.
Full worked answer
All three answer "what does the model rely on". None of them answers "what causes the outcome", and they disagree in predictable ways. Say that first, because the stakeholder usually wants the causal answer.
- Built-in (split-count or gain) importance is free and the least trustworthy. Split count favours continuous and high-cardinality features that offer many split points, and gain is measured on training data, so it rewards features the trees used to fit noise. Fine for a quick look, not for a slide.
- Permutation importance shuffles one column on a held-out set and measures the metric drop. It is model-agnostic and tied to real predictive value. Two failure modes: correlated features (shuffle one of a pair and the model leans on the twin, so both look unimportant, and shuffling also creates unrealistic rows the model never saw), and cost, since it needs a scoring pass per feature per repeat.
- SHAP decomposes each individual prediction into additive per-feature contributions based on Shapley values, giving local explanations and, by averaging absolute values, a global ranking. TreeSHAP computes them exactly and quickly for tree ensembles. Caveats: results depend on the background data and on how "absent" features are simulated (interventional versus conditional), correlated features split credit in ways that look arbitrary, and a large SHAP value means "moved this prediction", not "would change the outcome if you intervened".
What I would actually do: permutation importance on held-out data for the global story, shuffling correlated clusters together so twins cannot hide each other. SHAP for individual decisions, such as reason codes on a credit decision. Partial dependence or ICE plots when someone asks about direction and shape. And if a feature ranks high and nobody can explain why, treat it as a leakage suspect before treating it as an insight.
When the real question is "what happens if we change X", the answer is an experiment or a causal model, not an attribution method.
What a good answer covers
- All three answer "what does the model rely on"
- None of them answers "what causes the outcome", and they disagree in predictable ways
- Say that first, because the stakeholder usually wants the causal answer
- Built-in (split-count or gain) importance is free and the least trustworthy
- Permutation importance shuffles one column on a held-out set and measures the metric drop
Key terms: Built-in (split-count or gain) importance · Permutation importance · SHAP
Interviewer follow-ups to expect
Two features are 0.95 correlated and both show near-zero permutation importance. What is going on, and how do you report it?
Why might two SHAP tools give different values for the same model?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep