Unifying Feature-Based Explanations with Functional ANOVA and Cooperative Game Theory

Fabian Fumagalli, Maximilian Muschalik, Eyke Hüllermeier, Barbara Hammer, Julia Herbinger

Abstract

Feature-based explanations, using perturbations or gradients, are a prevalent tool to understand decisions of black box machine learning models. Yet, differences between these methods still remain mostly unknown, which limits their applicability for practitioners. In this work, we introduce a unified framework for local and global feature-based explanations using two well-established concepts: functional ANOVA (fANOVA) from statistics, and the notion of value and interaction from cooperative game theory. We introduce three fANOVA decompositions that determine the influence of feature distributions, and use game-theoretic measures, such as the Shapley value and interactions, to specify the influence of higher-order interactions. Our framework combines these two dimensions to uncover similarities and differences between a wide range of explanation techniques for features and groups of features. We then empirically showcase the usefulness of our framework on synthetic and real-world datasets.

Introduction: The Challenge of the XAI "Zoo"

As machine learning models grow in complexity, the tools designed to explain them have proliferated into a vast "zoo" of methods. From SHAP and LIME to Integrated Gradients and SAGE, practitioners are often overwhelmed by choices. The fundamental problem is the lack of a formal, unifying theory that relates these methods. Some are local, others global; some use fixed baselines, while others rely on data distributions. Without a common mathematical language, it is difficult to determine if differing explanations are contradictory or merely different perspectives on the same model behavior.

Methodology: A Two-Pillar Approach

The authors propose a framework built on two theoretical pillars:

  1. Functional ANOVA (fANOVA): This statistical method decomposes a model's output into a sum of "pure" effects (individual features) and interaction effects (groups of features). The framework identifies that the choice of how to "impute" missing features—using a Baseline (b-fANOVA), Marginal (m-fANOVA), or Conditional (c-fANOVA) distribution—defines the specific decomposition.
  2. Cooperative Game Theory: Once decomposed, game-theoretic measures like the Shapley Value or Möbius Transform are used to distribute or summarize these effects among features.

Mapping the XAI Landscape

The framework categorizes explanation methods along two primary axes:

  • Axis 1: Influence of Feature Distribution. This axis tracks whether a method uses a simple baseline, the marginal distribution, or the full conditional distribution.
  • Axis 2: Influence of Higher-Order Interactions. This axis distinguishes between "Pure" effects (ignoring interactions), "Full" effects (including all interactions a feature participates in), and "Partial" effects (distributing interaction credit, as in Shapley values).
The XAI Map: Categorizing explanation methods by imputation type and interaction complexity.

This mapping reveals that popular methods are often just different configurations within this grid. For instance, SHAP is a "Partial" effect summary of a local game, while Permutation Feature Importance (PFI) is a "Full" effect summary of a global risk game.

Empirical Validation

The framework was tested on both synthetic and real-world datasets to verify its theoretical predictions.

Framework behavior on synthetic data across different levels of feature correlation and interaction.

On synthetic data, the framework successfully recovered ground-truth effects across varying levels of feature correlation. In real-world applications:

  • Titanic Dataset: While "Sex" is a dominant individual feature, "Full" effect analysis showed that "Fare" and "Embarkation" have significant higher-order interactions that simpler methods overlook.
  • California Housing: The framework identified a strong negative pairwise interaction between "Latitude" and "Longitude," mathematically confirming their redundancy.
  • IMDB Sentiment: "Partial" effects (Shapley) highlighted how context words like "but" drive sentiment shifts, which "Pure" methods might miss.

Conclusion and Future Directions

This unified framework provides a "Rosetta Stone" for XAI, allowing practitioners to understand the mathematical assumptions behind their chosen explanation methods. While computationally intensive—calculating exact interactions is NP-hard—the framework sets the stage for more efficient approximation algorithms and a deeper understanding of model interpretability. Future work may extend this to include model re-training as a form of imputation and broaden the scope to include counterfactual explanations.

Summary updated

BibTeX
@inproceedings{fumagalli2025unifying,
  author = {Fabian Fumagalli and Maximilian Muschalik and Eyke Hüllermeier and Barbara Hammer and Julia Herbinger},
  title = {{Unifying Feature-Based Explanations with Functional ANOVA and Cooperative Game Theory}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=tp3Aw6t0QF},
}
Figure