Optimal Hypothesis Selection in (Almost) Linear Time
Maryam Aliakbarpour, Mark Bun, Adam Smith
Abstract
Hypothesis selection, also known as density estimation, is a fundamental problem in statistics and learning theory. Given a sample set from an unknown distribution P and a finite class of candidate distributions (hypotheses) H := H 1 , H 2 , . . . , H n , the goal is to design an algorithm that selects a distribution ˆ H from H that best describes P . The accuracy of the algorithm is measured by the distance between ˆ H and P , compared to the distance between the closest distribution in H and P (denoted by OPT ). Specifically, we aim for ∥ ˆ H − P ∥ TV to be at most α · OPT + ϵ for some small ϵ and α . While the value of ϵ can be reduced with an increasing number of samples, α is an inherent characteristic of the algorithm. Achieving α < 3 is impossible, even with only two candidate hypotheses, unless the number of samples is proportional to the domain size of P [Bousquet, Kane, Moran ’19]. Finding a computationally efficient algorithm that achieves the optimal α has been a primary focus of research since the early work of [Devroye, Lugosi ’01]. Before our work, the algorithms achieving α < 5 required time Ω( n 2 ) . We present the first algorithm that operates in almost linear time ( ˜ O ( n/ϵ 3 ) ) and achieves α = 3 . This result improves upon a long line of hypothesis selection research. Previously known algorithms had either worse time complexity, a larger α factor, or additional assumptions about the problem setting. Additionally, we provide another (almost) linear-time algorithm with better dependency on the additive accuracy parameter ϵ , albeit with a slightly worse accuracy parameter of α = 4 .
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 2f8b954c-a6ce-4a16-bb11-e3f073ddf1baCited by top-tier papers3
- Fast and Near-Optimal Algorithms for Private Hypothesis SelectionHilal Asi, Hongjie ChenICML 2026
- Query-Efficient Locally Private Hypothesis Selection via the Scheffe GraphGautam Kamath, Alireza F. Pour, Matthew Regehr, David P. WoodruffNeurIPS 2025
- Nearly-Linear Time Private Hypothesis Selection with the Optimal Approximation FactorMaryam Aliakbarpour, Zhan Shi, Ria Stevens, Vincent X. WangNeurIPS 2025
Builds on4
- Nearly-Tight Bounds for Testing Histogram DistributionsClément L. Canonne, Ilias Diakonikolas, Daniel Kane, Sihan LiuNeurIPS 2022 · 9 citations
- Hypothesis Selection with Memory ConstraintsMaryam Aliakbarpour, Mark Bun, Adam SmithNeurIPS 2023 · 6 citations
- Data Structures for Density EstimationAnders Aamand, Alexandr Andoni, Justin Y. Chen, Piotr Indyk et al.ICML 2023 · 6 citations
- Statistically Near-Optimal Hypothesis SelectionOlivier Bousquet, Mark Braverman, Gillat Kol, Klim Efremenko et al.FOCS 2021
Related papers
- TURF: Two-Factor, Universal, Robust, Fast Distribution Learning AlgorithmYi Hao, Ayush Jain, Alon Orlitsky, Vaishakh RavindrakumarICML 2022
- Statistical-Computational Trade-offs for Density EstimationAnders Aamand, Alexandr Andoni, Justin Y. Chen, Piotr Indyk et al.NeurIPS 2024 · 2 citations
- Product Distribution Learning with Imperfect AdviceArnab Bhattacharyya, Davin Choo, Philips George John, Themis GouleakisNeurIPS 2025 · 3 citations
- Data Amplification: Instance-Optimal Property EstimationYi Hao, Alon OrlitskyICML 2020 · 23 citations
- Optimal Algorithms for Augmented Testing of Discrete DistributionsMaryam Aliakbarpour, Piotr Indyk, Ronitt Rubinfeld, Sandeep SilwalNeurIPS 2024 · 3 citations
