Fast algorithms find best data models with fewer samples
A Good Way to Find Good Hypotheses
Data Structures and AlgorithmsMachine Learning
Summary
Sometimes we want to pick the best guess about an unknown pattern from a set of guesses. The challenge is to do this accurately but with as few examples as possible. The authors found ways to quickly pick or mix guesses that are almost as good as the best one, using only a small number of examples. Their methods work fast even when the possible patterns come from an infinite set. They do this by cleverly updating guesses based on feedback to get closer to the unknown pattern.
What this means in practice
- •For machine learning engineers: Efficiently select or combine model candidates to closely approximate real data distributions with minimal sample requirements.
- •For data scientists: Create fast sampling methods from learned distributions without needing new data samples, enabling scalable data analysis.
Authors
Anders Aamand, Maryam Aliakbarpour, Justin Y. Chen, Sandeep Silwal, Ria Stevens, Liang-Yu Zou
Abstract
In the hypothesis selection problem, we are given sample and density access to a finite set of known hypotheses $\mathcal{H}=\{h_1,\ldots,h_n\}$, and samples from an unknown distribution $p$, all 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$: letting $\mathsf{OPT}=\min_i\mathrm{TV}(p, h_i)$, we seek a guarantee of $\mathrm{TV}(p,q)\le C\cdot\mathsf{OPT}+\varepsilon$ with probability at least $1-δ$. It is known that the optimal approximation factors are $3$ when $q \in \mathcal{H}$ (proper), $3-2/n$ when $q$ is a mixture of the hypotheses, and $2$ when $q$ is unconstrained (improper) \cite{BousquetKS19, aamand26a}, all with $\tildeΘ(\varepsilon^{-2}\log(n/δ))$ samples required from $p$. The computational efficiency of algorithms achieving these results is in a puzzling state of affairs. For proper selection, the fastest algorithms (with near-linear dependence on $n$) have polynomial dependence on $1/δ$, and standard boosting tricks incur $C > 3$. For improper selection, prior algorithms have running times that scale with $|\mathcal{X}|$, rendering them useless for real-valued distributions. We present algorithms achieving all three optimal approximation factors using the optimal $O(\varepsilon^{-2}\log(n/δ))$ samples from $p$ and near linear running time $O(n\varepsilon^{-2}\log(n/δ))$. In the improper setting, our output is an efficient sampler for $q$, where each sample takes domain independent running time and no further samples from $p$. The three results are achieved by a common approach which uses multiplicative weights to maintain a set of unnormalized densities $ρ$ which, on average, are at a similar distance to the hypotheses $\mathcal{H}$ as $p$.