On the Structure of Replicable Hypothesis Testers
Anders Aamand, Maryam Aliakbarpour, Justin Y. Chen, Shyam Narayanan, Sandeep Silwal
Abstract
A hypothesis testing algorithm is replicable if, when run on two different samples from the same distribution, it produces the same output with high probability. This notion, defined by by Impagliazzo, Lei, Pitassi, and Sorell [STOC'22], can increase trust in testing procedures and is deeply related to algorithmic stability, generalization, and privacy. We build general tools to prove lower and upper bounds on the sample complexity of replicable testers, unifying and quantitatively improving upon existing results.
We identify a set of canonical properties, and prove that any replicable testing algorithm can be modified to satisfy these properties without worsening accuracy or sample complexity. A canonical replicable algorithm computes a deterministic function of its input (i.e., a test statistic) and thresholds against a uniformly random value in [0, 1]. It is invariant to the order in which the samples are received, and, if the testing problem is "symmetric," then the algorithm is also invariant to the labeling of the domain elements, resolving an open question by Liu and Ye [NeurIPS'24]. We prove new lower bounds for uniformity, identity, and closeness testing by reducing to the case where the replicable algorithm satisfies these canonical properties.
We systematize and improve upon a common strategy for replicable algorithm design based on test statistics with known expectation and bounded variance. Our framework allow testers which have been extensively analyzed in the non-replicable setting to be made replicable with minimal overhead. As direct applications of our framework combined with existing analyses of non-replicable testers, we obtain constant-factor optimal bounds for coin testing and closeness testing and get replicability for free for uniformity testing in a large parameter regime. As replicable coin testing can be used as a black-box to turn any tester into a replicable tester, our results directly imply improved replicable sampling bounds for myriad applications beyond the ones specifically studied in this paper.
We also give a state-of-the-art algorithm for replicable Gaussian mean testing. We present a ρreplicable algorithm for testing whether samples come from N (0, I) or from N (µ, I) where ∥µ∥2 ≥ α. Our algorithm improves over the previous best sample complexity of Bun, Gaboardi, Hopkins, Impagliazzo, Lei, Pitassi, Sivakumar, and Sorrell [STOC'23] and runs in polynomial time.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext fb66efc8-dd8d-4846-9921-0fbe804ab506Cited by top-tier papers3
- Replicable Reinforcement Learning with Linear Function ApproximationEric Eaton, Marcel Hussing, Michael Kearns, Aaron Roth et al.ICLR 2026 · 6 citations
- Replicable Reinforcement LearningEric Eaton, Marcel Hussing, Michael Kearns, Jessica SorrellNeurIPS 2023 · 3 citations
- Distribution Testing in the Presence of Arbitrarily Dominant Noise with Verification QueriesHadley Black, Christopher YeSODA 2026
Builds on16
- Replicability in Reinforcement LearningAmin Karbasi, Grigoris Velegkas, Lin Yang, Felix ZhouNeurIPS 2023 · 28 citations
- Replicable ClusteringHossein Esfandiari, Amin Karbasi, Vahab Mirrokni, Grigoris Velegkas et al.NeurIPS 2023 · 23 citations
- Statistical Indistinguishability of Learning AlgorithmsAlkis Kalavasis, Amin Karbasi, Shay Moran, Grigoris VelegkasICML 2023 · 20 citations
- Reproducibility in learningRussell Impagliazzo, Rex Lei, Toniann Pitassi, Jessica SorrellSTOC 2022 · 20 citations
- Replicable Learning of Large-Margin HalfspacesAlkis Kalavasis, Amin Karbasi, Kasper Green Larsen, Grigoris Velegkas et al.ICML 2024 · 14 citations
Related papers
- Replicable Uniformity TestingSihan Liu, Christopher YeNeurIPS 2024 · 6 citations
- Replicable Distribution TestingIlias Diakonikolas, Jingyi Gao, Daniel Kane, Sihan Liu et al.NeurIPS 2025 · 3 citations
- Replicability in High Dimensional StatisticsMax Hopkins, Russell Impagliazzo, Daniel M. Kane, Sihan Liu et al.FOCS 2024 · 1 citation
- Stability Is Stable: Connections between Replicability, Privacy, and Adaptive GeneralizationMark Bun, Marco Gaboardi, Max Hopkins, Russell Impagliazzo et al.STOC 2023 · 5 citations
- Sample-efficient Replicable Median in Polynomial TimeKiarash Banihashem, MohammadHossein Bateni, Hossein Esfandiari, Samira Goudarzi et al.SODA 2026 · 1 citation
