Robust Kernel Hypothesis Testing under Data Corruption
Antonin Schrab, Ilmun Kim
TL;DR
Robust Kernel Hypothesis Testing under Data Corruption addresses hypothesis testing when data can be adversarially corrupted by up to $r$ samples. It introduces the DC procedure, a general framework that preserves non-asymptotic type I error control by adjusting permutation thresholds using the statistic's global sensitivity, and applies it to kernel-based two-sample (dcMMD) and independence (dcHSIC) testing. The authors prove non-asymptotic validity, consistency, and minimax optimal separation rates in terms of MMD and HSIC, with favorable behavior in both low and high corruption regimes. They also compare with differential-privacy-based methods, showing higher power for DC while maintaining robustness, and provide public code to facilitate practical deployment in corrupt data scenarios.
Abstract
We propose a general method for constructing robust permutation tests under data corruption. The proposed tests effectively control the non-asymptotic type I error under data corruption, and we prove their consistency in power under minimal conditions. This contributes to the practical deployment of hypothesis tests for real-world applications with potential adversarial attacks. For the two-sample and independence settings, we show that our kernel robust tests are minimax optimal, in the sense that they are guaranteed to be non-asymptotically powerful against alternatives uniformly separated from the null in the kernel MMD and HSIC metrics at some optimal rate (tight with matching lower bound). We point out that existing differentially private tests can be adapted to be robust to data corruption, and we demonstrate in experiments that our proposed tests achieve much higher power than these private tests. Finally, we provide publicly available implementations and empirically illustrate the practicality of our robust tests.
