MaxGap Bandit: Adaptive Algorithms for Approximate Ranking

Sumeet Katariya, Ardhendu Tripathy, Robert D. Nowak

TL;DR

This paper introduces the "MaxGap-bandit" problem, which aims to adaptively sample from multiple unknown distributions to find the largest gap between their adjacent means. By identifying this natural split, the proposed algorithms can automatically cluster items (e.g., "safe" vs. "unsafe" images) using 6-8x fewer samples than non-adaptive methods, entirely bypassing the need to fully sort the items or pre-specify a cutoff threshold.

What Problem Does This Paper Address?

Imagine you have a large set of items—like images, ad variations, or medical treatments—and you want to rank them by quality using noisy user feedback. Fully sorting the list is statistically exhausting because distinguishing between items with nearly identical means requires a massive number of samples. Furthermore, in many real-world applications, you don't actually need a perfect ranking; you just want to separate the "good" items from the "bad" ones.

Existing multi-armed bandit algorithms can find the top-$m$ items, but this requires the user to arbitrarily guess $m$ (the cutoff rank) ahead of time. Alternatively, you could set a fixed quality threshold, but that requires knowing the scale of the scores.

The authors tackle this by asking: Can an algorithm automatically find the "natural" breaking point in the data? They formalize this as finding the largest gap between any two adjacent means in the unknown sorted order, allowing the data to naturally partition itself into two clusters.

Methods

The authors frame this within the multi-armed bandit "fixed-confidence" setting, where the goal is to find the correct clustering with a guaranteed probability of success while minimizing the number of samples drawn.

They propose three adaptive algorithms:

  1. MaxGapElim: An elimination-style algorithm that drops arms from consideration once it's statistically clear they do not border the maximum gap.
  2. MaxGapUCB: An Upper Confidence Bound (UCB) algorithm that aggressively samples the arms that currently have the highest potential to border the maximum gap.
  3. MaxGapTop2UCB: A variant that samples the top two candidates to quickly distinguish the best gap from the runner-up.

The core technical challenge: To estimate the gap for a specific arm, you need to know its neighbors. But you don't know the sorted order of the arms! To solve this, the authors formulate the calculation of an arm's maximum possible gap as a mixed-integer optimization problem. They then design a clever, computationally efficient $O(K^2)$ dynamic programming subroutine to calculate these upper confidence bounds on the fly without needing to sort the arms.

Datasets

  • Chicago Streetview Dataset: A real-world dataset of 90 street-level images. The "arms" are the images, and the "means" are the true Borda scores representing how safe humans perceive the images to be.
  • Simulated Data: A synthetic dataset of 24 normally distributed arms specifically engineered with two large gaps and many small gaps to stress-test the algorithms' adaptive sampling behavior.

Key Insights and Ideas

  • MaxGap is NOT just "Best-Arm Identification on Gaps": A naive approach would be to sample all arms until you know their sorted order, calculate the gaps, and then run a standard best-arm algorithm to find the biggest gap. The authors prove this is highly inefficient. Because the sorted order is unknown, the uncertainty of an arm's gap depends locally on its neighbors, making the problem fundamentally different.
  • The "Helper Arm" Phenomenon: The mathematical analysis reveals a novel hardness parameter for this problem. To quickly eliminate a suboptimal arm, the algorithm relies on finding a "helper arm." This helper must be far enough away from the target arm that their distance is easy to detect, but close enough that the gap between them is still clearly smaller than the global maximum gap.
  • Minimax Optimality: The authors derive a theoretical lower bound on the number of samples any algorithm would need to solve this problem, and prove that their UCB and Elimination algorithms match this bound (up to logarithmic factors).

Key Results

  • Massive Sample Efficiency: On the real-world Chicago Streetview dataset, MaxGapUCB and MaxGapTop2UCB achieved the target accuracy (finding the true natural split between "safe" and "unsafe" images) using 6 to 7 times fewer samples than random, non-adaptive sampling.
  • Smart Allocation: On the simulated dataset, the adaptive algorithms required 8x fewer samples. Visualizing the sampling behavior showed that MaxGapUCB successfully ignored the tightly packed arms and focused almost all its sampling budget on the arms bordering the two largest gaps to figure out which was truly the largest.

Limitations and Future Work

  • Simple Confidence Intervals: The authors note that their theoretical analysis and algorithms rely on standard, somewhat conservative Hoeffding-based confidence intervals. They suggest that plugging in tighter confidence bounds (like those used in the lil'UCB algorithm) could yield even better empirical performance and tighter theoretical bounds.
  • Unique Maximum Gap: The theoretical framework currently assumes that the maximum gap is uniquely defined (i.e., there aren't two perfectly identical maximum gaps in the true distribution).
  • Multiple Clusters: While the paper focuses on finding the single largest gap to split the data into two groups, the authors note this primitive could be applied recursively to build a full hierarchical clustering or partial ordering.

Summary updated

BibTeX
@inproceedings{katariya2019maxgap,
  author = {Sumeet Katariya and Ardhendu Tripathy and Robert D. Nowak},
  title = {{MaxGap Bandit: Adaptive Algorithms for Approximate Ranking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=3kQQtvdnBb},
}
Figure