Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Learning Deep Kernels for Non-Parametric Two-Sample Tests

About

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. 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.

Feng Liu, Wenkai Xu, Jie Lu, Guangquan Zhang, Arthur Gretton, Danica J. Sutherland• 2020

Related benchmarks

TaskDatasetResultRank
Two-sample testingCIFAR-10 vs CIFAR-10.1 (test)
Power0.975
175
Two-sample testinghiggs
Test Power100
56
Two-sample testingCIFAR-10 vs CIFAR-10.1 1.0 (test)
Test Power0.444
54
Two-sample testingGaussian mixture data Synthetic Example 1 d=10
Test Power75
44
Two-sample testHiggs alpha=0.05 (test)
Test Power100
42
Two-sample testingMNIST (test)
Test Power1
40
Two-sample testMNIST Real vs DCGAN samples (test)
Test Power100
36
Distribution Shift DetectionCIFAR-10 vs CIFAR-10.1
Average Rejection Rate0.744
27
Distribution Discrepancy EstimationMNIST vs. Colored-MNIST (test)
Average Test Power0.631
8
Two-sample testCIFAR-10 vs CIFAR-10.1 1.0 (test)
Mean Rejection Rate0.744
6
Showing 10 of 10 rows

Other info

Code

Follow for update