Fast Determinantal Point Process Sampling with Application to Clustering

Byungkon KangNeurIPS 2013

Introduction

Determinantal Point Processes (DPPs) are powerful probabilistic models used in machine learning to select subsets of items that are not just high-quality, but also diverse. They are widely considered the gold standard for tasks like image search result diversification or document summarization, as they assign higher probabilities to subsets of dissimilar items.

However, the standard algorithm for sampling from a DPP requires an eigen-decomposition of the similarity matrix. For a dataset with $n$ items, this operation costs $O(n^3)$ time. When $n > 10,000$, this can take hours or even days, rendering exact DPPs impractical for real-time or large-scale applications such as kernelized clustering, where we need to pick diverse cluster centroids.

This paper proposes a faster, sub-cubic sampling method using a rapidly mixing Markov chain and applies it to automatically determine the number of clusters in $k$-means clustering.

(Note: A prominent disclaimer in the text indicates that errors were later found in the theoretical proofs regarding the mixing time, though the empirical results remain a point of interest.)

Methodology: Sub-Cubic Sampling via MCMC

The author proposes moving away from exact, global sampling toward an iterative Markov Chain Monte Carlo (MCMC) approach:

  • The Markov Chain: Instead of a one-shot sample, the paper constructs a Metropolis-Hastings chain. In each step, an element is randomly proposed to be added to or removed from the current set. The transition probability is based on the ratio of determinants between the new and old sets.
  • Efficient Updates: To avoid the $O(|Y|^3)$ cost of computing a determinant at every step, the author uses linear algebra tricks—specifically block-matrix inversion and rank-1 updates (Schur complements). This allows the algorithm to update the inverse of the similarity matrix in $O(|Y|^2)$ time, where $|Y|$ is the size of the sampled subset (typically much smaller than $n$).
  • Extension to $k$-DPPs: The method is extended to cases where the subset size $k$ is fixed, using a "swap" move (removing one item and adding another).
  • Cardinality-Penalized DPP: To handle clustering where the number of clusters is unknown, the author introduces a penalty term ($\lambda$) to control the size of the sampled set. This helps the model balance diversity against the number of representatives.

Key Insights and Experimental Results

The paper evaluates the approach on three datasets: Letter Recognition (LET, 10,000 points), Power Consumption (PWC, 10,000 points), and an Artificial Mixture of Gaussians (MG, 15,000 points).

Massive Speedups

By focusing on local "add/remove" moves, the algorithm avoids the heavy lifting of a full eigen-decomposition. On the LET dataset, the proposed MCMC method (DPP-MC) took only 20 seconds to initialize. In stark contrast, the standard full DPP sampling took 820 seconds, and MAP-based inference took 2,850 seconds.

Cumulative time comparison showing the speedup of DPP-MC over full DPP and MAP inference.

Improved Clustering Quality

Using a DPP to pick initial centroids for $k$-means is highly effective because DPPs inherently "repel" centroids from one another, leading to better coverage of the data space than random initialization. DPP-MC achieved lower distortion (a measure of clustering error) than its competitors. For the LET dataset, it achieved an initial distortion of roughly 36,020, while the full DPP method resulted in 42,841.

Distortion comparison demonstrating that DPP-MC achieves lower clustering error than full DPP.

Automatic $k$ Selection

By sampling from a cardinality-penalized DPP, the algorithm can "discover" the natural number of clusters in a dataset without the user specifying $k$ upfront. On the LET dataset (26 ground-truth clusters), the algorithm successfully recovered $k=26$. On the artificial MG set, it found 34 distinct clusters, whereas the popular DBSCAN algorithm failed, collapsing the data into a single cluster.

Limitations and Future Work

  • Theoretical Validity: As noted by the author post-publication, the proofs for the "rapid mixing" (speed of convergence) are flawed. While the algorithm performs well in practice, the mathematical guarantee of its efficiency is currently unsupported.
  • Sample Correlation: Because MCMC generates a sequence of samples where each depends on the previous one, the samples are correlated. Future work is needed to determine how many steps are required to get truly independent samples.
  • Scaling with Subset Size: While the method is sub-cubic in $n$, it is still quadratic in the size of the subset $T$. If a user needs to sample very large subsets, the $O(T^2)$ update cost could still become a significant bottleneck.

Summary updated

BibTeX
@inproceedings{kang2013fast,
  author = {Byungkon Kang},
  title = {{Fast Determinantal Point Process Sampling with Application to Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
}
Figure