Abstract
As datasets scale into the millions and billions of entries, traditional machine learning subroutines—such as k-medoids clustering, decision tree splitting, and vector search—encounter significant computational bottlenecks. This research introduces a framework that replaces exact, deterministic subroutines with randomized, adaptive sampling versions. By framing these tasks as "multi-armed bandit" problems, specifically focusing on Best-Arm Identification, the proposed algorithms achieve substantial speedups, often reducing complexity from linear or quadratic to constant time relative to the dataset size, without compromising model quality.
Introduction
We are currently operating in an era of "huge data," yet many foundational machine learning tools were designed for a different scale. Algorithms like k-medoids clustering, Random Forest training, and Maximum Inner Product Search (MIPS) rely on subroutines that scale poorly. For instance, finding the optimal split point in a decision tree typically requires an $O(n)$ pass over the data, while identifying the best center in a cluster can reach $O(n^2)$ complexity.
This work addresses a fundamental question: Can we achieve the same algorithmic results by examining only a tiny, intelligently selected fraction of the data? By shifting the focus from exact computation to statistical estimation, this dissertation demonstrates that many ML bottlenecks can be bypassed using adaptive sampling techniques.
Methodology: The Multi-Armed Bandit Framework
The core innovation of this research is the reduction of deterministic computational problems to the Best-Arm Identification problem from multi-armed bandit (MAB) literature. In this framework, potential solutions (e.g., candidate split points or cluster centers) are treated as "arms" in a slot machine. The goal is to identify the arm with the highest average payout (the best quality metric) with high confidence while minimizing the number of samples taken.
The Adaptive Process
- Candidate Mapping: In clustering, each potential medoid is an arm; in decision trees, each potential split point is an arm.
- Adaptive Sampling: Instead of calculating the exact quality of every candidate using the entire dataset, the algorithm draws small, incremental batches of data.
- Successive Elimination: Utilizing confidence intervals—specifically Hoeffding’s Inequality—the algorithm identifies candidates that are statistically guaranteed to be inferior to the current leader. These "bad" candidates are pruned early.
- Budget Refinement: The algorithm concentrates its remaining computational resources on the most promising candidates, sampling them more deeply until a clear winner emerges with a pre-defined level of confidence.
This framework resulted in three specialized algorithms: BanditPAM (clustering), MABSplit (decision trees), and BanditMIPS (vector search).
Key Applications and Results
BanditPAM (Clustering)
BanditPAM targets the k-medoids problem, which is more robust to outliers than k-means but traditionally much slower. By applying adaptive sampling to the search for medoids, BanditPAM achieved the same accuracy as state-of-the-art exact methods while running up to 4x faster and performing up to 200x fewer distance computations.
MABSplit (Decision Trees)
In Random Forest training, the node-splitting process is the primary bottleneck. MABSplit treats each potential split as an arm. In experimental trials, MABSplit reduced training time by up to 100x (a 99% reduction) in specific settings with zero loss in test accuracy. Effectively, it transforms an $O(n)$ node-splitting problem into an $O(1)$ problem relative to the number of data points.
BanditMIPS (Vector Search)
Maximum Inner Product Search is critical for modern recommendation systems and retrieval tasks. BanditMIPS demonstrates that search complexity can be made independent of the dimensionality ($d$) of the data. On the Movie Lens dataset, BanditMIPS was 20x faster than previous state-of-the-art methods while returning identical top results.
Discussion and Insights
Complexity vs. Heterogeneity
A primary insight of this work is that the complexity of many ML tasks should not necessarily depend on the size of the dataset ($n$), but rather on the heterogeneity of the data. If a particular split point or cluster center is significantly better than its competitors, it can be identified in $O(1)$ time. Exactness is often "overkill"; most computational time in traditional algorithms is wasted on precisely calculating the value of clearly suboptimal candidates.
Dimension Independence
The results from BanditMIPS are particularly relevant for high-dimensional embeddings used in modern AI. By decoupling search complexity from dimensionality, the framework allows for more efficient inference in large-scale vector spaces.
Limitations and Future Work
While powerful, these adaptive methods have limitations. On very small datasets, the administrative overhead of managing confidence intervals and batches may exceed the cost of a naive exact calculation. Additionally, in datasets with high symmetry—where the "gaps" between candidate arms are extremely small—the algorithm may be forced to sample nearly the entire dataset to reach the required confidence threshold.
Future research directions include optimizing distance caching to further increase speed and applying the BanditMIPS framework to the final layers of massive neural networks to accelerate classification tasks without the need to calculate every single logit.
Summary updated