MOUNTAINEER: Topology-Driven Visual Analytics for Comparing Local Explanations

Parikshit Solunke, Vitoria Guardieiro, Joao Rulff, Peter Xenopoulos, Gromit Yeuk-Yin Chan, Brian Barr, Luis Gustavo Nonato, Claudio SilvaarXiv 2024 · arXiv

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.

Fig. 2. Mapper algorithm used to create an approximate Reeb graph. The input space is first divided into overlapping intervals based on lens function values. Then, the points within the intervals are clustered into nodes. Subsequently, edges are constructed between clusters that have common input points. Thus, the Mapper output is generated as a node-link graph forming a skeletal representation of the input space.

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:

  1. 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).
  2. 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.
Mountaineer's multi-view interface allows users to link topological "holes" back to specific feature distributions.

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

Abstract

With the increasing use of black-box Machine Learning (ML) techniques in critical applications, there is a growing demand for methods that can provide transparency and accountability for model predictions. As a result, a large number of local explainability methods for black-box models have been developed and popularized. However, machine learning explanations are still hard to evaluate and compare due to the high dimensionality, heterogeneous representations, varying scales, and stochastic nature of some of these methods. Topological Data Analysis (TDA) can be an effective method in this domain since it can be used to transform attributions into uniform graph representations, providing a common ground for comparison across different explanation methods. We present a novel topology-driven visual analytics tool, Mountaineer, that allows ML practitioners to interactively analyze and compare these representations by linking the topological graphs back to the original data distribution, model predictions, and feature attributions. Mountaineer facilitates rapid and iterative exploration of ML explanations, enabling experts to gain deeper insights into the explanation techniques, understand the underlying data distributions, and thus reach well-founded conclusions about model behavior. Furthermore, we demonstrate the utility of Mountaineer through two case studies using real-world data. In the first, we show how Mountaineer enabled us to compare black-box ML explanations and discern regions of and causes of disagreements between different explanations. In the second, we demonstrate how the tool can be used to compare and understand ML models themselves. Finally, we conducted interviews with three industry experts to help us evaluate our work.
BibTeX
@misc{solunke2024mountaineer,
  author = {Parikshit Solunke and Vitoria Guardieiro and Joao Rulff and Peter Xenopoulos and Gromit Yeuk-Yin Chan and Brian Barr and Luis Gustavo Nonato and Claudio Silva},
  title = {{MOUNTAINEER: Topology-Driven Visual Analytics for Comparing Local Explanations}},
  year = {2024},
  eprint = {2406.15613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.15613},
}
Figure