TL;DR
This paper introduces "Correlated Sequential Halving" (corrSH), a novel algorithm that drastically speeds up finding the medoid of large datasets. By cleverly correlating distance queries, corrSH achieves up to a 5-orders-of-magnitude improvement in speed and computational cost compared to exact methods, making medoid identification feasible for massive datasets.
What Problem Does This Paper Address?
In large datasets, identifying a representative "center" point is crucial for many tasks, like clustering. While the mean can be used, it's often uninformative for sparse or non-Euclidean data. The medoid, defined as the point within the dataset that minimizes the sum of distances to all other points, is a more robust representative. However, calculating the medoid exactly requires an O(n²) computation of all pairwise distances, which becomes infeasible for datasets with millions of points (e.g., in genomics or large-scale recommendation systems). Prior work has tackled this by framing medoid identification as a multi-armed bandit problem, where each data point is an "arm" and querying its "value" involves estimating its total distance to others. While adaptive sampling in these bandit approaches significantly reduces computations, they still struggle with extremely large datasets. This paper aims to bridge this gap by developing a method that is orders of magnitude faster.
Methods
The core innovation lies in Correlated Sequential Halving (corrSH). Instead of treating each data point's distance estimation as an independent "arm" in a traditional multi-armed bandit setting, corrSH leverages the underlying computational structure. The key idea is that to find the medoid, we don't need exact distance sums for each point, but rather the relative ordering of these sums.
The authors observe that when comparing two points, say $x_1$ and $x_i$, to estimate $d(x_1, x_J) - d(x_i, x_J)$ (where $x_J$ is a randomly chosen reference point), using the same reference point $x_J$ for both $x_1$ and $x_i$ significantly reduces the variance of the difference estimate compared to using independent reference points. This "correlation" of samples is the central theme.
corrSH builds upon the Sequential Halving algorithm. In each round, it:
- Selects a set of candidate points (arms).
- Samples a set of common reference points ($I_r$) from the dataset.
- Estimates the sum of distances for each candidate point using these common reference points.
- Eliminates roughly half of the candidate points with the highest estimated distance sums.
- Repeats until only one point remains.
This correlated sampling strategy, combined with the sequential elimination, allows the algorithm to achieve much faster convergence and significantly reduce the number of distance computations required.
Datasets
The paper evaluates corrSH on several real-world datasets:
- RNA-Seq 20k and 100k: Gene expression data from single-cell RNA sequencing, using the $l_1$ distance. These datasets represent large, high-dimensional data common in biological analysis.
- Netflix 20k and 100k: User rating data from the Netflix Prize dataset, using cosine distance. These datasets are known for their sparsity.
- MNIST Zeros: Images of handwritten digits (specifically zeros), using the $l_2$ distance. This dataset is used to represent centered images in a high-dimensional space.
The authors note that for the larger datasets where exact computation is infeasible, they use the most commonly returned point from their algorithms as the "ground truth."
Key Insights and Ideas
- Correlation is Key: The most significant insight is that exploiting the correlation between distance queries, rather than treating them as independent, dramatically improves performance. This is a departure from standard multi-armed bandit approaches.
- Focus on Differences, Not Absolutes: The problem of finding the medoid is about identifying the minimum sum of distances. This means we care about the differences between these sums, not their exact values. Correlating samples directly targets the variance of these differences.
- Computational Structure Matters: The paper argues that treating the medoid problem purely as a statistical inference problem (like a standard bandit) misses crucial structural information. By preserving this computational structure in the bandit reduction, more effective sampling strategies can be devised.
- Sub-Gaussianity of Differences: The theoretical analysis shifts from relying on the sub-Gaussianity of individual distance estimates to the sub-Gaussianity of the differences between distance estimates, which is directly improved by correlation.
Key Results
- Massive Speedup: corrSH achieves 4-5 orders of magnitude improvement in terms of distance computations and wall-clock time compared to exact medoid computation on real-world datasets.
- Empirical Performance:
- On the RNA-Seq 20k dataset, corrSH reduced the number of pulls by 2 orders of magnitude compared to Med-dit (a prior state-of-the-art bandit approach) for comparable error probabilities.
- On the Netflix 100k dataset, corrSH achieved a similar speedup, reducing wall-clock time significantly.
- Theoretical Guarantees: The paper provides theoretical bounds showing that corrSH correctly identifies the medoid with high probability, with sample complexity dependent on dataset parameters like the differences in medoid sums ($\Delta_i$) and the correlation factor ($\rho_i$).
Limitations and Future Work
- Pairwise Correlation Analysis: The current theoretical analysis primarily focuses on pairwise correlations. The authors acknowledge that there might be benefits from higher-order correlations, but analyzing them analytically is challenging.
- Lower Bounds: Providing tight lower bounds for this specific query model (where we can measure distance from any point to any other) remains an open theoretical question. Existing bandit lower bounds often don't apply due to the problem's structure.
- Hyperparameter Tuning: The paper notes that for many randomized algorithms, including RAND and Med-dit, setting hyperparameters can be tricky in practice. While corrSH has a clear theoretical framework, practical implementation might still require careful tuning or adaptive strategies.
- Broader Applicability: The authors suggest that the core idea of exploiting computational structure in bandit reductions could have broader impact on other computational problems currently framed as statistical inference tasks.
Summary updated