English

Replicable Uniformity Testing

Machine Learning 2024-10-16 v1 Data Structures and Algorithms Machine Learning

Abstract

Uniformity testing is arguably one of the most fundamental distribution testing problems. Given sample access to an unknown distribution p\mathbf{p} on [n][n], one must decide if p\mathbf{p} is uniform or ε\varepsilon-far from uniform (in total variation distance). A long line of work established that uniformity testing has sample complexity Θ(nε2)\Theta(\sqrt{n}\varepsilon^{-2}). However, when the input distribution is neither uniform nor far from uniform, known algorithms may have highly non-replicable behavior. Consequently, if these algorithms are applied in scientific studies, they may lead to contradictory results that erode public trust in science. In this work, we revisit uniformity testing under the framework of algorithmic replicability [STOC '22], requiring the algorithm to be replicable under arbitrary distributions. While replicability typically incurs a ρ2\rho^{-2} factor overhead in sample complexity, we obtain a replicable uniformity tester using only O~(nε2ρ1)\tilde{O}(\sqrt{n} \varepsilon^{-2} \rho^{-1}) samples. To our knowledge, this is the first replicable learning algorithm with (nearly) linear dependence on ρ\rho. Lastly, we consider a class of ``symmetric" algorithms [FOCS '00] whose outputs are invariant under relabeling of the domain [n][n], which includes all existing uniformity testers (including ours). For this natural class of algorithms, we prove a nearly matching sample complexity lower bound for replicable uniformity testing.

Keywords

Cite

@article{arxiv.2410.10892,
  title  = {Replicable Uniformity Testing},
  author = {Sihan Liu and Christopher Ye},
  journal= {arXiv preprint arXiv:2410.10892},
  year   = {2024}
}

Comments

To appear in NeurIPS 2024

R2 v1 2026-06-28T19:21:15.307Z