Relative Feature Importance

Gunnar König, Christoph Molnar, Bernd Bischl, Moritz Grosse-Wentrup

TL;DR

This paper introduces Relative Feature Importance (RFI), a novel generalization of existing feature importance methods like Permutation Feature Importance (PFI) and Conditional Feature Importance (CFI). RFI allows for a more nuanced assessment of a feature's importance by enabling conditioning on arbitrary subsets of other features, including those not seen during training, offering deeper insights into model behavior and underlying data relationships.

What Problem Does This Paper Address?

Interpretable Machine Learning (IML) methods are crucial for understanding why machine learning models make certain predictions, especially in high-stakes applications. Feature importance techniques aim to quantify how much each feature contributes to a model's performance. However, existing methods like PFI (which considers a feature in isolation) and CFI (which considers a feature relative to all other features) represent extreme points. This leaves a gap for more nuanced questions, such as understanding a feature's importance relative to a specific subset of other features, or even relative to variables that were not available during model training. This limitation hinders a deeper understanding of indirect influences and complex dependencies within the data and the model.

Methods

The core contribution is the introduction of Relative Feature Importance (RFI). RFI is a generalization that allows the perturbation of a feature of interest ($X_j$) while preserving its conditional distribution with respect to an arbitrary set of conditioning variables ($G$). This set $G$ can include variables that were part of the training data or even variables that were not available during training ($G \setminus R$).

The paper provides a theoretical framework for RFI, linking non-zero RFI to conditional dependencies at both the data level (between variables) and the model level (between model predictions and variables). Key theoretical results (Theorems 1 and 2) establish how RFI can reveal indirect influences and dependencies with variables outside the training set.

For estimation, the authors leverage Model-X knockoffs, a technique for generating samples from conditional distributions, which is a challenging task in itself. They also adapt existing testing frameworks for conditional independence to assess the significance of RFI.

Datasets

The paper does not introduce new benchmark datasets. Instead, it uses simulated datasets generated from Structural Causal Models (SCMs) to demonstrate the effectiveness of RFI in specific scenarios. These simulations are designed to showcase:

  • Indirect Influence: A scenario where a feature's importance is mediated through other variables, and how RFI can disentangle this.
  • Variables Outside Training Set: A scenario where a confounder variable, not available during training, is introduced, and how RFI can assess the importance of features relative to this external variable.

Key Insights and Ideas

  • Beyond the PFI/CFI Dichotomy: RFI offers a flexible middle ground, allowing researchers to probe feature importance with respect to any chosen subset of variables, providing more granular insights than existing methods.
  • Uncovering Indirect Influences: RFI is particularly adept at revealing how a feature's importance might be mediated through other variables, even if the feature itself isn't directly used by the model. This is crucial for understanding complex causal pathways and potential biases.
  • Assessing Importance Relative to External Variables: The ability to condition on variables not seen during training is a significant advancement. It allows for auditing models with new information or understanding how external factors might influence feature importance.
  • RFI ≠ 0 Implies Conditional Dependence: A non-zero RFI value signifies a conditional dependence between the feature of interest and the target/other features, given the conditioning set. This provides a clear theoretical link between feature importance and statistical dependence.
  • The Power of the Conditioning Set (G): The choice of the conditioning set $G$ is paramount, as it defines the "reference point" for feature importance and dictates which dependencies are preserved and which are broken.

Key Results

The paper presents theoretical results and demonstrates them through simulations:

  • Theorem 1: Non-zero RFI implies conditional dependence at both the data and model levels, specifically linking $X_j$ to $(Y, X_R)$ given $X_G$.
  • Theorem 2: The difference in RFI when adding a set of variables $N$ to the conditioning set $G$ (i.e., $RFI_{G \cup N} - RFI_G$) reveals dependencies involving $N$ that are not explained by $G$. Specifically, a non-zero difference implies $X_j \perp X_N | X_G$.
  • Simulation Studies:
    • In the "Indirect Influence" study, RFI successfully identified that features $X_1$ and $X_2$ had indirect influences on the target $Y$ through $X_3$ and $X_4$. It also showed that $X_2$ could resolve the indirect influence of $X_1$ on $X_3$, aligning with theoretical predictions.
  • In the "Variables Outside Training Set" study, RFI demonstrated its ability to assess feature importance relative to a confounder $C$ not seen during training. For instance, the importance of $X_3$ vanished when conditioned on $C$, indicating its importance was solely due to $C$. The importance of $X_2$ dropped but remained non-zero, showing direct and indirect contributions.

Limitations and Future Work

  • Sampling Challenges: Estimating conditional distributions, especially for continuous variables in high dimensions, is inherently difficult. The quality of RFI insights depends on the accuracy of these sampling procedures (e.g., knockoffs).
  • Interpretation of Zero RFI: While non-zero RFI has clear implications, interpreting zero RFI requires caution. It doesn't necessarily mean no dependence exists, but rather that the model doesn't capture it, or the dependence is in higher moments not accounted for by the loss function.
  • Uncertainty and Bias: Empirical risk minimization can introduce uncertainty and bias, which can affect RFI estimates. The paper mentions using t-tests and Fisher's Exact Test for significance but acknowledges that these might not fully address estimation uncertainties.
  • Future Work: The authors suggest further research into assessing necessary assumptions for RFI interpretation, particularly concerning model specification and the detection of dependencies in higher moments. They also highlight the general challenges in interpretable machine learning regarding uncertainty and bias.

Summary updated

BibTeX
@inproceedings{konig2020relative,
  author = {Gunnar König and Christoph Molnar and Bernd Bischl and Moritz Grosse-Wentrup},
  title = {{Relative Feature Importance}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9413090},
}
Figure