How does permutation feature importance measure a feature’s contribution, why must it be computed on held-out validation data rather than training data, and what happens when two strongly correlated features (x1≈x2) are evaluated with it?

ML systems and evaluation, Interpretability
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you know the permutation importance algorithm, why overfitting distorts training importance, and how multicollinearity hides feature signal.

Key idea

Permutation importance measures the increase in model loss ΔL=L(y,f(Xperm(j)))−L(y,f(X)) (or drop in score) when column j of the feature matrix X is randomly shuffled into Xperm(j) for fitted model f and targets y; correlated features cover for one another when shuffled individually, depressing both importances.

Steps

  1. Describe the algorithm: evaluate baseline loss L0 on validation data (X,y); for feature j, randomly permute column j across rows (breaking its relationship with y while keeping its marginal distribution), recompute loss Lj, and report Lj−L0 (averaged over several shuffles).
  2. Explain why validation data is needed: on training data, an overfitted model can rely on pure noise features to memorise training labels, making irrelevant features appear highly important even though they hurt generalisation.
  3. Explain the correlation pitfall: if x1≈x2 and a linear or tree model splits weight between them, shuffling x1 alone barely hurts predictions because x2 still carries almost the same signal—or even worse, creates unrealistic (x1,x2) combinations off the data manifold.
  4. State the remedy: group correlated features and permute them together, or inspect conditional permutation importance.

Common mistakes

How long your answer should be

4–5 sentences.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: On four binary outcomes y=[1,0,1,0], Forecaster A predicts p^A=[0.8,0.2,0.8,0.2] and Forecaster B predicts p^B=[1.0,0.5,0.5,0.0]. What are their Brier scores, and how do you prove that the Brier score is a strictly proper scoring rule?
Next in ML systems and evaluation: A weight tensor of 100 million parameters stored in FP32 (4 bytes each) spans the range [−0.64,+1.91]. What are the unsigned INT8 ([0,255]) affine scale s and zero-point z, what are the quantised and dequantised values and error for w=0.314, and how much parameter memory is saved?