AI
New technique makes AI embeddings explainable by measuring what drives similarity
Researchers introduce Distance Explainer, a method that reveals which features drive similarity or difference between data points in neural network vector spaces.
Machine learning models increasingly rely on embeddings—learned numerical representations that compress complex data like images and text into abstract vector spaces. But these spaces remain largely opaque: it's hard to know which underlying features matter when two data points are judged as similar or different. A new method aims to crack this black box.
The Problem with Vector Spaces#
Explainability in AI has made strides across many domains, yet interpretability in embedding spaces has lagged. Unlike classifiers that output human-readable categories, embeddings work by measuring distance in high-dimensional space. When two vectors are close together, the model treats them as related, but the reasons why stay hidden in abstract mathematical terrain. Understanding this reasoning is crucial for building trust and debugging errors in systems that power recommendation engines, search, and cross-modal matching.
How Distance Explainer Works#
Distance Explainer borrows from existing saliency techniques—specifically the RISE method—and adapts them for embedding comparison. The core idea is straightforward: selectively mask parts of input data, measure how each masking choice changes the distance between two embedded points, and assign attribution values showing which features drive similarity or dissimilarity. By filtering masks based on their effect on distance, the method identifies the most influential elements.
Testing and Validation#
Researchers tested the approach on cross-modal embeddings using ImageNet and CLIP models, evaluating it against established XAI metrics: Faithfulness (do explanations reflect what the model actually uses?), Sensitivity/Robustness (are explanations stable and consistent?), and Randomization (are they meaningfully different from noise?). The method showed strong performance across these benchmarks. The team also investigated how tuning parameters—particularly the number of masks and selection strategy—shapes explanation quality, offering practical guidance for deployment.
Why This Matters#
The work fills a gap in explainable AI by making embedding-based similarity legible to humans. This transparency matters for applications where trust and debuggability are essential: detecting bias in image search, validating multimodal retrieval systems, or auditing recommendation algorithms. As deep learning increasingly relies on learned vector representations, methods to understand them become more critical.

