When Gain Importance and Permutation Importance Disagree
Last updated: November 29, 2026
Quick Overview
For a gradient boosted model predicting Facebook Dating match acceptance, gain-based importance ranks a user ID hash feature first while permutation importance on validation data ranks it near zero. Explain why and which to trust.
Meta
November 29, 20260
0
0 solved
For a gradient boosted model predicting Facebook Dating match acceptance, gain-based importance ranks a user ID hash feature first while permutation importance on validation data ranks it near zero. Explain why and which to trust.
Feature importance drives feature work at Meta, and misleading importance wastes effort or hides overfitting. The interviewer checks that you understand how each method is computed and what the disagreement reveals.
What the Interviewer Expects
- Explain gain importance as total loss reduction from splits on training data
- Explain permutation importance as validation loss increase after shuffling
- Diagnose the disagreement as overfitting to a high-cardinality feature
- Discuss correlated features splitting permutation importance
- Mention SHAP and drop-column importance as alternatives
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How do correlated features distort permutation importance?
- Why do high-cardinality features attract many splits?
- When is drop-column importance worth its cost?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
I would confirm gain importance came from the training trees and permutation importance from a held-out set, and check the cardinality of the hashed ID feature....
Approach
Gain importance sums the training loss reduction from every split on a feature. High-cardinality features offer many candidate split points, so trees can carve out tiny groups of training users and ge...