MMD 两样本检验提出亚二次时间近似方法,检验功效达极小极大最优
Minimax-Optimal Kernel Two-sample Testing in Sub-quadratic Time
搞统计检验或模型评估的人应该看看这篇:把MMD检验的N²次核计算换成Fenwick树前缀和,速度快了一个量级但检验功效不掉。相比已有的近似方法还不用附加分布假设,跑大规模数据漂移检测的团队能直接受益。
一篇arXiv论文(编号2612.05470)提出一种亚二次时间的MMD两样本检验近似方法。标准MMD统计量需要计算Θ(N²)次核函数对,而该方法将全部核求和转化为Fenwick树前缀和查询,在固定维度下支持Laplace、Matérn、Gaussian和inverse multiquadric等乘积核,且维度满足d=o(log N/log log N)时仍保持亚二次复杂度。
技术机制上,方法结合快速核密度估计与数值分析中指数收敛的梯形法则,将近似误差控制到与极小极大最优的二次时间精确MMD检验具有相同检验功效。此前已有的亚二次近似方法要么损失检验功效,要么需要额外的分布假设才能逼近精确检验的表现,本方法在最小分布假设下达到极小极大速率最优功效。
当信号本身是低维时,该方法还可与降维算法配合使用。对需要大规模分布差异检测的场景,如漂移检测或生成模型评估,这意味着可将计算开销从平方级降下来,同时不牺牲统计功效。
Minimax-Optimal Kernel Two-sample Testing in Sub-quadratic Time
Kernel two-sample tests based on Maximum Mean Discrepancy (MMD) are widely used, but the standard quadratic time MMD statistic requires evaluating $Θ(N^2)$ kernel pairs where $N$ is the pooled sample size. Several subquadratic-time approximated MMD tests have been proposed to alleviate this issue, but the existing methods either compromise the test power or assume additional distributional constraints to achieve power comparable to the quadratic-time MMD test. Motivated by this gap, we propose a sub-quadratic time computational method to approximate the MMD test, achieving minimax rate-optimal power with minimal distributional assumptions. Building on ideas in fast kernel density estimation and exponentially convergent trapezoidal rule in numerical analysis, our approximation reduces all-pairs kernel summation to fast Fenwick-tree prefix-sum queries. For fixed dimension, this yields subquadratic-time algorithms for product kernels on $\mathbb R^d$ constructed from common characteristic kernels, including Laplace, Matérn, Gaussian, and inverse multiquadric kernels. The approximation error is controlled tightly enough to have the same power as the minimax-optimal quadratic-time unapproximated MMD test. The same implementation remains subquadratic for the dimension $d=o(\log N/\log\log N)$, and can be paired with dimensionality-reduction algorithms when the signal is low-dimensional.
本条情报归属 AITOP「论文」核心追踪栏目。涉及核心实体与技术议题包括:MMD、两样本检验、核方法、Fenwick树,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Ikjun Choi, Shourya Pandey, Purnamrita Sarkar),经 AITOP 多维评分管线结构化提炼。