Regularized $f$-Divergence Kernel Tests
Mónica Ribero, Antonin Schrab, Arthur Gretton
TL;DR
The paper develops a kernel-based framework to construct two-sample tests from the entire family of $f$-divergences via a regularized variational representation, with adaptive kernel and regularization hyperparameters. It provides finite-sample convergence guarantees for the ratio and divergence estimators, and establishes permutation-based tests with controlled Type I error and non-asymptotic power bounds. By specializing to Hockey-Stick divergences, the authors demonstrate practical use in differential privacy auditing and machine unlearning, while also introducing regularized $f$-divergences (e.g., KALE, DrMMD) and an aggregation strategy ($f$-Agg) to robustly detect a range of alternatives. A key insight is that different $f$-divergences capture different localized departures from the null, motivating adaptive fusion and three-sample testing to address unlearning evaluation. Overall, the framework enables principled, adaptable, and powerful distributional testing with concrete applications to privacy and learning systems.
Abstract
We propose a framework to construct practical kernel-based two-sample tests from the family of $f$-divergences. The test statistic is computed from the witness function of a regularized variational representation of the divergence, which we estimate using kernel methods. The proposed test is adaptive over hyperparameters such as the kernel bandwidth and the regularization parameter. We provide theoretical guarantees for statistical test power across our family of $f$-divergence estimates. While our test covers a variety of $f$-divergences, we bring particular focus to the Hockey-Stick divergence, motivated by its applications to differential privacy auditing and machine unlearning evaluation. For two-sample testing, experiments demonstrate that different $f$-divergences are sensitive to different localized differences, illustrating the importance of leveraging diverse statistics. For machine unlearning, we propose a relative test that distinguishes true unlearning failures from safe distributional variations.
