Random Restrictions of High-Dimensional Distributions and Uniformity Testing with Subcube Conditioning

Clément L. Canonne, Xi Chen, Gautam Kamath, Amit Levi, Erik Waingarten

TL;DR

This paper introduces a nearly-optimal algorithm for testing whether a high-dimensional distribution is uniform using a "subcube conditional" oracle. By leveraging a novel robust version of Pisier’s Inequality and the technique of random restrictions, the authors reduce the query complexity from exponential to sublinear ($\tilde{O}(\sqrt{n}/\epsilon^2)$), matching the lower bounds for much simpler distribution classes.

What Problem Does This Paper Address?

In the world of distribution testing, the "curse of dimensionality" is a formidable wall. If you want to test if a distribution over the Boolean hypercube $\{-1, 1\}^n$ is uniform using only independent samples, you need $\Theta(2^{n/2}/\epsilon^2)$ samples. For a 100-dimensional space, this is physically impossible.

To make testing tractable, researchers usually do one of two things:

  1. Restrict the distribution: Assume the data comes from a simple model, like a product distribution (where all bits are independent).
  2. Strengthen the oracle: Give the algorithm more power than just "give me a random sample."

This paper takes the second path. It uses the Subcube Conditional Sampling (SCOND) oracle. This oracle allows an algorithm to specify a "subcube"—fixing some variables (e.g., $x_1=1, x_5=-1$) while leaving others free—and receive a sample from the distribution conditioned on that subcube. The challenge is: how do we use this power to test uniformity for any arbitrary distribution as efficiently as we can for the simplest ones?

Methods

The authors combine classical tools from the analysis of Boolean functions with new probabilistic inequalities:

  • Random Restrictions: This is the core strategy. A random restriction fixes a subset of coordinates to values drawn from the distribution and leaves the rest as "stars" (free variables). The authors analyze how these restrictions affect the mean vector of the distribution.
  • Robust Pisier’s Inequality: The "secret sauce" of the proof. Pisier’s Inequality relates the distance of a function from its mean to the norm of its gradient. The authors proved a new, "robust" version that works even when you only look at specific orientations of edges in the hypercube. This allows them to relate Total Variation (TV) distance (which is hard to estimate) to the $\ell_2$-norm of the mean vector (which is easier).
  • Recursive Testing (SubCondUni): The algorithm works recursively. If a distribution is far from uniform, either its "projections" have a large mean vector (detectable via a sub-routine), or its "restrictions" remain far from uniform, in which case the algorithm recurses on a smaller number of variables.
  • Mean Testing: As a building block, the authors developed a nearly-optimal algorithm to distinguish between a uniform distribution and one with a large mean vector ($\|\mu\|_2 \ge \epsilon\sqrt{n}$) using $O(\max\{1/(\epsilon^2\sqrt{n}), 1/\epsilon\})$ samples.

Datasets

As a theoretical work in computer science and statistics, this paper does not use empirical datasets or benchmarks like ImageNet. Instead, the "datasets" are mathematical abstractions of probability distributions over $\{-1, 1\}^n$. The validity of the approach is demonstrated through rigorous mathematical proofs of query complexity and success probability.

Key Insights and Ideas

  • Breaking Correlations: In general distributions, the mean vector can be zero even if the distribution is very far from uniform (e.g., a distribution supported only on $\{x, -x\}$). However, the authors show that randomly fixing bits eventually "breaks" these correlations. After enough restrictions, the distribution starts behaving like a product distribution, where the mean vector does reveal the distance to uniformity.
  • The Power of Direction: By using a directed version of Pisier’s inequality, the authors can "charge" the distance from uniformity to specific edges in the hypercube, allowing for a much tighter analysis than previous methods that used a simple chain rule.
  • Sublinear is Possible: The most significant insight is that with subcube conditioning, testing an arbitrary distribution is no harder (in terms of $n$) than testing a product distribution.

Key Results

  • Optimal Uniformity Testing: The algorithm achieves a query complexity of $\tilde{O}(\sqrt{n}/\epsilon^2)$. This improves upon the previous state-of-the-art of $\tilde{O}(n^2/\epsilon^2)$ and is tight up to poly-logarithmic factors.
  • Optimal Mean Testing: The paper provides a mean tester for general distributions that is optimal up to triply-logarithmic factors.
  • Gaussian Application: The authors show their techniques can be applied to Gaussian Mean Testing, distinguishing between a standard multivariate normal $\mathcal{G}(0, I)$ and one with a shifted mean $\|\mu\|_2 \ge \epsilon\sqrt{n}$ with $O(\sqrt{n}/\epsilon^2)$ samples.

Limitations and Future Work

  • Identity Testing: While this paper masters uniformity testing (comparing $p$ to the uniform distribution $U$), it does not fully solve the more general identity testing (comparing $p$ to an arbitrary known distribution $q$). The authors note that extending these $\sqrt{n}$ bounds to the general identity case is a key direction for future research.
  • Product Domains: The current work focuses on the Boolean hypercube $\{-1, 1\}^n$. Extending these results to larger alphabets or different product domains remains an open challenge.
  • Computational Complexity: While the query complexity is low, a naive implementation of the "Mean Tester" is superpolynomial. The authors point to simultaneous work that suggests ways to make the running time polynomial, but a unified, computationally efficient framework for all parts of the algorithm is still a work in progress.

Summary updated

Abstract

We give a nearly-optimal algorithm for testing uniformity of distributions supported on $\{-1,1\}^n$, which makes $\tilde O (\sqrt{n}/\varepsilon^2)$ queries to a subcube conditional sampling oracle (Bhattacharyya and Chakraborty (2018)). The key technical component is a natural notion of random restriction for distributions on $\{-1,1\}^n$, and a quantitative analysis of how such a restriction affects the mean vector of the distribution. Along the way, we consider the problem of mean testing with independent samples and provide a nearly-optimal algorithm.
BibTeX
@inproceedings{canonne2021random,
  author = {Clément L. Canonne and Xi Chen and Gautam Kamath and Amit Levi and Erik Waingarten},
  title = {{Random Restrictions of High-Dimensional Distributions and Uniformity Testing with Subcube Conditioning}},
  booktitle = {SODA},
  year = {2021},
  doi = {10.1137/1.9781611976465.21},
}
Figure