Lune

NeurIPS2025Top-tier venue

Anchor-based Maximum Discrepancy for Relative Similarity Testing

Zhijian Zhou, Liuhua Peng, Xunye Tian, Feng Liu

Abstract

The relative similarity testing aims to determine which of the distributions, P or Q, is closer to an anchor distribution U. Existing kernel-based approaches often test the relative similarity with a fixed kernel in a manually specified alternative hypothesis, e.g., Q is closer to U than P. Although kernel selection is known to be important to kernel-based testing methods, the manually specified hypothesis poses a significant challenge for kernel selection in relative similarity testing: Once the hypothesis is specified first, we can always find a kernel such that the hypothesis is rejected. This challenge makes relative similarity testing ill-defined when we want to select a good kernel after the hypothesis is specified. In this paper, we cope with this challenge via learning a proper hypothesis and a kernel simultaneously, instead of learning a kernel after manually specifying the hypothesis. We propose an anchor-based maximum discrepancy (AMD), which defines the relative similarity as the maximum discrepancy between the distances of (U, P) and (U, Q) in a space of deep kernels. Based on AMD, our testing incorporates two phases. In Phase I, we estimate the AMD over the deep kernel space and infer the potential hypothesis. In Phase II, we assess the statistical significance of the potential hypothesis, where we propose a unified testing framework to derive thresholds for tests over different possible hypotheses from Phase I. Lastly, we validate our method theoretically and demonstrate its effectiveness via extensive experiments on benchmark datasets. Codes are publicly available at: https://github.com/zhijianzhouml/AMD.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry cites MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting
  • LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
  • LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry cites Maximum Mean Discrepancy Test is Aware of Adversarial Attacks
  • MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
  • Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach cites MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting
  • Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
  • Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach cites Maximum Mean Discrepancy Test is Aware of Adversarial Attacks
  • Maximum Mean Discrepancy Test is Aware of Adversarial Attacks cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. 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
  2. LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size AsymmetryXunye Tian, Zhijian Zhou, Liuhua Peng, Feng LiuICML 2026

Builds on17

  1. Data Augmentation Can Improve RobustnessSylvestre-Alvise Rebuffi, Sven Gowal, Dan Andrei Calian, Florian Stimberg et al.NeurIPS 2021 · 427 citations
  2. Learning Deep Kernels for Non-Parametric Two-Sample TestsFeng Liu, Wenkai Xu, Jie Lu, Guangquan Zhang et al.ICML 2020 · 213 citations
  3. Unveiling Causal Reasoning in Large Language Models: Reality or Mirage?Haoang Chi, He Li, Wenjing Yang, Feng Liu et al.NeurIPS 2024 · 124 citations
  4. Maximum Mean Discrepancy Test is Aware of Adversarial AttacksRuize Gao, Feng Liu, Jingfeng Zhang, Bo Han et al.ICML 2021 · 77 citations
  5. MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data SplittingFelix Biggs, Antonin Schrab, Arthur GrettonNeurIPS 2023 · 49 citations

Related papers

  1. MMD Graph Kernel: Effective Metric Learning for Graphs via Maximum Mean DiscrepancyYan Sun, Jicong FanICLR 2024 · 17 citations
  2. Learning Kernel Tests Without Data SplittingJonas M. Kübler, Wittawat Jitkrittum, Bernhard Schölkopf, Krikamol MuandetNeurIPS 2020 · 27 citations
  3. DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence TestingZhijian Zhou, Xunye Tian, Liuhua Peng, Chao Lei et al.NeurIPS 2025 · 8 citations
  4. Meta Two-Sample Testing: Learning Kernels for Testing with Limited DataFeng Liu, Wenkai Xu, Jie Lu, Danica J. SutherlandNeurIPS 2021 · 30 citations
  5. Kernel-based Maximum-of-difference Test for Two-sample ComparisonDan Pu, Tianyi Zhu, Yao Yan, Wei LanICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines