Compress Then Test: Powerful Kernel Testing in Near-Linear Time
Abstract
Kernel two-sample testing provides a powerful framework for distinguishing any pair of distributions based on n sample points. However, existing kernel tests either run in $n^2$ time or sacrifice undue power to improve runtime. To address these shortcomings, we introduce Compress Then Test (CTT), a new framework for high-powered kernel testing based on sample compression. CTT cheaply approximates an expensive test by compressing each n point sample into a small but provably high-fidelity coreset. For standard kernels and subexponential distributions, CTT inherits the statistical behavior of a quadratic-time test—recovering the same optimal detection boundary—while running in near-linear time. We couple these advances with cheaper permutation testing, justified by new power analyses; improved time-vs.-quality guarantees for low-rank approximation; and a fast aggregation procedure for identifying especially discriminating kernels. In our experiments with real and simulated data, CTT and its extensions provide 20–200x speed-ups over state-of-the-art approximate MMD tests with no loss of power.
Cite
Text
Domingo-Enrich et al. "Compress Then Test: Powerful Kernel Testing in Near-Linear Time." Artificial Intelligence and Statistics, 2023.Markdown
[Domingo-Enrich et al. "Compress Then Test: Powerful Kernel Testing in Near-Linear Time." Artificial Intelligence and Statistics, 2023.](https://mlanthology.org/aistats/2023/domingoenrich2023aistats-compress/)BibTeX
@inproceedings{domingoenrich2023aistats-compress,
title = {{Compress Then Test: Powerful Kernel Testing in Near-Linear Time}},
author = {Domingo-Enrich, Carles and Dwivedi, Raaz and Mackey, Lester},
booktitle = {Artificial Intelligence and Statistics},
year = {2023},
pages = {1174-1218},
volume = {206},
url = {https://mlanthology.org/aistats/2023/domingoenrich2023aistats-compress/}
}