Abstract
Stacking ensemble learning offers high predictive performance but suffers from structural complexity and a lack of interpretability. We present InterpretStack, an interactive visual analytics system that integrates feature importance, model correlation, and SHAP values to support the construction and refinement of multi-layer stacking models. Through a human-in-the-loop interface, users can iteratively prune features and select diverse base models, leading to improved accuracy and a better understanding of the ensemble's decision-making process.
Introduction
Stacking improves predictive performance by combining multiple "base models" (such as SVMs or Random Forests) into a "meta-model." However, it faces two major hurdles: structural complexity and opacity. Deciding which base models to include and how to layer them is often a matter of trial and error, leading to high computational costs and potential overfitting. Furthermore, because stacking involves non-linear combinations of complex models, it is notoriously difficult to interpret. InterpretStack addresses these gaps by providing a visual framework that supports both the construction and the interpretation of these algorithms.
System Architecture and Methods
InterpretStack consists of a Python-based backend for data processing and model training and a web-based frontend for user interaction.
Key technical components include:
- Feature & Model Assessment: The system uses Catboost for initial feature importance and Pearson correlation coefficients to visualize redundancy between base models. This helps users select a diverse set of models rather than redundant ones.
- Interpretability Engine: It integrates SHAP (SHapley Additive exPlanations) values to quantify the contribution of each base model to the final meta-model output.
- Automated Tuning: To reduce manual labor, the system employs Bayesian optimization to explore the hyperparameter space efficiently.
Interactive Workflow and Interpretability
The system treats model building as an iterative, conversational process. Users can "backtrack" through previous model iterations, compare performance across different stacking layers, and manually prune features or models that provide low marginal utility.
A key insight from case studies using the Forest Fires and Urban Traffic datasets is that "diversity is better than depth." Adding more models often leads to redundancy; by using the Pearson correlation matrix, users can simplify the ensemble without losing accuracy. Furthermore, removing low-contribution features from the meta-model was found to improve performance by reducing noise introduced by weak base-model predictions.
Key Results and Discussion
Evaluation of InterpretStack yielded several significant findings:
- Improved Accuracy: In the Forest Fires case study, the iteratively refined stacking model significantly outperformed the best-performing individual base model.
- User Validation: A study with 16 participants showed that the system significantly improved users' understanding of the stacking decision-making process.
- Efficiency: Participants noted that the visualization of SHAP values and model correlations allowed them to reach optimal configurations faster than manual coding while reducing cognitive load.
While currently tailored for regression tasks, future work aims to support classification problems and incorporate sample-level granularity (e.g., individual prediction scatter plots) to further enhance local interpretability.
Summary updated