English

Explainable embeddings with Distance Explainer

Machine Learning 2026-03-26 v2 Artificial Intelligence Computation and Language Computer Vision and Pattern Recognition

Abstract

While eXplainable AI (XAI) has advanced significantly, few methods address interpretability in embedded vector spaces where dimensions represent complex abstractions. We introduce Distance Explainer, a novel method for generating local, post-hoc explanations of embedded spaces in machine learning models. Our approach adapts saliency-based techniques from RISE to explain the distance between two embedded data points by assigning attribution values through selective masking and distance-ranked mask filtering. We evaluate Distance Explainer on cross-modal embeddings (image-image and image-caption pairs) using established XAI metrics including Faithfulness, Sensitivity/Robustness, and Randomization. Experiments with ImageNet and CLIP models demonstrate that our method effectively identifies features contributing to similarity or dissimilarity between embedded data points while maintaining high robustness and consistency. We also explore how parameter tuning, particularly mask quantity and selection strategy, affects explanation quality. This work addresses a critical gap in XAI research and enhances transparency and trustworthiness in deep learning applications utilizing embedded spaces.

Keywords

Cite

@article{arxiv.2505.15516,
  title  = {Explainable embeddings with Distance Explainer},
  author = {Christiaan Meijer and E. G. Patrick Bos},
  journal= {arXiv preprint arXiv:2505.15516},
  year   = {2026}
}

Comments

20 pages, 12 figures. Accepted to the 4th World Conference on eXplainable Artificial Intelligence. Method implementation: https://research-software-directory.org/software/distance-explainer

R2 v1 2026-07-01T02:28:32.727Z