TL;DR
This paper tackles the challenge of efficiently evaluating machine learning models when obtaining ground truth labels is expensive. They introduce novel algorithms for stratified sampling that adaptively learn stratum variances, achieving near-optimal performance with significantly fewer labels than uniform sampling. This work provides a theoretical framework and practical algorithms for more cost-effective model evaluation.
What Problem Does This Paper Address?
Evaluating the performance of machine learning models typically involves comparing their predictions to ground truth labels on a test set. However, acquiring these labels can be a costly and time-consuming process, often requiring human experts. Stratified sampling offers a way to reduce the number of labels needed by intelligently selecting data points from different strata (groups) of the data, aiming to minimize the overall evaluation variance. The key challenge is that the optimal sampling strategy often depends on the variance within each stratum, which is usually unknown beforehand. Existing methods often rely on heuristics or prior knowledge of these variances, which are unrealistic assumptions. This paper addresses this gap by proposing algorithms that can simultaneously estimate these unknown variances and optimize the sampling strategy to minimize evaluation error.
Methods
The core of this paper lies in formulating the problem of estimating per-stratum variance in stratified sampling as a bandit optimization problem with decaying rewards. They propose two algorithms based on well-known bandit strategies:
- Explore-then-Commit (ETC): This algorithm first performs a fixed amount of uniform exploration within each stratum to estimate initial variances. Then, it commits to a sampling strategy based on these estimates, greedily selecting strata that offer the most reduction in variance.
- Upper Confidence Bound (UCB): This algorithm employs an "optimism in the face of uncertainty" principle. It maintains optimistic estimates of the variances for each stratum by incorporating a confidence interval. At each step, it selects the stratum with the highest optimistic variance estimate, allowing for adaptive exploration and exploitation.
A key theoretical contribution is the derivation of regret bounds for both algorithms, showing they achieve near-optimal rates (up to log-factors) of $O(k \log n / n^2)$, where $k$ is the number of strata and $n$ is the total number of samples. They also establish a lower bound of $\Omega(k/n^2)$, demonstrating the efficiency of their proposed methods.
Datasets
The paper evaluates their proposed algorithms on:
- Synthetic Data: A classification problem with $k=10$ strata. The marginal distribution of labels within each stratum is a Bernoulli distribution, with population accuracies $q_i$ drawn uniformly from $[0.2, 0.9]$. The marginal distribution of data points across strata is uniform ($p_i = 1/k$).
- Real Dataset: Image classification on the validation set of ImageNet. A pre-trained DenseNet model is used for evaluation. The data is partitioned into $k=10$ classes based on the confidence score of the classifier, which is derived from the maximum element of the softmax output.
Key Insights and Ideas
- Bandit Formulation for Stratified Sampling: Framing the problem of unknown stratum variances as a bandit problem with decaying rewards is a novel and powerful approach. This allows leveraging existing bandit theory while adapting it to the specific challenges of stratified sampling.
- Adaptive Variance Estimation: The algorithms' ability to learn stratum variances on the fly is crucial. This moves beyond static or heuristic approaches, enabling more efficient sampling, especially when variances differ significantly.
- UCB's Robustness: The UCB algorithm consistently outperforms ETC and other baselines in experiments, demonstrating the benefit of its adaptive exploration strategy. Even though ETC has a theoretically similar regret bound, UCB's empirical performance is superior, likely due to its more thorough exploration.
- Near-Optimal Theoretical Guarantees: The derived regret bounds and lower bounds provide strong theoretical backing for the proposed methods, showing they are highly efficient in terms of label complexity.
Key Results
- Theoretical Guarantees: Both ETC and UCB algorithms achieve a regret bound of $O(k \log n / n^2)$, and a lower bound of $\Omega(k/n^2)$ is established, indicating near-optimal performance.
- Empirical Performance: Experiments on synthetic and real datasets show that UCB significantly outperforms uniform sampling and the greedy approach, especially for smaller sample sizes. This translates to achieving a similar evaluation accuracy with substantially fewer labeled samples. ETC performs well initially but degrades over time compared to UCB, likely due to its early commitment to exploration. The "oracle" (using true variances) serves as a benchmark, and UCB closely approaches its performance.
Limitations and Future Work
- Log-Factor Gap: While the UCB algorithm achieves near-optimal performance, there is still a $\log n$ factor in the regret bound that the authors believe could potentially be removed. This remains an open problem.
- Stratification Rule: The paper primarily focuses on the sampling strategy given a fixed stratification rule. While they briefly discuss stratification rules, finding an optimal stratification rule is presented as a separate, challenging sub-problem. Future work could explore more sophisticated methods for learning optimal stratification rules.
- Generalization of Bandit Strategies: The paper notes that while ETC and UCB achieve the same regret rate in this stratified sampling context, this is a surprising result compared to their performance in standard multi-arm bandit problems. Further investigation into why this occurs could yield deeper insights.
Summary updated