Feature Importance — What the Model Pays Attention To

The most basic and most used interpretability question is also the most useful: which features actually matter to this model? Feature importance answers it, giving a ranked list of the inputs that drive a model's predictions — the first thing to compute when you want to understand, debug, or trust any model. This post covers the main ways to measure it, the traps that make naive importance misleading, and why permutation importance is the reliable default.

Posts 1–2 framed interpretability and the intrinsic/post-hoc choice. This post covers the workhorse global technique (post 1): feature importance, which summarizes a model’s overall behavior by ranking its inputs. It’s where most interpretability work starts, and getting it right (and knowing its limits) prevents a surprising number of wrong conclusions.

What feature importance tells you

Feature importance assigns each input feature a score reflecting how much it contributes to the model’s predictions, producing a ranked list: this feature matters a lot, that one barely at all. It answers the global question “what does the model rely on overall?” and it’s valuable for several immediate reasons:

It’s usually the first interpretability analysis to run on any model, because the ranked list of what-matters is both easy to produce and immediately informative.

How it’s measured — and why the obvious ways mislead

There are several ways to compute feature importance, and the naive ones have real traps:

The practical guidance: don’t trust built-in impurity importances uncritically; prefer permutation importance for a reliable global ranking, and SHAP when you want rigor and local-global consistency.

The traps that make even good importance misleading

Feature importance is useful but genuinely easy to misread, and three traps cause most of the errors:

Held with these caveats, feature importance is the indispensable first step of interpretability: compute a reliable ranking (permutation or SHAP), use it to sanity-check and debug the model and detect leakage, and communicate what the model relies on — while never mistaking “the model uses this” for “this causes the outcome,” and always remembering that correlated features and local effects can make the global picture lie. It tells you what the model pays attention to, which is the foundation, but not the whole story — the local methods in the next posts fill in why a particular prediction came out as it did.

The throughline: feature importance ranks which inputs drive a model’s predictions — the first and most useful interpretability analysis, great for sanity-checking, leakage detection, feature selection, and communication. But measurement matters: model-specific importances (tree impurity, coefficients) are convenient yet biased (impurity favors high-cardinality features), so prefer permutation importance (shuffle a feature, measure the accuracy drop — model-agnostic, measures true predictive reliance, the reliable default) or SHAP-based importance (rigorous, local-global consistent). Three traps make even good importance mislead: correlated features split/hide importance, importance is not causation (it describes the model using a feature, not that the feature causes the outcome or that changing it would help — the costly error linking to causal inference), and global importance hides local/interaction effects (motivating the local methods of posts 4–6). Indispensable foundation, but not the whole story.

Key takeaways

Further reading

Sources & References