Hilbert Curve Projection Distance for Distribution Comparison

Tao Li, Cheng Meng, Hongteng Xu, Jun Yu
5/30/2022
cs.LGstat.ML

Official code: sherlockLitao/HCP (17 stars, Jupyter Notebook, GPL-3.0, last commit 2024-09-18).

Abstract

Distribution comparison plays a central role in many machine learning tasks like data classification and generative modeling. In this study, we propose a novel metric, called Hilbert curve projection (HCP) distance, to measure the distance between two probability distributions with low complexity.

Show full abstract

In particular, we first project two high-dimensional probability distributions using Hilbert curve to obtain a coupling between them, and then calculate the transport distance between these two distributions in the original space, according to the coupling. We show that HCP distance is a proper metric and is well-defined for probability measures with bounded supports. Furthermore, we demonstrate that the modified empirical HCP distance with the $L_p$ cost in the $d$-dimensional space converges to its population counterpart at a rate of no more than $O(n^{-1/2\max\{d,p\}})$. To suppress the curse-of-dimensionality, we also develop two variants of the HCP distance using (learnable) subspace projections. Experiments on both synthetic and real-world data show that our HCP distance works as an effective surrogate of the Wasserstein distance with low complexity and overcomes the drawbacks of the sliced Wasserstein distance.

View on arXivView PDF

Code Implementations(1)

sherlockLitao/HCPOfficial100%
GPL-3.0
172Jupyter Notebook, PythonJun 9, 20222 years agoGPL-3.0

Similar Papers

Cite this paper

@article{li2022hilbert,
  title  = {Hilbert Curve Projection Distance for Distribution Comparison},
  author = {Tao Li and Cheng Meng and Hongteng Xu and Jun Yu},
  year   = {2022},
  eprint = {2205.15059},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15059}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.15059.svg)](https://codeofpaper.com/paper/2205.15059)

Discussion