Learning Deep Kernels for Non-Parametric Two-Sample Tests

Feng Liu, Wenkai Xu, Jie Lu, Guangquan Zhang, Arthur Gretton +1 more
2/21/2020
stat.MLcs.LGstat.ME

Official code: fengliu90/DK-for-TST (57 stars, Python, MIT, last commit 2021-06-21).

Abstract

We propose a class of kernel-based two-sample tests, which aim to determine whether two sets of samples are drawn from the same distribution. Our tests are constructed from kernels parameterized by deep neural nets, trained to maximize test power.

Show full abstract

These tests adapt to variations in distribution smoothness and shape over space, and are especially suited to high dimensions and complex data. By contrast, the simpler kernels used in prior kernel testing work are spatially homogeneous, and adaptive only in lengthscale. We explain how this scheme includes popular classifier-based two-sample tests as a special case, but improves on them in general. We provide the first proof of consistency for the proposed adaptation method, which applies both to kernels on deep features and to simpler radial basis kernels or multiple kernel learning. In experiments, we establish the superior performance of our deep kernels in hypothesis testing on benchmark and real-world data. The code of our deep-kernel-based two sample tests is available at https://github.com/fengliu90/DK-for-TST.

View on arXivView PDF

Code Implementations(1)

MIT

This is the source code for Learning Deep Kernels for Non-Parametric Two-Sample Tests (ICML2020).

5710PythonSep 14, 20195 years agoMIT
hypothesis-testingtwo-sample-test

Similar Papers

Cite this paper

@article{liu2020learning,
  title  = {Learning Deep Kernels for Non-Parametric Two-Sample Tests},
  author = {Feng Liu and Wenkai Xu and Jie Lu and Guangquan Zhang and Arthur Gretton and Danica J. Sutherland},
  year   = {2020},
  eprint = {2002.09116},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.09116}
}

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/2002.09116.svg)](https://codeofpaper.com/paper/2002.09116)

Discussion