Explaining Change in Models and Data with Global Feature Importance and Effects

Maximilian Muschalik, Fabian Fumagalli, Barbara Hammer, Eyke HüllermeierTempXAI@PKDD/ECML 2024

Abstract

In the rapidly evolving landscape of online learning, traditional static Explainable AI (XAI) methods struggle to keep pace with continuous data streams and shifting model behaviors. This paper introduces the Incremental Model-Agnostic Global Explanations (MAGE) framework, a unified mathematical approach designed for real-time model interpretation. By employing recursive update mechanisms and geometric reservoir sampling, MAGE allows for the efficient tracking of global feature importance and effects without the prohibitive cost of full-history recalculation.

Introduction

Standard machine learning workflows typically involve training a model on a fixed dataset followed by post-hoc explanation. However, modern applications—ranging from high-frequency financial trading to network security—rely on online learning where data arrives in continuous streams. In these environments, models are updated incrementally, and the underlying data distribution often undergoes "concept drift."

Existing global XAI tools, such as Permutation Feature Importance (PFI) or Partial Dependence Plots (PDP), are inherently static. Applying them to streaming data would traditionally require re-processing the entire data history at every time step, which is computationally infeasible. The Incremental MAGE framework addresses this gap by providing a method to update global explanations "on the fly" using only the most recent observations and the previous state of the explanation.

Methodology: The Incremental MAGE Framework

The core of the MAGE framework is the unification of various XAI methods into a single recursive structure.

1. Recursive Update Formula

The framework moves away from global averages over historical data in favor of a recursive update rule: $$\phi_t(S) = (1 - \alpha) \cdot \phi_{t-1}(S) + \alpha \cdot \text{new\_info}$$ In this equation, $\alpha \in [0, 1]$ serves as a smoothing parameter. This allows the explanation to maintain a memory of past states while prioritizing recent information. A higher $\alpha$ increases sensitivity to sudden changes (concept drift), whereas a lower $\alpha$ ensures stability over the long term.

2. Unified Explanation Domain

MAGE defines a flexible "explanation domain" that accommodates various levels of granularity. It can handle individual features for importance metrics or groups of features for analyzing effects and interactions, bridging the gap between methods like SAGE (game theory-based) and PDP (feature effect-based).

3. Geometric Reservoir Sampling

To generate the perturbations necessary for model-agnostic explanations (e.g., feature shuffling), a representative sample of the data stream is required. MAGE utilizes geometric reservoir sampling, which maintains a fixed-size buffer of data points. This sampling strategy ensures that newer observations have a higher probability of being retained, keeping the explanation faithful to the current data distribution rather than historical artifacts.

Theoretical Contributions and Insights

The MAGE framework serves as a theoretical bridge between disparate XAI techniques. The authors demonstrate that several existing incremental methods are specific instances of this unified framework, including iPFI (incremental Permutation Feature Importance), iSAGE (incremental Shapley Additive Global Importance), and iPDP (incremental Partial Dependence Plots).

By identifying this common structure, the framework can be extended to more complex metrics, such as Shapley interactions, which reveal dependencies between features in a streaming context—a task previously considered too computationally demanding for real-time use. Crucially, the framework reduces the computational complexity of updating an explanation from $O(t)$ (where $t$ is the stream length) to $O(1)$ per time step, making real-time global XAI feasible for high-velocity data streams.

Discussion and Future Work

While the mathematical foundation of Incremental MAGE is robust, several challenges remain for practical deployment. As a theoretical framework presented at the TempXAI workshop (ECML-PKDD 2024), further empirical studies are needed to evaluate performance across diverse types of concept drift and to optimize the selection of the $\alpha$ parameter.

Furthermore, a significant hurdle lies in human-centered XAI. Visualizing a "moving" explanation to a human operator without causing cognitive overload is a critical area for future research. The authors suggest exploring different "complexity levels" of explanations to balance detail with interpretability in dynamic environments.

Conclusion

The Incremental MAGE framework provides a necessary evolution for XAI in the age of streaming data. By unifying global explanation methods under a recursive, computationally efficient umbrella, it paves the way for more responsive and reliable AI systems in dynamic, real-world environments.

Summary updated

BibTeX
@inproceedings{muschalik2024explaining,
  author = {Maximilian Muschalik and Fabian Fumagalli and Barbara Hammer and Eyke Hüllermeier},
  title = {{Explaining Change in Models and Data with Global Feature Importance and Effects}},
  booktitle = {TempXAI@PKDD/ECML},
  year = {2024},
}
Figure