SLISEMAP: supervised dimensionality reduction through local explanations

Anton Björklund, Jarmo Mäkelä, Kai Puolamäki · DOI

Introduction

Understanding "black-box" machine learning models, such as deep neural networks or gradient-boosted trees, remains a significant challenge in artificial intelligence. Current interpretability methods generally fall into two categories: local explanations (e.g., LIME, SHAP), which explain individual predictions but lack a global perspective, and global surrogates, which often fail to capture the complexity of the original model. Furthermore, traditional dimensionality reduction tools like t-SNE or UMAP are unsupervised, grouping data based on feature similarity rather than the model's internal logic.

SLISEMAP addresses these limitations by simultaneously finding local explanations for every data point and arranging them in a global 2D visualization. By projecting data points with similar local "white-box" explanations nearby, SLISEMAP allows researchers to observe how a complex model treats different functional groups within a dataset.

Methodology

SLISEMAP optimizes a lower-dimensional embedding (typically 2D) alongside a set of local white-box models (e.g., linear regressions) for every data point. The core innovation is a weighted loss function that enforces "soft neighborhoods": if two points are proximal in the 2D embedding, the local model for one must accurately explain the black-box's behavior for the other.

Key technical features include:

  • Simultaneous Optimization: The embedding and explanations are learned together using L-BFGS optimization.
  • Model Agnosticism: The method can explain any supervised model, whether for regression or classification.
  • Scalability: Implementation in PyTorch with GPU acceleration and a "subsample-and-add" approach enables the processing of large-scale datasets.

Key Insights and Applications

A primary advantage of SLISEMAP is its ability to group data by model logic rather than raw feature similarity. In scenarios where features are noisy, traditional methods like PCA may fail to reveal structure, whereas SLISEMAP can identify clear clusters based on how the model utilizes those features.

Comparison of PCA and SLISEMAP on synthetic data. SLISEMAP successfully clusters points by their underlying regression rules, whereas PCA primarily captures noise.

The method also excels at identifying "functional groups." For instance, in the Boston Housing dataset, SLISEMAP identified a cluster where the number of rooms had a negative impact on price—a counterintuitive finding that, upon investigation, revealed the model's specific logic for industrial areas with high property taxes.

In complex classification tasks like MNIST (specifically the "2 vs 3" challenge), SLISEMAP provides a global overview of local models. It reveals that the black-box model prioritizes different sets of pixels depending on the handwriting style, such as focusing on the bottom curve versus the center of the digit.

SLISEMAP visualization of MNIST digits. The right panel displays local model coefficients (logistic regression), highlighting the specific pixels the model prioritizes across different regions of the embedding.

Results and Performance

Evaluations across synthetic and real-world datasets (including Boston Housing, Air Quality, and Higgs) demonstrate that SLISEMAP produces embeddings with higher local fidelity and coverage compared to unsupervised methods followed by post-hoc explanations. While computationally more intensive than PCA, SLISEMAP is often more efficient than generating individual LIME or SHAP explanations for large datasets because it approaches the problem globally.

Limitations and Future Work

The computational complexity of SLISEMAP is $O(n^2)$, which can be a bottleneck for massive datasets without subsampling. Additionally, the non-convex nature of the optimization landscape means that different initializations may yield varying visualizations. Future work aims to utilize SLISEMAP for active model improvement, anomaly detection, and developing more advanced stochastic optimization techniques for better scaling.

Summary updated

BibTeX
@article{bjorklund2023slisemap,
  author = {Anton Björklund and Jarmo Mäkelä and Kai Puolamäki},
  title = {{SLISEMAP: supervised dimensionality reduction through local explanations}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-022-06261-1},
}
Figure