TL;DR
Mountaineer is a visual analytics tool that uses Topological Data Analysis (TDA) to compare local machine learning explanations (like LIME or SHAP). By transforming high-dimensional feature attributions into intuitive graph "skeletons," it allows practitioners to identify exactly where and why different explanation methods disagree, helping them choose the most reliable way to interpret black-box models.
What Problem Does This Paper Address?
As machine learning models move into critical fields like finance and healthcare, "black-box" opacity is no longer acceptable. While many "local" explanation methods (XAI) exist to tell us why a specific prediction was made, they often suffer from the disagreement problem: two different methods (or even the same method with different hyperparameters) can provide wildly different explanations for the same data point.
Comparing these explanations is a nightmare because they are high-dimensional, exist on different scales, and are often stochastic. There is currently no "ground truth" for what a perfect explanation looks like, leaving engineers to guess which interpretation is most faithful to the model's actual behavior.
Methods
The authors leverage Topological Data Analysis (TDA), specifically the Mapper algorithm, to create a common ground for comparison.
Key technical contributions include:
- Uniform Representation: Mapper transforms heterogeneous feature attributions into a node-link graph. Nodes represent clusters of observations with similar predictions and explanations; edges show where these clusters overlap.
- Automatic Parameter Selection: TDA is notoriously sensitive to hyperparameters. Mountaineer introduces a stability-based approach to automatically select parameters, making it 18-100x faster than previous frameworks like GALE.
- Graph Summarization: To prevent "visual spaghetti," the tool automatically merges redundant nodes to produce a cleaner, more interpretable topology.
- Relative Importance Metric: Since different XAI methods use different scales, the authors developed a normalized metric (-5 to 5) to allow for "apples-to-apples" comparisons of feature importance.
Datasets
The tool was evaluated using two real-world datasets:
- HELOC (Home Equity Line of Credit): 9,871 credit applications used to predict loan repayment. This was used to compare seven different explanation methods (e.g., LIME, Integrated Gradients, SmoothGrad).
- ACSEmployment: 159,299 records from the American Community Survey used to predict employment status. This was used to compare how different models (Random Forest vs. Neural Nets) "think" about the same data.
Key Insights and Ideas
- Topology Reveals Disagreement: If one explanation method produces a simple line-like graph while another produces a graph with "holes" or branches, it’s a red flag. These topological features represent regions where the model's logic is complex or where the explanation method is struggling to be consistent.
- The "Aha!" Moment in Credit Risk: In the HELOC case study, the authors found that gradient-based methods (Vanilla Gradient) identified a specific feature—months since last inquiry—as critical only when its value was very low. Other popular methods like LIME missed this nuance entirely, providing a more "averaged" and less accurate view of the model's local sensitivity.
- Model Auditing for Fairness: By comparing model explanations, the authors discovered that while most models predicted low employment probability for individuals with cognitive difficulties, they did so for different reasons. This highlights how Mountaineer can be used for fairness auditing by visualizing if a model is relying on "protected" or biased features in specific sub-populations.
Key Results
- Efficiency: The automated parameter search significantly reduces the manual labor required to set up TDA, achieving massive speedups over the previous state-of-the-art.
- Expert Validation: Interviews with industry ML practitioners confirmed that the tool's "back-and-forth" workflow—moving from a global distance matrix to local feature distributions—is intuitive and helps uncover insights that would otherwise require "significant time and manual experimentation."
- Integration: Mountaineer is implemented as a Python library for Jupyter Notebooks, meeting researchers and engineers where they already work.
Limitations and Future Work
While powerful, Mountaineer currently only supports one-vs-one comparisons of topological graphs. Analyzing three or more methods simultaneously remains a visual challenge. Additionally, while the tool handles tabular data well, it hasn't yet been adapted for sequential or time-series data, which experts noted as a high-priority area for future development. Finally, the Mapper algorithm's computational cost still scales with the number of samples, which may limit its use on truly massive "big data" scales without further optimization.
Summary updated