Hierarchical Variable Importance with Statistical Control for Medical Data-Based Prediction

Joseph Paillard, Antoine Collas, Denis A. Engemann, Bertrand Thirion · DOI

TL;DR

Hierarchical-CPI is a new model-agnostic framework that measures feature importance in complex machine learning models, even when data is highly correlated. By testing groups of variables along a hierarchical tree, it provides strict Family-Wise Error Rate (FWER) control and uses an innovative "importance conservation" mechanism to prevent predictive signals from being washed out by correlation.

What Problem Does This Paper Address?

Machine learning models excel at predicting clinical outcomes from complex medical data like MRI or EEG scans. However, understanding which specific features drove a model's prediction remains a notorious challenge.

Existing methods typically look at conditional variable importance—asking how much unique predictive power a single feature retains when all other features are present. While mathematically rigorous, this approach breaks down when features are highly correlated. In neuroimaging, adjacent brain regions or overlapping EEG frequency bands often carry highly redundant information. When two predictive features are strongly correlated, standard conditional importance methods will score both as zero because either one can explain away the other. This is known as the "vanishing importance" problem.

Furthermore, existing solutions either lack statistical guarantees (leading to high false-positive rates) or suffer from exponential computational costs (like Shapley-value-based methods), making them impractical for high-dimensional medical datasets.

Methods

The authors introduce Hierarchical-CPI, a model-agnostic framework designed to restore statistical power and control under high correlation:

  1. Hierarchical Clustering: The method first applies Ward’s agglomerative clustering to the feature space, building a tree (dendrogram) where highly correlated features are grouped together at lower levels, and broader relationships are captured higher up.
  2. Conditional Permutation Importance (CPI): Instead of evaluating individual features, the algorithm evaluates the conditional importance of groups of variables defined by the nodes of the tree. It shuffles the target group while preserving the conditional distribution of the remaining features.
  3. Hierarchical P-Value Adjustment: To control the Family-Wise Error Rate (FWER), node-level p-values are adjusted up the tree. A child node's p-value is forced to be at least as large as its parent's, ensuring that finer-grained discoveries are statistically backed by their parent groups.
  4. Importance Conservation Mechanism: To combat vanishing importance, the authors introduce a downstream allocation strategy. If two highly correlated child nodes cancel each other's conditional importance out, the framework splits and pushes the parent node's importance down to them equally or proportionally, ensuring the overall predictive budget is conserved.

Datasets

The framework was evaluated using three distinct setups:

  • Simulated Data: Synthetic datasets ($n=400, p=124$) with block-correlated features under both linear (Ridge regression) and non-linear (Multilayer Perceptron) prediction settings.
  • ADNI (Alzheimer's Disease Neuroimaging Initiative): Structural T1-weighted MRI data from 1,616 patients. Features consisted of Gray Matter (GM) densities extracted from 116 Regions of Interest (ROIs) defined by the Automated Anatomical Labeling (AAL3) atlas.
  • TDBRAIN: A resting-state EEG dataset containing 1,234 healthy subjects performing an eyes-open vs. eyes-closed task. Features included power measurements across 26 electrodes and 17 frequency bands (442 features total), exhibiting extreme correlation (minimum Pearson correlation > 0.9).

Key Insights and Ideas

  • Tree-Guided Exploration Bypasses Combinatorial Explosion: Instead of checking every possible subset of features (which causes an exponential explosion in computation for Shapley-based methods like SAGE), Hierarchical-CPI only evaluates $2p-1$ nodes. This keeps the computational complexity strictly linear with respect to the number of features.
  • Conservation Restores Resolution: By forcing the importance of a parent node to distribute to its children (Equation 3), the method successfully pushes the importance budget down to finer feature resolutions, even when mutual correlation would normally zero them out.
Fig. 1. Importance conservation prevents the importance from vanishing as the group size decreases in a high-correlation setting. Example using simulated data with n = 300 samples and d = 24 variables. The data is generated by blocks, each corresponding to an AR(1) with autocorrelation parameter ρmax = 0.95. a and b show the same dendrogram obtained through Ward’s clustering. Each node’s color encodes the conditional importance of the variables it contains. Without importance conservation, importance quickly vanishes down the tree. c and d present the p-value distributions, demonstrating that both methods accurately rank important variables.
  • Model-Agnostic Flexibility: Because it relies on permutation and re-evaluation, Hierarchical-CPI works out-of-the-box with any predictive model, from simple regularized linear models to deep neural networks.

Key Results

FWER Control and Efficiency

On simulated data, Hierarchical-CPI strictly controlled the empirical FWER at the target $\alpha = 0.05$ level across all correlation regimes. In contrast, SAGE failed completely, exhibiting an empirical FWER near 1.0 (meaning it consistently produced false positives). Furthermore, Hierarchical-CPI ran orders of magnitude faster than SAGE, particularly in non-linear neural network settings.

Fig. 2. Hierarchical CPI empirically controls the FWER wiht high statisti- cal power. Results from simulated data with n = 400 samples and p = 124 variables sampled from a normal distribution with block correlations described in subsection 3.1. The results present a summary of 100 repetitions of the simulation. a and d present the AUC for important/non-important variable classification as a function of correlation and SNR. Error bars represent 95% confidence interval. b and c show the evolution of the FWER at level α = 0.05 with Bonferroni correction. The top row explores varying ρmax values at a fixed SNR=2, while the bottom row examines varying SNRs at a fixed ρmax = 0.9. c and f shows the average computation time taken by each method over the simulations for the linear and non-linear scenario respectively.

Real-World Neuroimaging Validation

  • MRI (ADNI): When classifying Alzheimer's Disease vs. Mild Cognitive Impairment, Hierarchical-CPI identified a compact, biologically plausible subset of regions (including the hippocampi and orbitofrontal cortex). While SAGE identified a massive, noisy spread of regions, Hierarchical-CPI provided cleaner, more focal maps.
  • EEG (TDBRAIN): Due to the extreme correlation (>0.9) in the EEG data, standard conditional importance methods failed to find any significant features at $\alpha = 0.05$. However, by enabling the importance conservation mechanism (HCPI-IC), the method successfully localized the well-documented Berger effect—focalizing the predictive power precisely around the 10Hz alpha-band frequency at the occipital electrodes.

Limitations and Future Work

  • Clustering Randomness: The framework relies on a single initial agglomerative clustering pass. If the clustering structure is unstable, it can introduce randomness into which groups are evaluated. The authors suggest that future iterations could use repeated clustering on random data subsets combined with p-value or e-value aggregation to boost robustness.
  • Theoretical Guarantees for Conservation: While the base Hierarchical-CPI has proven FWER control, formal mathematical guarantees for the importance conservation variant remain an open problem, though it performs exceptionally well empirically.
  • Hyperparameter Sensitivity: The transmission threshold ($\epsilon$) dictates when a parent node's importance becomes indivisible. Choosing this threshold is critical and currently relies on empirical quantiles.

Summary updated

BibTeX
@inproceedings{paillard2025hierarchical,
  author = {Joseph Paillard and Antoine Collas and Denis A. Engemann and Bertrand Thirion},
  title = {{Hierarchical Variable Importance with Statistical Control for Medical Data-Based Prediction}},
  booktitle = {IPMI},
  year = {2025},
}
Figure