ProtoBandit: Efficient Prototype Selection via Multi-Armed Bandits

Arghya Roy Chaudhuri, Pratik Jawanpuria, Bamdev Mishra

Introduction

Prototype selection is the task of identifying a small, representative subset of data points—prototypes—from a source dataset $\mathcal{S}$ to summarize a target dataset $\mathcal{T}$. This technique is foundational for explainable AI, dataset summarization, and case-based reasoning. However, as datasets grow to massive scales, traditional selection methods face a significant computational wall.

The Bottleneck in Prototype Selection

State-of-the-art unsupervised greedy algorithms, such as SPOTgreedy, MMD-Critic, and ProtoDash, typically require computing pairwise similarities between every candidate in the source set and every point in the target set at each iteration. This leads to a computational complexity of $O(|\mathcal{S}||\mathcal{T}|)$. When the target set $\mathcal{T}$ is extremely large or represents a continuous distribution, these exact similarity computations become a prohibitive bottleneck.

ProtoBandit: Decoupling Complexity from Target Size

To address this, the authors introduce ProtoBandit, an algorithm that leverages stochastic approximations to achieve high-quality prototype selection with drastically reduced compute. ProtoBandit builds upon the Partitioning Around Medoids (PAM) clustering framework, specifically generalizing the BUILD step for scenarios where $\mathcal{S} \neq \mathcal{T}$.

The core innovation lies in two key strategies:

  1. Stochastic Greedy Search: Instead of scanning the entire source set $\mathcal{S}$ for the best next prototype, the algorithm evaluates only a small, randomly sampled subset $\mathcal{R}$.
  2. Multi-Armed Bandits (MAB): To avoid comparing candidates in $\mathcal{R}$ against the entire target set $\mathcal{T}$, ProtoBandit treats each candidate as an "arm" in a MAB problem. "Pulling" an arm involves sampling a single point from the target set to estimate the candidate's similarity gain. By employing an Approximate Best Arm (ABA) identification algorithm, ProtoBandit identifies near-optimal prototypes with high probability using only a fraction of the total samples.

Key Theoretical Insights

A significant contribution of this work is the mathematical bridge it builds between clustering and optimal transport. The authors prove that the generalized PAM BUILD step is equivalent to the optimal transport-based SPOTgreedy algorithm.

Furthermore, by framing prototype utility as an expectation over the target set, ProtoBandit effectively decouples its time complexity from the size of the target set $|\mathcal{T}|$. The theoretical upper bound on similarity comparisons is $O(k|\mathcal{S}| \text{polylog}(\dots))$, scaling linearly with the source set size and the number of prototypes $k$. Despite these approximations, the algorithm maintains a rigorous guarantee, achieving a solution within a $(1 - e^{-1} - \epsilon)$ factor of the optimal set.

Performance and Scalability

Empirical evaluations on the MNIST dataset demonstrate the efficiency of the approach. The authors tested ProtoBandit against target sets with varying class skews to ensure the prototypes accurately captured the underlying distribution.

The results are striking:

  • Efficiency: ProtoBandit achieves 100x to 1000x fewer similarity queries compared to the exact SPOTgreedy algorithm.
  • Quality: This massive reduction in compute comes at a minimal cost to performance, with generalization accuracy dropping by only approximately 2%.

Conclusion and Future Directions

ProtoBandit represents a significant step forward in making prototype selection viable for massive-scale datasets. By intelligently allocating compute through MAB, it bypasses the $O(|\mathcal{T}|)$ bottleneck that has long hindered these methods.

Future work may involve integrating the SWAP step of the PAM algorithm to further refine selected medoids and exploring distributed MAB frameworks to scale prototype selection to even larger, decentralized data environments.

This summary is based on the paper "ProtoBandit: Efficient Prototype Selection via Multi-Armed Bandits" by Arghya Roy Chaudhuri, Pratik Jawanpuria, and Bamdev Mishra.

Summary updated

BibTeX
@inproceedings{chaudhuri2022protobandit,
  author = {Arghya Roy Chaudhuri and Pratik Jawanpuria and Bamdev Mishra},
  title = {{ProtoBandit: Efficient Prototype Selection via Multi-Armed Bandits}},
  booktitle = {ACML},
  year = {2022},
}
Figure