Abstract
Machine learning models in real-world applications are increasingly dynamic, adapting to continuous data streams. Traditional Explainable AI (XAI) tools, such as Partial Dependence Plots (PDPs), are designed for static models and fail to capture the evolving logic of models subject to concept drift. This paper introduces iPDP, an incremental framework that efficiently updates feature-effect explanations in real-time. By employing Exponential Moving Averages (EMA) and dynamic grid adjustments, iPDP provides a continuous "explanation stream" that tracks both real and virtual drift with minimal computational overhead.
Introduction
In high-stakes domains like energy forecasting and financial credit scoring, models are rarely "frozen." Instead, they learn incrementally from data streams. A significant challenge in these environments is concept drift, where the underlying data distributions or the relationships between features and targets change over time.
Standard PDPs, which visualize the marginal effect of a feature on the predicted outcome, are computationally expensive to recompute from scratch for every model update. Without frequent updates, explanations become stale and potentially misleading. iPDP addresses this by treating interpretability as a telemetry stream, allowing practitioners to monitor a model's reasoning as it adapts to new data.
Methodology: The iPDP Framework
The core of iPDP is the transition from batch evaluation to incremental updates using an Exponential Moving Average (EMA) approach. This ensures that the explanation prioritizes recent model behavior while maintaining a smooth transition from historical states.
Key Innovations
- Dynamic Grid Points: To account for virtual drift—where the range of a feature changes (e.g., inflation increasing salary ranges)—iPDP maintains a rolling window of feature extrema. It updates visualization grid points incrementally to stay aligned with the current data manifold.
- Point-wise EMA Updates: Partial dependence values at each grid point are updated using the current model and the latest data point, weighted by a smoothing parameter $\alpha$.
- Debiasing Factor: A mathematical correction is applied to ensure that in stable environments, the incremental estimate converges to the traditional batch PDP.
- Efficient Storage: Specialized algorithms for "Incremental Extreme Value Storage" and "Incremental Frequency Storage" allow the system to track shifting distributions without storing the entire data history.
Experimental Evaluation
The authors validated iPDP across several synthetic and real-world datasets, including the California Housing dataset for static baselines and the Agrawal Stream for dynamic scenarios. The Agrawal Stream is particularly useful for simulating sudden shifts in feature relevance (real drift) and feature ranges (virtual drift).
Key Insights and Results
The experiments demonstrated that iPDP is not only a tool for explanation but also a powerful diagnostic for drift detection.
- Tracking Drift: In the Agrawal experiments, iPDP successfully captured a feature (salary) transitioning from irrelevant to highly relevant and back. This provides a more granular view than global importance scores, which often obscure the nature of the change.
- Accuracy and Efficiency: On static data, iPDP curves almost perfectly overlap with batch PDP curves. Computationally, iPDP requires only one model evaluation per grid point per time step, making it feasible for high-frequency streams where batch re-computation is impossible.
- XAI-based Drift Detection: By applying change-detection algorithms like ADWIN to the iPDP values, the authors could identify shifts in model logic that were invisible to standard performance metrics.
Limitations and Future Work
While iPDP represents a significant advancement, challenges remain regarding scalability to hundreds of features and high-fidelity grids. Future research may explore combining iPDP with local explanation methods (like SHAP or LIME) adapted for streams or extending the framework to better handle complex feature interactions.
Conclusion
iPDP shifts the paradigm of XAI from static reports to dynamic telemetry. By providing a computationally efficient way to track model logic over time, it enables safer and more transparent deployment of machine learning models in evolving real-world environments.
Summary updated