Latent SHAP: Toward Practical Human-Interpretable Explanations

Ron Bitton, Alon Malach, Amiel Meiseles, Satoru Momiyama, Toshinori Araki, Jun Furukawa, Yuval Elovici, Asaf ShabtaiarXiv 2022 · DOI

Abstract

Explainable AI (XAI) often struggles with a trade-off between model accuracy and human interpretability. While tools like SHAP provide feature attributions, they typically operate on raw input features (e.g., pixels) that lack semantic meaning for human experts. Latent SHAP addresses this by enabling explanations based on high-level concepts without requiring a mathematically invertible mapping between raw data and interpretable features. By utilizing a statistical approximation framework, Latent SHAP provides a practical path for concept-based explanations in complex domains like computer vision.

Introduction: The Inversion Bottleneck

Standard feature attribution methods explain model decisions based on raw input features. In facial recognition, for instance, a standard SHAP explanation might produce a heatmap of pixels. However, humans reason using semantic concepts such as "smiling" or "wearing a hat."

Existing research suggests mapping raw inputs into an interpretable representation. However, traditional techniques like Kernel SHAP require an invertible transformation function ($h^{-1}$). In practice, creating a function that perfectly reconstructs a specific face from a general label like "smiling" is nearly impossible. This "inversion bottleneck" has historically limited the utility of concept-based explanations for complex, high-dimensional datasets.

Methods: Statistical Approximation of Latent Spaces

Latent SHAP bypasses the need for a functional inverse by modeling the statistical relationship between the raw input space and the human-interpretable "latent" space. Instead of a geometric inversion, it treats the mapping as a statistical problem solvable with sufficient background data.

Comparison of Kernel SHAP and Latent SHAP workflows.

The framework operates through an eight-phase workflow:

  1. Sampling & Transformation: A background dataset of raw inputs is mapped to interpretable features using a one-way (non-invertible) function, such as a secondary attribute detector.
  2. Coalition Building: Subsets of features are created in both domains.
  3. Latent Background Creation: The target model is applied to raw samples while the transformation is applied to the same samples to establish correlations.
  4. Distance Matrix ($M$): A proximity matrix is calculated between raw samples and interpretable coalitions.
  5. Approximation & Surrogate Training: A softmax function over the distance matrix estimates model behavior on interpretable concepts. Finally, a linear surrogate model is trained to provide the final SHAP values.

Evaluation and Key Results

The researchers evaluated Latent SHAP using both synthetic data (where ground truth was known via PCA) and the CelebA dataset, which contains 200,000 celebrity images annotated with 40 binary attributes.

High Fidelity and Robustness

In controlled experiments, Latent SHAP achieved a mean cosine similarity of 0.93 with ground-truth explanations. Crucially, the method proved robust to noise in the transformation function (the concept detector), provided the background dataset was sufficiently large (typically >150 samples). The "naive" approach—simply summing raw SHAP values into concepts—consistently failed to capture the local decision boundaries of the model.

Qualitative Clarity

On the CelebA dataset, Latent SHAP produced intuitive explanations for a CNN trained to predict "attractiveness." Rather than highlighting disjointed pixels, the framework identified semantic drivers.

Latent SHAP explanation for an 'attractive' prediction on the CelebA dataset.

As shown in the figure above, the model correctly identified "Mouth Slightly Open," "Arched Eyebrows," and "Heavy Makeup" as the primary positive contributors to the prediction. This level of semantic clarity is unattainable with standard pixel-based attribution methods.

Limitations and Future Directions

While Latent SHAP moves concept-based XAI into practical territory, it remains dependent on the quality of the one-way transformation function. A biased or inaccurate concept detector will inevitably lead to misleading explanations. Additionally, the 8-phase algorithm introduces higher computational overhead than standard SHAP. Future research may focus on the unsupervised discovery of these latent concepts to remove the need for pre-defined attribute detectors.

Summary updated

BibTeX
@misc{bitton2022latent,
  author = {Ron Bitton and Alon Malach and Amiel Meiseles and Satoru Momiyama and Toshinori Araki and Jun Furukawa and Yuval Elovici and Asaf Shabtai},
  title = {{Latent SHAP: Toward Practical Human-Interpretable Explanations}},
  year = {2022},
  eprint = {2211.14797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.14797},
}
Figure