Introduction
Understanding the decision-making process of black-box machine learning models is critical for trust and safety. Feature Importance (FI) scores are a primary tool for this, often calculated by observing how a model's performance degrades when a feature is "removed." However, standard FI methods assume static environments. In real-world streaming data, where models update incrementally and patterns shift (concept drift), calculating FI becomes an algorithmic and philosophical challenge. This paper investigates how to efficiently simulate feature removal in dynamic streams, comparing "interventional" and "observational" approaches.
Interventional vs. Observational Feature Removal
The core of the problem lies in how one defines "removing" a feature without retraining the model. To avoid computationally prohibitive retraining, the authors adapt two canonical approaches for dynamic data streams:
- Interventional Approach (Marginal Distribution): This method replaces the removed feature with a random value drawn from past observations, ignoring the values of the remaining features. It effectively breaks any correlations between features. It answers: "How much does the model rely on this feature's specific values?"
- Observational Approach (Conditional Distribution): This method replaces the removed feature with a value drawn from past observations that have similar values for the remaining features, maintaining feature dependencies. It answers: "How much unique information does this feature provide that isn't already present in others?"
As shown in Figure 1, the interventional approach (blue crosses) spreads points across the entire range, ignoring correlations. The observational approach (red crosses) keeps points within the "natural" distribution of the data, which is crucial when features are dependent.
Key Results and Insights
The researchers tested these methods on two synthetic streams: the Agrawal stream (with dependent features) and a Gaussian stream (with a sudden concept drift).
In the Agrawal stream (Figure 3, left), the interventional approach assigns high importance to the commission feature because the model's internal math utilizes it. The observational approach assigns it near-zero importance, recognizing it as redundant given the salary feature.
In the Gaussian stream (Figure 3, right), the features are initially highly correlated. The observational approach keeps all feature scores low and grouped together, recognizing the shared information. After 10,000 samples, a concept drift makes the features completely independent. Both methods then converge to identical, high scores for the truly predictive feature ($X^{(1)}$), demonstrating the dynamic adaptation of the proposed methods.
Conclusion: True to Model vs. True to Data
The choice between these methods depends on the practitioner's goal. Interventional methods are "true to the model," revealing its exact internal mechanics regardless of redundancy. Observational methods are "true to the data," revealing the underlying causal structure and identifying when information is shared across features. In dynamic environments, the ability of observational methods to adapt to shifting correlations provides a more nuanced view of feature utility over time.
Summary updated