Abstract
This work provides the first complete characterization of the sample complexity for "tolerant" distribution testing—the problem of deciding whether an unknown distribution is $\epsilon_1$-close to or $\epsilon_2$-far from a reference distribution. We identify a smooth and surprising tradeoff between the well-known $O(\sqrt{n})$ complexity of noiseless testing and the $O(n/\log n)$ complexity of the maximally noisy regime. Our results show that the "price of tolerance" is fundamentally governed by the ratio $\epsilon_1/\epsilon_2^2$ rather than the linear ratio $\epsilon_1/\epsilon_2$.
Introduction
In distribution testing, the goal is to determine properties of a distribution $p$ given independent samples. Standard "non-tolerant" tests for identity (is $p = q$?) or equivalence (is $p = q$ for two unknown distributions?) are binary and highly efficient, often requiring only $O(\sqrt{n})$ samples. However, real-world models are rarely exact. Tolerant testing addresses this by asking if $p$ is "pretty close" ($\epsilon_1$-close) or "definitely far" ($\epsilon_2$-far) from the target.
Prior to this work, the complexity was understood only at the extremes: the noiseless case ($\epsilon_1 = 0$) at $\approx \sqrt{n}$ and the maximally noisy case ($\epsilon_1 \approx \epsilon_2/2$) at $\approx n/\log n$. The intermediate landscape—how complexity scales as the tolerance $\epsilon_1$ increases—remained a major open question in theoretical computer science and statistics.
Methods
The authors establish tight bounds using a combination of algorithmic innovation and mathematical lower bounds. As a theoretical research paper, the evaluation consists of rigorous mathematical proofs establishing sample complexity for any distribution over a domain of size $n$.
Algorithmic Approach
The proposed tester utilizes a modified $\ell_2$-statistic, similar to a $\chi^2$-test, but introduces a novel rescaling factor. Unlike previous testers that rescaled terms by the total probability mass ($p_i + q_i$), this algorithm rescales based on the absolute difference $|p_i - q_i|$. This prevents the tester from being overly sensitive to a few large elements that might suggest a large distance when the distributions are globally close.
Lower Bound Proofs
To prove optimality, the authors employed the moment-matching technique, constructing "priors" (distributions of distributions) that are statistically indistinguishable with few samples. This involved solving a complex dual convex program and applying tools from approximation theory, such as Markov and Bernstein inequalities for polynomials, to show that no low-degree polynomial can distinguish the "close" and "far" cases.
Key Results and the Price of Tolerance
The central finding is that the sample complexity for identity testing is: $$\tilde{\Theta}\left( \frac{\sqrt{n}}{\epsilon_2^2} + \frac{n}{\log n} \cdot \max\left\{ \frac{\epsilon_1}{\epsilon_2^2}, \left(\frac{\epsilon_1}{\epsilon_2^2}\right)^2 \right\} \right)$$
This formula perfectly interpolates between the known regimes. A key insight is the role of the $\epsilon_1/\epsilon_2^2$ ratio. Surprisingly, the squared term $\epsilon_2^2$ is the primary driver of complexity. Furthermore, the results show that one can obtain "tolerance for free": a significant amount of noise ($\epsilon_1 \approx \min(1/\sqrt{n}, \epsilon_2/\sqrt[4]{n})$) can be tolerated without increasing the sample complexity beyond the noiseless case.
For equivalence testing, the complexity includes an additional term ($n^{2/3}/\epsilon_2^{4/3}$), settling the price of tolerance for both fundamental problems. The work also provides "instance-optimal" bounds that adapt to the specific shape of the reference distribution $q$.
Conclusion and Future Work
This paper settles the sample complexity of tolerant distribution testing, revealing an inhomogeneous scaling behavior. While the bounds are tight up to a $\log n$ factor, closing this final gap remains an open problem, potentially requiring testers that leverage higher-order moments. Future research may also explore the computational efficiency of these testers in high-dimensional settings and extend these results to other distance metrics like KL-divergence.
Summary updated