Relative-Translation Invariant Wasserstein Distance
Binshuai Wang, Qiwei Di, Ming Yin, Mengdi Wang, Quanquan Gu, Peng Wei
TL;DR
The paper addresses distribution shift under relative translation by introducing ROT and the relative-translation invariant Wasserstein distances $RW_p$, proving $RW_p$ are real metrics on the quotient space $\mathcal{P}_p(\mathbb{R}^n)/\sim$. In the quadratic case, it establishes decomposability, translation-invariance, and a Pythagorean relation with $W_2$, enabling a bias-variance interpretation of shifts. It then develops the $RW_2$ Sinkhorn algorithm for efficient, stable computation of $RW_2$, coupling solutions, and $W_2$. Empirical results in numerical validation, digit recognition under translations, and similar thunderstorm pattern detection demonstrate robustness to translations and notable runtime improvements, highlighting practical applicability in real-world shift scenarios. Overall, the framework provides a principled, scalable approach to comparing distributions when relative translations are present, with broad implications for domain adaptation and pattern recognition under shift.
Abstract
We introduce a new family of distances, relative-translation invariant Wasserstein distances ($RW_p$), for measuring the similarity of two probability distributions under distribution shift. Generalizing it from the classical optimal transport model, we show that $RW_p$ distances are also real distance metrics defined on the quotient set $\mathcal{P}_p(\mathbb{R}^n)/\sim$ and invariant to distribution translations. When $p=2$, the $RW_2$ distance enjoys more exciting properties, including decomposability of the optimal transport model, translation-invariance of the $RW_2$ distance, and a Pythagorean relationship between $RW_2$ and the classical quadratic Wasserstein distance ($W_2$). Based on these properties, we show that a distribution shift, measured by $W_2$ distance, can be explained in the bias-variance perspective. In addition, we propose a variant of the Sinkhorn algorithm, named $RW_2$ Sinkhorn algorithm, for efficiently calculating $RW_2$ distance, coupling solutions, as well as $W_2$ distance. We also provide the analysis of numerical stability and time complexity for the proposed algorithm. Finally, we validate the $RW_2$ distance metric and the algorithm performance with three experiments. We conduct one numerical validation for the $RW_2$ Sinkhorn algorithm and show two real-world applications demonstrating the effectiveness of using $RW_2$ under distribution shift: digits recognition and similar thunderstorm detection. The experimental results report that our proposed algorithm significantly improves the computational efficiency of Sinkhorn in certain practical applications, and the $RW_2$ distance is robust to distribution translations compared with baselines.
