Wasserstein Distances Made Explainable: Insights into Dataset Shifts and Transport Phenomena
Philip Naumann, Jacob Kauffmann, Grégoire Montavon
TL;DR
The paper addresses explaining what factor drives a Wasserstein distance between distributions, introducing $ abla$Wax, a framework that neuralizes the distance and uses LRP-style backpropagation to attribute the distance to data points and input features. It generalizes to $\mathcal{W}_p$ and Sinkhorn variants, supports subspace-based explanations via $\boldsymbol{U}$-$\nabla$Wax, and demonstrates high fidelity and transport-phenomena insight across synthetic and real datasets. Empirical results show superior attribution quality (SRG) and meaningful transport insights in aging- and dataset-difference use cases, with subspace decompositions revealing interpretable, domain-relevant factors. The work has practical implications for diagnosing dataset shifts, validating transport models, and guiding the design of more informative Wasserstein-based analyses.
Abstract
Wasserstein distances provide a powerful framework for comparing data distributions. They can be used to analyze processes over time or to detect inhomogeneities within data. However, simply calculating the Wasserstein distance or analyzing the corresponding transport map (or coupling) may not be sufficient for understanding what factors contribute to a high or low Wasserstein distance. In this work, we propose a novel solution based on Explainable AI that allows us to efficiently and accurately attribute Wasserstein distances to various data components, including data subgroups, input features, or interpretable subspaces. Our method achieves high accuracy across diverse datasets and Wasserstein distance specifications, and its practical utility is demonstrated in two use cases.
