[Paper Review] Optimal Algorithms for Testing Closeness of Discrete Distributions
This paper presents optimal, simple testers for closeness testing of discrete probability distributions under both ℓ₁ and ℓ₂ distance metrics. It establishes tight sample complexity bounds—Θ(max{n²/³/ε⁴/³, n¹/²/ε²}) for ℓ₁ and Θ(√b/ε²) for ℓ₂—by introducing novel moment-based analysis and leveraging existing lower bound frameworks, achieving information-theoretic optimality up to constant factors.
We study the question of closeness testing for two discrete distributions. More precisely, given samples from two distributions $p$ and $q$ over an $n$-element set, we wish to distinguish whether $p=q$ versus $p$ is at least $\eps$-far from $q$, in either $\ell_1$ or $\ell_2$ distance. Batu et al. gave the first sub-linear time algorithms for these problems, which matched the lower bounds of Valiant up to a logarithmic factor in $n$, and a polynomial factor of $\eps.$ In this work, we present simple (and new) testers for both the $\ell_1$ and $\ell_2$ settings, with sample complexity that is information-theoretically optimal, to constant factors, both in the dependence on $n$, and the dependence on $\eps$; for the $\ell_1$ testing problem we establish that the sample complexity is $Θ(\max\{n^{2/3}/\eps^{4/3}, n^{1/2}/\eps^2 \}).$
Motivation & Objective
- To resolve the long-standing open problem of determining the optimal sample complexity for testing whether two discrete distributions are identical or ε-far in ℓ₁ distance.
- To design a computationally efficient tester with sample complexity matching information-theoretic lower bounds up to constant factors.
- To extend the analysis to the ℓ₂ distance setting, establishing optimality and robustness properties for closeness testing.
- To provide a simpler, alternative approach to prior work that improves on suboptimal sample bounds by eliminating logarithmic and polynomial factors in n and ε.
Proposed method
- Proposes a new moment-based testing framework that compares empirical moments of samples from p and q to distinguish p=q from ||p−q||₁≥ε.
- Uses a novel construction of distributions p and q with controlled ℓ₁ distance and bounded ℓ∞ norms to derive lower bounds via moment comparison.
- Applies Theorem 8 (from prior work) to show indistinguishability of (p,p) and (p,q) pairs when sample size is below the threshold, proving lower bounds.
- Leverages Theorem 10 from [VV13] to derive a lower bound for ℓ₂ testing by constructing a perturbation family Qp,ε and analyzing distinguishability via sample size.
- Designs a tester that achieves optimal sample complexity by focusing on the dominant contributions in the moment space, avoiding the learning-via-estimation approach.
- Establishes robustness in ℓ₂ testing by showing that the same sample complexity distinguishes ||p−q||₂≤ε from ||p−q||₂≥2ε.
Experimental results
Research questions
- RQ1What is the optimal sample complexity for testing whether two discrete distributions are identical or ε-far in ℓ₁ distance?
- RQ2Can a simpler, more efficient tester be designed that achieves the information-theoretic lower bound for ℓ₁ closeness testing?
- RQ3What is the optimal sample complexity for closeness testing under the ℓ₂ norm, and does robust testing (distinguishing ε vs 2ε) require more samples than non-robust testing?
- RQ4How do the sample complexity bounds for ℓ₁ and ℓ₂ closeness testing compare, and why does robustness behave differently in the two settings?
Key findings
- The sample complexity for ℓ₁ closeness testing is Θ(max{n²/³/ε⁴/³, n¹/²/ε²}), resolving the problem up to constant factors.
- The proposed ℓ₁ tester is simpler and more efficient than prior approaches, avoiding the learning-via-estimation paradigm.
- For ℓ₂ closeness testing, the optimal sample complexity is Θ(√b/ε²), where b is an upper bound on the maximum probability mass.
- Robust ℓ₂ testing (distinguishing ε vs 2ε) is possible with the same sample complexity as non-robust testing, unlike in ℓ₁.
- The lower bound for ℓ₁ testing is established via a construction where (p,p) and (p,q) are indistinguishable with fewer than cn²/³ε⁻⁴/³ samples, using moment comparison.
- The lower bound for ℓ₂ testing is derived by applying Theorem 10 to a uniform distribution over 1/b elements with perturbations ε√b, showing that no algorithm can distinguish p from a random q∈Qp,ε with high probability using fewer than c√b/ε² samples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.