NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Testing probability distributions using conditional samples

Clément L. Canonne, Dana Ron, Rocco A. Servedio · DOI

TL;DR

This paper introduces a new model for testing probability distributions called the "conditional sampling model." This model allows algorithms to query the distribution on subsets of its domain, leading to significantly more efficient algorithms for fundamental distribution testing problems compared to traditional methods. The authors demonstrate this by developing polylogarithmic or even constant-query algorithms for tasks like testing uniformity and equivalence, which previously required near-linear sample complexity.

What Problem Does This Paper Address?

The paper tackles the challenge of efficiently testing properties of probability distributions. In the standard "property testing" framework, algorithms access a distribution by drawing independent samples. While this model has been extensively studied, it often leads to algorithms with high sample complexity, especially when the domain size ($N$) is large. For instance, testing if a distribution is uniform can require $\Omega(\sqrt{N})$ samples, and some problems necessitate nearly linear sample complexity. This high cost motivates exploring alternative access models that might enable more efficient algorithms. The paper addresses this by proposing and analyzing a new model: the conditional sampling model.

Methods

The core innovation is the conditional sampling oracle. Unlike standard sampling (where you get a random element from the entire distribution), this oracle takes a subset $S$ of the domain and returns a sample conditioned on falling within $S$. This allows algorithms to be adaptive, meaning they can choose subsequent queries based on previous results.

The paper then applies this model to several key distribution testing problems:

  • Testing Uniformity: They develop a PCOND (pairwise conditional sampling) algorithm that achieves $\tilde{O}(1/\epsilon^2)$ query complexity, which is nearly optimal.
  • Testing Equivalence to a Known Distribution: They provide a PCOND algorithm with $\tilde{O}((\log N)^4/\epsilon^4)$ queries and a general COND algorithm with $\tilde{O}(1/\epsilon^4)$ queries, showing a significant improvement over standard models.
  • Testing Equality of Two Unknown Distributions: They offer algorithms with $\tilde{O}((\log N)^6/\epsilon^2)$ and $\tilde{O}((\log N)^5/\epsilon^4)$ query complexities.
  • Estimating Distance to Uniformity: They achieve $\tilde{O}(1/\epsilon^{20})$ query complexity, a dramatic reduction from the standard model's $\Omega(N/\log N)$.

The paper also introduces restricted versions of the conditional sampling oracle, like PCOND (pairwise conditional) and ICOND (interval conditional), and analyzes algorithms and lower bounds for these as well.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms and models of access to distributions, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Conditional Sampling is Powerful: The central takeaway is that allowing algorithms to query conditional distributions on subsets of the domain dramatically reduces the number of queries needed for many fundamental distribution testing tasks. This suggests that adaptive querying strategies enabled by conditional sampling are highly effective.
  • Adaptivity is Key: The conditional sampling model inherently allows for adaptive algorithms, which can tailor their queries based on intermediate results. This adaptivity is crucial for achieving the significant query complexity improvements observed in the paper.
  • Restricted Conditional Oracles Still Offer Benefits: Even simplified versions of conditional sampling, like PCOND (only allowing pairs) or ICOND (only allowing intervals), still provide substantial algorithmic advantages over standard sampling. This highlights that even limited forms of structured access can be very powerful.
  • New Tools for Distribution Analysis: The paper develops novel techniques for analyzing distributions in these new models, such as approximate EVAL oracles and procedures for estimating neighborhood weights, which may be useful for future research.

Key Results

  • Testing Uniformity: Achieved $\tilde{O}(1/\epsilon^2)$ query complexity using PCOND, with a matching lower bound for general COND.
  • Testing Equivalence to Known Distribution: Developed $\tilde{O}((\log N)^4/\epsilon^4)$ query PCOND algorithm and $\tilde{O}(1/\epsilon^4)$ query COND algorithm.
  • Estimating Distance to Uniformity: Achieved $\tilde{O}(1/\epsilon^{20})$ query complexity using PCOND, a massive improvement over the standard model's $\Omega(N/\log N)$.
  • Lower Bounds: Established $\Omega(\log N / \log \log N)$ lower bounds for ICOND algorithms testing uniformity, and $\Omega((\log N)^2)$ lower bounds for PCOND algorithms testing equivalence to a known distribution.

Limitations and Future Work

The authors acknowledge that their results are not exhaustive and many directions remain to be explored. They suggest:

  • Strengthening Bounds: Further refining the upper and lower bounds for the problems studied.
  • More Properties: Investigating other distribution properties beyond uniformity and equivalence, such as monotonicity, independence, and entropy.
  • Structured Domains: Extending the conditional sampling framework to other structured domains, like the Boolean hypercube, and exploring "subcube" queries.
  • Distribution Learning: Applying the conditional sampling framework to distribution learning problems, not just testing.

Summary updated

BibTeX
@article{canonne2012testing,
  author = {Clément L. Canonne and Dana Ron and Rocco A. Servedio},
  title = {{Testing probability distributions using conditional samples}},
  journal = {Electron. Colloquium Comput. Complex.},
  year = {2012},
  doi = {10.1137/130945508},
}
Figure