Adaptive Sampling for Estimating Multiple Probability Distributions

Shubhanshu Shekhar, Mohammad Ghavamzadeh, Tara JavidiarXiv 2019

Abstract

We consider the problem of allocating samples to a finite set of discrete distributions in order to learn them uniformly well in terms of four common distance measures: $\ell_2^2$, $\ell_1$, $f$-divergence, and separation distance. To present a unified treatment of these distances, we first propose a general optimistic tracking algorithm and analyze its sample allocation performance w.r.t. an oracle. We then instantiate this algorithm for the four distance measures and derive bounds on the regret of their resulting allocation schemes. We verify our theoretical findings through some experiments. Finally, we show that the techniques developed in the paper can be easily extended to the related setting of minimizing the average error (in terms of the four distances) in learning a set of distributions.

Introduction

In many statistical learning scenarios, a researcher is tasked with estimating $K$ different probability distributions under a fixed sampling budget $n$. A common default is uniform allocation, where each distribution receives $n/K$ samples. However, this approach is often inefficient. Distributions with higher entropy or greater skewness typically require more observations to achieve a specific level of precision. The optimal allocation depends on the very distributions one is trying to estimate, creating a "chicken-and-egg" problem.

This paper introduces a unified framework for adaptive sampling that learns distribution characteristics on the fly. By shifting the sampling budget toward "harder" distributions, the proposed approach minimizes the maximum estimation error across the set, ensuring all distributions are learned uniformly well.

The Optimistic Tracking Framework

The core of the proposed solution is the Optimistic Tracking Algorithm, which draws inspiration from the Upper Confidence Bound (UCB) methods used in multi-armed bandit problems. The framework operates on a class of "regular" objective functions ($\mathcal{F}$) that are concave and increasing with respect to distribution parameters, yet convex and decreasing with respect to the number of samples.

The algorithm proceeds in three main phases:

  1. Optimistic Estimation: For every distribution, the learner maintains a high-probability confidence interval for the parameters governing the estimation error.
  2. Oracle Tracking: The algorithm identifies the distribution that currently exhibits the highest "optimistic" error—the worst-case error within the confidence interval.
  3. Adaptive Allocation: The sampler prioritizes the distribution with the highest optimistic error, effectively focusing resources where the current estimate is either most uncertain or most inaccurate.

Handling Diverse Distance Measures

A significant contribution of this work is the unified treatment of four distinct distance measures: $\ell_2^2$, $\ell_1$ (Total Variation), $f$-divergence (including KL-divergence), and separation distance.

Because the expected error for measures like $\ell_1$ and separation distance lacks a simple closed-form expression, the authors employ Taylor expansions to derive "surrogate" objectives. For instance, in the case of KL-divergence, the authors utilized expansions up to the 5th order to create optimizeable targets. Interestingly, the research reveals that for KL-divergence, a first-order approximation suggests a uniform allocation is optimal; the benefits of adaptive sampling only emerge when considering higher-order terms.

Theoretical and Empirical Results

The authors provide rigorous regret bounds, quantifying the gap between their adaptive strategy and an "oracle" with prior knowledge of the distributions. The regret for $\ell_2^2$ estimation scales at $\tilde{O}(n^{-3/2})$, while $\ell_1$ scales at $\tilde{O}(n^{-3/4})$. Furthermore, a lower bound proof demonstrates that any adaptive scheme will deviate from the oracle allocation by at least $O(\sqrt{n})$, suggesting that the optimistic tracking approach is near-optimal.

Empirical validation using synthetic datasets (e.g., $K=2$ distributions with support size $l=10$) confirmed these findings. The adaptive algorithm significantly outperformed uniform and greedy baselines, particularly as distributions became more skewed, demonstrating faster convergence to the optimal allocation and lower overall variance.

Conclusion and Future Work

While robust, the current framework is limited to discrete distributions on finite supports. Extending these techniques to continuous or infinite state spaces remains a key area for future research. Additionally, while the methods are motivated by Markov Decision Process (MDP) exploration, the current model assumes a known policy for state transition. Integrating this sampling logic with efficient exploration algorithms in reinforcement learning—where finding the policy is part of the problem—is a promising next step. Finally, the computational cost of maintaining high-order Taylor expansions for high-dimensional distributions warrants further optimization in practical applications.

Summary updated

BibTeX
@misc{shekhar2019adaptive,
  author = {Shubhanshu Shekhar and Mohammad Ghavamzadeh and Tara Javidi},
  title = {{Adaptive Sampling for Estimating Multiple Probability Distributions}},
  year = {2019},
  eprint = {1910.12406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.12406},
}
Figure