On the Exploration of Local Significant Differences For Two-Sample Test
Zhijian Zhou, Jie Ni, Jia-He Yao, Wei Gao
Abstract
Recent years have witnessed increasing attentions on two-sample test with diverse real applications, while this work takes one more step on the exploration of local significant differences for two-sample test. We propose the ME MaBiD , an effective test for two-sample testing, and the basic idea is to exploit local information by multiple Mahalanobis kernels and introduce bi-directional hypothesis for testing. On the exploration of local significant differences, we first partition the embedding space into several rectangle regions via a new splitting criterion, which is relevant to test power and data correlation. We then explore local significant differences based on our bi-directional masked p-value together with the ME MaBiD test. Theoretically, we present the asymptotic distribution and lower bounds of test power for our ME MaBiD test, and control the familywise error rate on the exploration of local significant differences. We finally conduct extensive experiments to validate the effectiveness of our proposed methods on two-sample test and the exploration of local significant differences.
This work presents a new two-sample test from local and directional information, and further explore local significant differences. The main contributions can be summarized as follows:
• We propose the effective ME MaBiD test for two-sample testing, and the basic idea is to exploit local information by multiple Mahalanobis kernels and introduce bi-directional hypothesis for testing. Intuitively, Mahalanobis kernels are more flexible to exploit local differences from neighborhoods and feature maps, and the bi-directional hypothesis is beneficial to improve the sensitivity of two-sample test with proper parameter adaptation.
• We partition the embedding space into several rectangle regions based on a new splitting criterion, which is relevant to test power and data correlation. We introduce the bi-directional masked p-value for each rectangle region, and finally explore local regions with significant difference based on our bi-directional masked p-value together with the ME MaBiD test.
• We present theoretical guarantees for our ME MaBiD test via the asymptotic distribution, as well as the lower bounds on the test power for our test. We also present the upper bounds on familywise error rate for our exploration of local significant differences.
• We conduct extensive experiments to validate the effectiveness and efficiency of our methods. Specifically, our methods achieve better performance on most datasets for two-sample test and exploring local significant differences, along with comparable or smaller running time.
The rest of this work is organized as follows: Section 2 presents our ME MaBiD test. Section 3 explores local significant differences. Section 4 conducts extensive experiments, and Section 5 concludes with future work. All technical proofs are given in Appendix A.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence TestingZhijian Zhou, Xunye Tian, Liuhua Peng, Chao Lei et al.NeurIPS 2025 · 8 citations
- Anchor-based Maximum Discrepancy for Relative Similarity TestingZhijian Zhou, Liuhua Peng, Xunye Tian, Feng LiuNeurIPS 2025 · 2 citations
- Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing ApproachZhijian Zhou, Liuhua Peng, Xunye Tian, Mingming Gong et al.ICML 2026 · 1 citation
- LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size AsymmetryXunye Tian, Zhijian Zhou, Liuhua Peng, Feng LiuICML 2026
Builds on7
- Learning Deep Kernels for Non-Parametric Two-Sample TestsFeng Liu, Wenkai Xu, Jie Lu, Guangquan Zhang et al.ICML 2020 · 213 citations
- Efficient Aggregated Kernel Tests using Incomplete -statisticsAntonin Schrab, Ilmun Kim, Benjamin Guedj, Arthur GrettonNeurIPS 2022 · 42 citations
- A permutation-free kernel two-sample testShubhanshu Shekhar, Ilmun Kim, Aaditya RamdasNeurIPS 2022 · 40 citations
- Meta Two-Sample Testing: Learning Kernels for Testing with Limited DataFeng Liu, Wenkai Xu, Jie Lu, Danica J. SutherlandNeurIPS 2021 · 30 citations
- AutoML Two-Sample TestJonas M. Kübler, Vincent Stimper, Simon Buchholz, Krikamol Muandet et al.NeurIPS 2022 · 29 citations
Related papers
- Kernel-based Maximum-of-difference Test for Two-sample ComparisonDan Pu, Tianyi Zhu, Yao Yan, Wei LanICML 2026
- An Asymptotic Test for Conditional Independence using Analytic Kernel EmbeddingsMeyer Scetbon, Laurent Meunier, Yaniv RomanoICML 2022 · 18 citations
- On Testing Conditional Mean Independence for Manifold-Valued DataMeiling Zeng, Jinhong You, Jicai Liu, Shouxia WangICML 2026
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data SplittingFelix Biggs, Antonin Schrab, Arthur GrettonNeurIPS 2023 · 49 citations
- Neural Tangent Kernel Maximum Mean DiscrepancyXiuyuan Cheng, Yao XieNeurIPS 2021 · 26 citations
