A manifold two-sample test study: integral probability metric with neural networks

Jie Wang, Minshuo Chen, Tuo Zhao, Wenjing Liao, Yao Xie

Introduction

In statistical inference, the two-sample test is a foundational problem: given two sets of data, do they originate from the same underlying distribution? While well-understood in low dimensions, this task suffers from the "curse of dimensionality" in high-dimensional spaces. Standard non-parametric tests like Maximum Mean Discrepancy (MMD) or Wasserstein distance require sample sizes that grow exponentially with the ambient dimension $D$ to maintain statistical power.

A recent study by Wang et al. (Georgia Tech) addresses this by exploiting the "manifold hypothesis"—the idea that high-dimensional data often concentrates near low-dimensional structures. By focusing on the intrinsic dimension $d$ rather than the ambient dimension $D$, they propose a neural network-based approach that remains efficient even in extreme dimensions.

The Manifold Hypothesis in Practice

The motivation for a manifold-based approach is evident in common machine learning datasets. For instance, an ImageNet image resides in a space of over 150,000 pixels, yet its actual degrees of freedom are estimated to be fewer than 50.

Table 1: Comparison of ambient dimension (D) and estimated intrinsic dimension (d) for various datasets and manifolds.

As shown in the table above, the gap between the raw data dimension and the intrinsic manifold dimension is massive. Traditional tests that scale with $D$ are doomed to fail in these regimes, necessitating methods that adapt to $d$.

Proposed Methodology: Neural Network IPMs

The authors focus on the Integral Probability Metric (IPM), which quantifies the distance between distributions $p$ and $q$ using a class of "critic" functions $\mathcal{F}$. The core challenge is choosing $\mathcal{F}$ such that it is expressive enough to distinguish distributions but restricted enough to avoid overfitting.

The paper evaluates three primary testing frameworks:

  1. Two-step Test: Requires a known "atlas" (geometric mapping) of the manifold. It combines local distribution checks with projected Wasserstein distances.
  2. Hölder IPM Test: Uses smooth Hölder densities as critics. While theoretically sound, it is computationally impractical for high-dimensional data.
  3. Neural Network (NN) IPM Test: The primary contribution. It uses a ReLU Feedforward Neural Network to approximate the Hölder critic. This allows the test to "learn" the manifold structure implicitly.

Theoretical Results and Risk Analysis

The critical finding of this research is that the NN IPM test successfully bypasses the curse of dimensionality. The authors provide a non-asymptotic analysis of the Type-II risk—the probability of failing to reject the null hypothesis when the distributions are actually different.

Table 2: Summary of algorithms and their corresponding rates of Type-II risk.

As summarized in the table, the risk rate for the NN IPM test is $O(n^{-(s+\beta)/d})$, where $n$ is the sample size and $s, \beta$ represent the smoothness of the densities. Notably, the ambient dimension $D$ only affects the rate logarithmically or as a minor factor, proving that the test's performance is driven by the intrinsic dimension $d$.

Key Insights

  • Intrinsic Adaptivity: Neural networks are shown to be naturally adaptive to low-dimensional structures. They can approximate the necessary critic functions with a complexity that scales with $d$, even when the manifold structure is unknown.
  • Smoothness and Convergence: The convergence rate of the test is intrinsically linked to the smoothness of the underlying probability densities on the manifold. Smoother distributions allow for faster detection of differences with fewer samples.

Limitations and Future Directions

While the theoretical bounds are promising, the authors note that the rejection thresholds derived from concentration inequalities can be conservative. In practice, bootstrap methods are recommended to establish more sensitive thresholds. Additionally, while NNs are more practical than abstract Hölder spaces, the computational cost of training a critic network remains higher than simple kernel-based methods like MMD.

Future work may explore identifying the specific "most distinguishable dimensions" that separate two distributions, which could potentially be even lower than the manifold's intrinsic dimension.

Summary updated

BibTeX
@misc{wang2022manifold,
  author = {Jie Wang and Minshuo Chen and Tuo Zhao and Wenjing Liao and Yao Xie},
  title = {{A manifold two-sample test study: integral probability metric with neural networks}},
  year = {2022},
  eprint = {2205.02043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.02043},
}
Figure