Efficient Hypothesis Selection: A New Algorithm Approaching the Optimal Distribution

A new algorithm unifies the optimal approximation factor across three hypothesis selection settings, with near-linear time and optimal sample complexity.
This article reviews the latest advances in the hypothesis selection problem. The problem aims to find, from a finite set of candidate hypotheses, the distribution closest to an unknown distribution p, measured by total variation distance. Prior work established the optimal approximation factors under three settings (proper, mixture, improper) as 3, 3-2/n, and 2, respectively, all requiring a sample size of \(\tilde{\Theta}(\varepsilon^{-2}\log(n/\delta))\). However, algorithms achieving these optimal factors face a computational efficiency dilemma: under the proper setting, fast algorithms have polynomial dependence on \(1/\delta\) or a worse approximation factor; under the improper setting, runtime depends on the domain size \(|\mathcal{X}|\), making them impractical for continuous distributions. A recent paper proposes a unified method that simultaneously achieves the optimal approximation factor, the optimal sample size \(O(\varepsilon^{-2}\log(n/\delta))\), and near-linear runtime \(O(n\varepsilon^{-2}\log(n/\delta))\) across all settings. Under the improper setting, it outputs an efficient sampler whose per-sample time is independent of the domain size. The core method uses multiplicative weights to maintain unnormalized densities \(\rho\), balancing approximation quality and computational efficiency.
In machine learning, we often need to pick from a set of candidate hypotheses the one closest to the true data distribution. The hypothesis selection problem studies how to accomplish this efficiently with a limited number of samples. A recent paper from rss proposes a unified method that simultaneously achieves the optimal approximation factor under three settings while greatly improving computational efficiency.

The Hypothesis Selection Problem: Definition and Optimal Approximation Factors
The hypothesis selection problem is set up as follows: given sample and density access to a finite set of known hypotheses $\mathcal{H}={h_1,\ldots,h_n}$, as well as samples from an unknown distribution $p$, all defined over a possibly infinite domain $\mathcal{X}$. The goal is to output a distribution $q$ whose total variation distance to $p$ is comparable to that of the best hypothesis in $\mathcal{H}$, while minimizing the number of samples used from $p$. Let $\mathsf{OPT}=\min_i\mathrm{TV}(p, h_i)$; we want to guarantee, with probability at least $1-δ$, that $\mathrm{TV}(p,q)\le C\cdot\mathsf{OPT}+\varepsilon$.
Prior work has established the optimal approximation factors under three settings: when $q$ must be chosen from $\mathcal{H}$ (proper), the optimal factor is $3$; when $q$ is a mixture of hypotheses, the optimal factor is $3-2/n$; and when $q$ is unconstrained (improper), the optimal factor is $2$. All of these results require $\tildeΘ(\varepsilon^{-2}\log(n/δ))$ samples from $p$.
The Computational Efficiency Dilemma
Although the sample complexity is settled, the algorithms that achieve these optimal approximation factors face a puzzling situation in terms of computational efficiency. For the proper setting, the fastest algorithms (with near-linear dependence on $n$) have polynomial dependence on $1/δ$, while the standard boosting technique leads to $C > 3$, i.e., it cannot achieve the optimal approximation factor. For the improper setting, previous algorithms had running times proportional to $|\mathcal{X}|$, rendering them useless for real-valued distributions.
This dilemma means that in practice we often have to compromise between approximation quality and computational efficiency. In particular, when the domain $\mathcal{X}$ is large or continuous, algorithms for the improper setting are nearly infeasible.
A Unified Algorithm: Optimal Samples and Near-Linear Time
This paper proposes new algorithms that achieve the optimal approximation factor under all three settings, while using the optimal $O(\varepsilon^{-2}\log(n/δ))$ samples from $p$ and running in near-linear time $O(n\varepsilon^{-2}\log(n/δ))$.
In the improper setting, the algorithm's output is an efficient sampler $q$; each sample takes time independent of the domain size and requires no additional samples from $p$. This resolves the dependence on $|\mathcal{X}|$ in prior algorithms, making the algorithm applicable to real-valued distributions.
The three results are achieved through a common approach: using multiplicative weights to maintain a set of unnormalized densities $ρ$ that on average are as close to the hypotheses $\mathcal{H}$ as $p$ is. This method elegantly balances approximation quality and computational efficiency.
Significance and Outlook
The core contribution of this work is breaking the trade-off between sample efficiency and computational efficiency in the hypothesis selection problem. Through a unified approach, the paper not only simplifies algorithm design but also makes the optimal approximation factors practical. This advance has important practical value for application scenarios that require selecting the best match from a large number of candidate models (such as density estimation and generative model evaluation).
Future research directions may include further optimizing constant factors, extending to more general loss functions, and exploring hypothesis selection under distributed or privacy constraints.
The paper is titled "A Good Way to Find Good Hypotheses", and its methodological details and theoretical proofs are worth reading in depth.
Related articles

Jensen Huang Testifies Before Congress: Key Takeaways on Chip Export Controls
NVIDIA CEO Jensen Huang faces questioning from the U.S. House Foreign Affairs Committee on AI chip export controls, commercial interests, and national security.

Tencent WorkBuddy in Practice: Building an AI Automated Testing Workbench with SKILL Capabilities
Based on Bilibili creator Baili Yang's sharing, this article analyzes how Tencent WorkBuddy AI agent desktop workbench can be used for automated testing: the shift from AI-assisted to AI-led, the relationship among large models, agents, and SKILL capabilities, zero-configuration installation and permission control, and practical ideas for building a personal AI automated testing workbench.

Adding Authentication to Remix SaaS Apps: A Practical Guide to WorkOS AuthKit
Based on the official WorkOS AuthKit guide, this article covers the full approach to integrating authentication in Remix or React Router SaaS apps, including session management, protected routes, multi-tenant organizations, enterprise SSO, and SCIM sync, and analyzes its engineering value for SaaS teams.