REPID: Regional Effect Plots with implicit Interaction Detection

Julia Herbinger, Bernd Bischl, Giuseppe Casalicchio

Abstract

Machine learning models can automatically learn complex relationships, such as non-linear and interaction effects. Interpretable machine learning methods such as partial dependence plots visualize marginal feature effects but may lead to misleading interpretations when feature interactions are present. Hence, employing additional methods that can detect and measure the strength of interactions is paramount to better understand the inner workings of machine learning models. We demonstrate several drawbacks of existing global interaction detection approaches, characterize them theoretically, and evaluate them empirically. Furthermore, we introduce regional effect plots with implicit interaction detection, a novel framework to detect interactions between a feature of interest and other features. The framework also quantifies the strength of interactions and provides interpretable and distinct regions in which feature effects can be interpreted more reliably, as they are less confounded by interactions. We prove the theoretical eligibility of our method and show its applicability on various simulation and real-world examples.

Introduction: The Challenge of Aggregation Bias

As machine learning models grow more complex, interpretability tools like Partial Dependence (PD) plots have become standard for understanding feature effects. However, PD plots show a global average. If a feature interacts with others—for example, if Age matters differently for men than for women—the PD plot averages these conflicting signals into a single line. This can lead to aggregation bias, where the global trend masks significant local variations.

A global PD plot (blue) averaging heterogeneous ICE curves (black), illustrating how global averages can mask individual variations.

While Individual Conditional Expectation (ICE) curves visualize this heterogeneity by showing a line for every data point, they often result in uninterpretable "spaghetti plots." Existing interaction measures like Friedman’s H-statistic provide numerical scores but fail to visualize how interactions change feature effects or where they occur in the feature space.

The REPID Framework

REPID (Regional Effect Plots with implicit Interaction Detection) bridges the gap between local and global explanations by partitioning the data into subgroups with similar feature behaviors.

  1. Tree-based Partitioning: REPID uses a recursive partitioning algorithm to split the data into regions. Unlike standard decision trees that minimize prediction error, REPID splits to minimize the variance in the shapes of the ICE curves within each region. This is achieved by analyzing the derivatives of the curves to find stable patterns.
  2. Mean-Centering: To focus strictly on interactions (how the effect changes) rather than just different prediction levels, the algorithm mean-centers the ICE curves before calculating the split criterion.
  3. Regional Effect Plots (REPs): Once stable subgroups are identified, REPID generates a PD plot for each. These "Regional Effect Plots" are much more representative of the individuals within those specific clusters.
REPID uses a tree-based approach to partition the feature space into regions with distinct and stable feature effects.

Key Insights and Theoretical Advantages

REPID offers several advantages over traditional interaction detection methods:

  • Independence from Main Effects: The authors prove that traditional measures like the H-statistic are often confounded by the magnitude of a feature's main effect. REPID’s splitting criterion is mathematically proven to depend only on interaction effects.
  • Robustness to Correlation: Unlike SHAP interaction values, REPID is not biased by correlations between features, making it more reliable for real-world tabular data where features are rarely independent.
  • Actionable Subgroups: Instead of a single interaction score, REPID provides clear decision rules (e.g., "If Sex is Female, Age has this effect"), making model logic transparent and easier to validate for domain experts.

Results and Applications

In simulations, REPID consistently ranked interacting features correctly, even when the H-statistic and Greenwell’s index provided the wrong order due to varying main effect sizes. On the Titanic dataset, the global PD plot suggests survival probability simply decreases with Age. REPID reveals a more nuanced reality: for children, survival is high regardless of sex, but for adults, the Age effect is drastically different depending on Sex and Class.

In complex non-linear simulations, REPID achieved an $R^2_{int}$ (a measure of explained interaction variance) of over 97%, indicating that the regional plots almost perfectly captured the underlying interaction logic that global plots missed.

Conclusion

REPID provides a scalable, model-agnostic framework for detecting and visualizing interactions. By moving from global averages to regional effects, it allows practitioners to uncover the nuanced ways features influence model predictions, ultimately leading to more trustworthy and interpretable machine learning systems.

Summary updated

BibTeX
@inproceedings{herbinger2022repid,
  author = {Julia Herbinger and Bernd Bischl and Giuseppe Casalicchio},
  title = {{REPID: Regional Effect Plots with implicit Interaction Detection}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=o7SnO4SRJY},
}
Figure