Faster Greedy MAP Inference for Determinantal Point Processes

Insu Han, Prabhanjan Kambadur, KyoungSoo Park, Jinwoo Shin

Determinantal Point Processes (DPPs) are elegant probabilistic models widely used in machine learning to select subsets of items that are both high-quality and diverse. They naturally model "repulsive" behavior—if you’ve already picked one item, you’re less likely to pick a very similar one. This makes them ideal for tasks like document summarization, image collection browsing, and recommendation systems.

However, while many DPP tasks are computationally straightforward, finding the Maximum A Posteriori (MAP) configuration—the single most likely subset—is NP-hard. This paper introduces highly efficient greedy algorithms that reduce the computational complexity of MAP inference from $O(d^4)$ to $O(d^3)$, achieving up to a 19x speedup on large-scale datasets with negligible loss in accuracy.

The Bottleneck in Standard Greedy Inference

Because exact MAP inference is NP-hard, researchers typically rely on "greedy" algorithms. These algorithms pick items one by one to maximize the incremental gain in the log-determinant of the feature matrix.

Unfortunately, standard greedy implementations are notoriously slow. They require expensive matrix inversions or log-determinant calculations at every single step. For a ground set of $d$ items, this leads to a total runtime of $O(d^4)$. In the "large-scale" regimes common in modern data science, this $O(d^4)$ scaling is a massive bottleneck.

Breaking the Bottleneck: Core Innovations

The authors propose three primary strategies to break the $O(d^4)$ barrier and accelerate inference:

1. First-Order Approximation & Partitioning

Instead of calculating the exact marginal gain for every single candidate item, the authors use a first-order (linear) approximation of the log-determinant function.

The "aha" moment of the paper is the realization that the computation of multiple marginal gains can be amortized. By running a single instance of a linear solver (Conjugate Gradient), the algorithm can estimate the gains for an entire group of items simultaneously. To keep this approximation accurate, the remaining items are partitioned into $p$ clusters, and one linear solve is performed per cluster.

2. Batch-Greedy Strategy

For even larger datasets, the authors move from picking one item at a time to picking a "batch" of $k$ items. This drastically reduces the total number of iterations needed to reach the desired subset size.

3. Shared Randomness in Trace Estimators

When using stochastic methods to estimate log-determinants (specifically the LDAS scheme), the authors discovered that using the same random vectors to compare different subsets significantly reduces variance. Since greedy selection only cares about which item is relatively better than the others, sharing randomness cancels out common biases, leading to much more reliable selections without extra computation.

Key Results

The proposed algorithms were evaluated on synthetic datasets (up to $d=40,000$), matched summarization of political debate transcripts, and video summarization tasks.

Massive Speedups: On synthetic data with 40,000 items, the new "Algorithm 2" was 19 times faster than the standard "Lazy Greedy" baseline. In real-world video summarization tasks, the algorithm achieved a 13x speedup while maintaining, and sometimes even improving, the F-score compared to traditional greedy methods.

Speedup of Algorithm 2 vs Lazy Greedy

Negligible Accuracy Loss: Crucially, this speedup comes at almost no cost to accuracy. In optimization, you don't always need to know the exact absolute value of a function if you can accurately determine which input produces a higher relative value. By leveraging this principle, the log-probability ratio of the new algorithms remained within 98% to 99.8% of the exact baseline.

Log probability ratio showing minimal accuracy loss

Limitations and Future Work

While highly effective, the approach does have a few limitations to consider:

  • Parameter Sensitivity: Performance depends on choosing the right number of partitions ($p$) and batch size ($k$). While the authors provide heuristics, these may require tuning for specific new domains.
  • Marginal Accuracy Loss: There is a non-zero loss in accuracy. For mission-critical applications where the absolute MAP is strictly required, this approximation might be a hurdle.
  • Parallelization: The authors note that their cluster updates are "embarrassingly parallel" since they are independent. However, they did not focus on multi-GPU or distributed implementations in this paper, leaving a highly promising direction for scaling DPPs to millions of items in the future.

Summary updated

BibTeX
@inproceedings{han2017faster,
  author = {Insu Han and Prabhanjan Kambadur and KyoungSoo Park and Jinwoo Shin},
  title = {{Faster Greedy MAP Inference for Determinantal Point Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=HyErOsZdbB},
}
Figure