How does permutation importance overcome the cardinality bias of impurity-based importance?
Quick Overview
Asks why impurity-based feature importance in tree models favors high-cardinality features and how permutation importance avoids that bias. Tests understanding of how each importance is computed, which data each one is measured on, and the limits of shuffling correlated features.
How does permutation importance overcome the cardinality bias of impurity-based importance?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
How does permutation importance overcome the cardinality bias of impurity-based importance?
Impurity-based importance (mean decrease in impurity, MDI) is a common default feature importance in tree libraries, and it tends to rank features with many unique values, such as IDs or continuous noise, too high.
```hint Count the options
Compare how many candidate thresholds a binary feature offers with how many a column of unique random floats offers, and think about what that does at deep nodes that hold only a few rows.
```
```hint Which data
Ask which rows each importance is computed on.
```
### What a Strong Answer Covers
- Where the cardinality bias in MDI comes from
- How permutation importance is computed and which data it is computed on
- Why the permutation score does not reward a feature for having many split points
- The limits of permutation importance
### Follow-up Questions
- A feature's permutation importance comes out slightly negative. What does that tell you?
- Two features are strongly correlated and both get low permutation importance. How would you measure their importance more reliably?
- How does drop-column importance differ from permutation importance, and when is the extra cost worth paying?
- How many shuffles would you run, and how would you decide whether an importance is distinguishable from zero?
Overview: Asks why impurity-based feature importance in tree models favors high-cardinality features and how permutation importance avoids that bias. Tests understanding of how each importance is computed, which data each one is measured on, and the limits of shuffling correlated features.
How does permutation importance overcome the cardinality bias of impurity-based importance?
Impurity-based importance (mean decrease in impurity, MDI) is a common default feature importance in tree libraries, and it tends to rank features with many unique values, such as IDs or continuous noise, too high.
What a Strong Answer Covers Guidance
Where the cardinality bias in MDI comes from
How permutation importance is computed and which data it is computed on
Why the permutation score does not reward a feature for having many split points
The limits of permutation importance
Follow-up Questions Guidance
A feature's permutation importance comes out slightly negative. What does that tell you?
Two features are strongly correlated and both get low permutation importance. How would you measure their importance more reliably?
How does drop-column importance differ from permutation importance, and when is the extra cost worth paying?
How many shuffles would you run, and how would you decide whether an importance is distinguishable from zero?