Strongly Replicable Distribution Testers imply High Probability Distribution Testers

Ilias Diakonikolas, Jingyi Gao, Daniel Kane, Sihan Liu, Christopher YeNeurIPS 2026

TL;DR

In statistical testing, algorithms that rarely make mistakes ("high probability") and algorithms that reliably give the same answer across different runs ("replicable") mysteriously require the exact same amount of data—you just swap a math term here for a math term there. Is this a cosmic coincidence, or are stability and accuracy secretly two sides of the same coin? This paper uncovers a deep link between the two, showing how to turn any strongly replicable algorithm into a high-probability one without needing essentially any extra data.

What Problem Does This Paper Address?

Suppose you are handed a mystery die and asked: "Is this fair?" This is the heart of distribution testing—determining if an unknown data source has a certain property using as few samples as possible.

Historically, theorists were happy if an algorithm got the right answer 2/3 of the time. If you wanted high-probability testing (failing with some tiny probability $\delta$), the standard trick was to run the test many times and take a majority vote. Surprisingly, for many core tasks, this majority-vote trick wastes data; clever custom tests can achieve tiny error rates much more cheaply.

Meanwhile, researchers introduced replicability: if two scientists run the same algorithm (sharing a random seed) on fresh samples from the exact same source, they should get the exact same output with probability $1 - \rho$. This guarantees stability, even on weird edge-case distributions that are borderline fair.

Here is the mystery that sparked this paper: across every problem studied so far—checking coin bias, uniformity, closeness of two distributions, or independence—the optimal sample cost for high-probability testing and replicable testing look identical! Specifically, if you take the sample complexity formula for replicability and swap $\rho^{-1}$ with $\sqrt{\log(1/\delta)}$, you get the exact formula for high-probability testing. The authors ask: Are high-probability testing and replicable testing statistically equivalent, or is this just a coincidence?

Methods

To bridge the two worlds, the authors introduce a tightened definition called strong $\rho$-replicability. Standard replicability demands consistency across two fresh i.i.d. draws from an underlying distribution. Strong replicability demands consistency across two random size-$m$ sub-bags drawn from any fixed, worst-case pool of $2m$ data points.

Using this concept, they build a black-box conversion algorithm (HIGHPROBABILITYTESTER):

  1. Subsampling: Draw a single pool $T_0$ of $2m$ samples from your unknown distribution.
  2. Repeated Evaluation: Instead of collecting fresh data from the wild, repeatedly draw random size-$m$ subsets from $T_0$ ($O(\log(1/\delta))$ times) and feed them into your strongly replicable tester.
  3. Averaging & Martingales: Average the outputs and threshold at $1/2$.

While subsampling is simple, proving it works is the heavy lift. First, the authors establish an equivalence between discrete $\{0, 1\}$-output replicability and continuous $[0, 1]$-output $\ell_1$-replicability. Then, using a clever "deferred decisions" pairing argument and Azuma-Hoeffding martingale concentration bounds, they prove that strong replicability forces this subsample average to concentrate tightly around its true expectation.

Datasets

Not discussed in the paper. (This is a purely theoretical computer science and mathematical statistics paper; no empirical datasets are used.)

Key Insights and Ideas

  • Stability breeds accuracy (mostly): You don't need custom test statistics to get optimal high-probability guarantees if you already have a strongly replicable tester. Stability on worst-case subsets naturally suppresses the variance that causes rare, catastrophic errors.
  • The Equivalence Isn't Two-Way: Can we convert any high-probability tester into a replicable one? No! Suppose you want to test if a coin always lands on 0 versus always lands on 1. A 1-sample test gives 0 error on those two extremes. But if someone slips you a fair 50/50 coin (which lies in the "no-man's-land" between the two extremes), a 1-sample test will flip-flop wildly between runs. Replicability still requires $\Omega(\rho^{-2})$ samples here, proving that high-probability testers do not automatically imply replicable ones.
  • Ordering Your Uncertainty Matters: In their martingale proof, as the authors reveal paired elements one by one to bound how much the output shifts, they don't reveal them in a random or fixed order—they greedily pick the pair that disturbs the expectation the least at each step, shaving off critical error factors.

Key Results

  • Black-Box Conversion: Any strongly $(\varepsilon, 1/3, \rho)$-replicable tester using $m$ samples can be converted into a high-probability tester using $2m$ samples with failure probability $\delta = \exp\left(-\Omega\left(\frac{\rho^{-2}}{\log(1/\rho)\log(m)}\right)\right)$. It runs in near-linear time in the sample size, making $O(\log(1/\delta))$ oracle calls to the original tester.
  • Tight Lower Bounds: By flipping their theorem around—converting known lower bounds for high-probability testers into lower bounds for strong replicability—they establish tight sample complexity lower bounds (up to polylogarithmic factors) for bias, uniformity, closeness, and independence testing.
Table 1: Sample complexity bounds for some distribution testing problems. The upper bounds are known for ρ-replicable testers, while the lower bounds are for strongly ρ-replicable testers obtained via Theorem 1.4. The bounds match up to polylogarithmic factors.
  • Optimal Strongly Replicable Testers: To prove strong replicability isn't an impossibly high bar, they construct explicit, sample-optimal strongly replicable testers for coin-bias estimation using $O(\rho^{-2}\varepsilon^{-2})$ samples, and closeness testing using $O(n^{2/3}\rho^{-2/3}\varepsilon^{-4/3} + n^{1/2}\rho^{-1}\varepsilon^{-2} + \rho^{-2}\varepsilon^{-2})$ samples.

Limitations and Future Work

The biggest open question is whether the word "strong" can be dropped: can standard replicable testers also be converted into high-probability testers in a black-box way? The authors prove that standard and strong replicability are strictly different (they construct a toy standard-replicable tester that is neither strongly replicable nor high-probability), though this doesn't rule out a smarter reduction.

On the flip side, while they proved high-probability testers cannot always be converted into replicable ones, their counterexample relies on a somewhat contrived edge case ($\varepsilon = 1$, zero-error 1-sample testing). Finding natural, mild assumptions under which high-probability testers can be smoothly transformed into replicable ones remains wide open for future explorers.

Summary updated

Abstract

We study connections between the sample cost of replicability, which requires an algorithm to produce consistent outputs in different runs, and the sample complexity in the high success probability regime for distribution testing algorithms. Specifically, we consider a stronger notion of replicability, which we term as strong replicability, and show that any $\rho$-strongly-replicable testing algorithm can be converted in a blackbox manner to a tester with at most $\exp(-\tilde{\Omega}(\rho^{-2}))$ failure probability under the same sample budget. Our conversion is optimal for many natural testers. As applications of our conversion theorem, we obtain tight sample lower bounds for strongly replicable testers for coin bias and closeness testing.
BibTeX
@inproceedings{diakonikolas2026strongly,
  author = {Ilias Diakonikolas and Jingyi Gao and Daniel Kane and Sihan Liu and Christopher Ye},
  title = {{Strongly Replicable Distribution Testers imply High Probability Distribution Testers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eNNEiQ8BAO},
}
Figure