Targeted Learning for Variable Importance

Xiaohan Wang, Yunzhe Zhou, Giles Hooker

TL;DR

While variable importance metrics are widely used to explain machine learning models, reliably quantifying their uncertainty in finite samples remains difficult. This paper introduces a Targeted Learning (TL) framework for Conditional Permutation Importance (CPI) that iteratively removes plug-in estimation bias. The resulting estimator is asymptotically efficient, computationally lightweight compared to the bootstrap, and produces robust, well-calibrated confidence intervals in finite samples.

What Problem Does This Paper Address?

Interpretable machine learning (IML) relies heavily on variable importance metrics—such as permutation feature importance and Leave-One-Covariate-Out (LOCO)—to explain how covariates drive model predictions. However, standard post-hoc importance scores are sample estimates subject to random variation.

To perform statistical inference (such as constructing confidence intervals), researchers typically turn to one-step de-biasing via efficient influence functions or to bootstrap resampling. Unfortunately, bootstrap methods require repeatedly refitting models, which is computationally expensive. Conversely, one-step de-biasing can suffer from finite-sample instability and sensitivity to plug-in bias. The authors address this gap by establishing an iterative targeted learning framework tailored to feature importance that stabilizes inference without exploding computational runtime.

Methods

The authors adopt the targeted maximum likelihood learning (TMLE) framework and apply it to Conditional Permutation Importance (CPI) under squared-error loss:

  • Why CPI? Standard permutation importance permutes features unconditionally, forcing predictions into low-density, extrapolated regions. Retraining-based metrics like LOCO introduce variationally dependent models that complicate semi-parametric updates. CPI avoids extrapolation and allows the influence function to factorize into orthogonal components ($P_{X,Y \mid Z}$ and $P_Z$), circumventing unstable density-ratio estimation.
  • Targeted Learning Update:
  • Sample Splitting: Data is partitioned into subsets ($I_1, I_2, I_3$) or evaluated using $K$-fold cross-fitting.
  • Initial Estimation ($I_1$): Train the initial outcome model $\hat{f}(X, Z)$ and estimate conditional distributions $P(X \mid Z)$ and $P(Y \mid Z)$ using random forest out-of-bag leaf proximities (tree kernels).
  • Iterative Fluctuating Submodel ($I_2$): Construct a parametric submodel that perturbs the estimated distribution along the direction of the efficient influence function: $$P_\varepsilon = (1 + \varepsilon \hat{\psi}) \hat{P}$$ The parameter $\varepsilon$ is updated via maximum likelihood until the empirical score equation is solved ($\hat{\varepsilon} \approx 0$).

  • Inference ($I_3$): Evaluate the target parameter on the updated distribution and construct Wald-type confidence intervals using the empirical standard error of the efficient influence function.

Datasets

The authors evaluate the method through synthetic benchmarks and two real-world datasets:

  • Synthetic Data: 10-dimensional Gaussian covariates with varying correlation $\rho \in \{0.1, 0.2, 0.3, 0.4, 0.5\}$ across three outcome generating processes:
  • (a) Sparse linear model.
  • (b) Dense linear model with varying coefficients.
  • (c) Highly nonlinear model with trigonometric and interaction terms.
  • UCI Bike Sharing Dataset: Regression task predicting hourly bike rental counts based on weather and calendar features.
  • Wine Quality Dataset: Classification task evaluating chemical attributes to predict wine quality.

Key Insights and Ideas

  • Exact Control of Plug-in Bias: One-step de-biasing adjusts for first-order bias by simply adding the empirical average of the influence function. By iteratively fluctuating the distribution until the empirical influence function vanishes, targeted learning produces a valid probability distribution that directly respects the parameter bounds and eliminates finite-sample drift.
  • Orthogonal Factorization Simplifies CPI: Because the marginal distribution of conditioning covariates $P_Z$ is already maximized at the empirical distribution, targeted updates are only required for the conditional component $P_{X,Y \mid Z}$.
  • Kernel Weight Updating via Random Forests: By expressing conditional distributions as neighbor weights derived from random forest leaf co-occurrences, each targeted iteration simply requires reweighting these neighborhood weights by $(1 + \hat{\varepsilon}\hat{\psi})$.

Key Results

  • Superior Bias and Coverage: Across all synthetic settings (tested with GAM, XGBoost, and MLP base learners over 240 replications), the TL estimator exhibited substantially lower bias than naive plug-in estimators. The plug-in estimator suffered severe undercoverage as correlation $\rho$ increased, whereas the TL estimator maintained nominal 95% confidence interval coverage.
  • Computational Efficiency:
  • Plug-in: 1.52 s
  • Targeted Learning: 3.47 s
  • Bootstrap: 57.20 s
    TL achieves valid uncertainty quantification over 16× faster than bootstrap refitting with minimal overhead relative to standard plug-in estimation.

  • Real-World Insights:

  • On the Bike Sharing dataset, workingday and yr dominated importance, while temperature-related features ranked surprisingly low once conditioned on other variables.
  • On the Wine Quality dataset, wide confidence intervals revealed that empirical feature rankings were subject to substantial uncertainty, warning against relying strictly on point estimates for feature selection.

Limitations and Future Work

  • Strong Feature Correlations: When covariate correlation $\rho$ is high, the performance of the initial outcome regressor and conditional density estimators degrades, which can challenge the stochastic convergence assumptions.
  • Extension to Non-Orthogonal Estimators: The current targeted update relies on the orthogonal factorization of CPI; it does not directly transfer to retraining-based LOCO estimators with variational dependencies.
  • Avoiding Explicit Density Estimation: The authors note that estimating conditional densities can become difficult in high dimensions. Future work aims to incorporate kernel-debiased plug-in estimation or influence-function-free techniques to handle continuous, high-dimensional conditioning sets more smoothly.

Summary updated

BibTeX
@inproceedings{wang2025targeted,
  author = {Xiaohan Wang and Yunzhe Zhou and Giles Hooker},
  title = {{Targeted Learning for Variable Importance}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=q8tzRNPwFk},
}
Figure