How do partial dependence plots (PDP) and LIME explain a black-box model, why do correlated features mislead both via out-of-distribution extrapolation, and how do individual conditional expectation (ICE) plots fix a separate weakness of PDPs?

ML systems and evaluation, Interpretability
Level L4 Advanced. Length Medium. Nature Th Theoretical.

What's being asked

Whether you understand the mechanics of global marginalisation (PDP) and local surrogate fitting (LIME), and their shared failure under correlated inputs.

Key idea

PDP averages the black-box prediction f(xS,XC(i)) over the marginal distribution of other features XC as target feature(s) xS vary, while LIME fits a sparse linear surrogate around perturbed neighbours of one point x; both evaluate f at unrealistic combinations off the true data manifold when features correlate, and ICE plots keep per-instance curves instead of averaging cancelling effects.

Steps

  1. Define PDP (global): for target feature(s) S, complement C, and n dataset instances, f^S(xS)=1n∑i=1nf(xS,xC(i)) plots the average predicted output as xS varies while holding other features at their empirical values.
  2. Define LIME (local): generate perturbed samples z around one instance x, weight them by proximity πx(z), and fit an interpretable linear model g(z′) on the interpretable representation z′ of z by minimising weighted squared loss plus a sparsity penalty.
  3. Explain the correlation flaw: if height and weight correlate strongly, varying height independently in PDP (or perturbing features independently in LIME) queries the black box at impossible pairs like 2.0 m and 40 kg, where the model behaves arbitrarily.
  4. Explain ICE plots: averaging across all n instances in a PDP hides heterogeneous effects (for instance, +10 effect for half the population and −10 for the other half averages to a flat line); ICE plots draw one curve f(xS,xC(i)) per instance so opposing slopes become visible.

Common mistakes

How long your answer should be

5–6 sentences covering PDP, LIME, extrapolation and ICE.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: A new recommender model improves offline AUC on logged data, but an online A/B test shows no gain. What are the likely reasons, and how can you make offline evaluation more predictive of online results?
Next in ML systems and evaluation: In knowledge distillation, the student minimises L=(1−α)LCE(y,pS)+αT2KL(pT(T)∥pS(T)), where p(T)=softmax⁡(z/T) uses temperature T>1. How do you derive the gradient of KL(pT(T)∥pS(T)) with respect to student logit zi in the high-temperature limit to show why the T2 multiplier is needed?