A Tree-Based Method for Fast Repeated Sampling of Determinantal Point Processes

Jennifer Gillenwater, Alex Kulesza, Zelda Mariet, Sergei Vassilvitskii

Introduction

In recommendation systems and search engines, providing a diverse set of results is just as important as providing relevant ones. If a user searches for "TV," showing ten identical models is less helpful than a mix of brands, sizes, and price points.

Determinantal Point Processes (DPPs) are the gold standard for balancing item quality with set diversity. However, standard DPP sampling algorithms scale linearly with the number of items ($N$). For a dataset of a million items, sampling a small set takes seconds—far too slow for live production environments. Furthermore, real-time personalization typically requires re-running expensive preprocessing steps, making it nearly impossible at scale.

This paper introduces a novel tree-based algorithm that slashes the time required to sample from DPPs from linear ($O(N)$) to logarithmic ($O(\log N)$). Crucially, the method also enables efficient, real-time personalization for individual users without prohibitive computational costs.

Methods: A Divide and Conquer Approach

The authors propose a "divide and conquer" approach using a balanced binary tree:

  1. The Tree Structure: A tree is built where each leaf is an item. Every internal node represents a subset of items and stores summary statistics (vectors and matrices) describing the total probability mass and diversity of its descendants.
  2. Sublinear Sampling: Instead of evaluating all $N$ items to pick the next one, the algorithm starts at the root and makes a probabilistic "left or right" decision at each node based on the stored statistics. This reduces the search space from $N$ to $\log N$.
  3. Personalization via Feature Weights: To handle personalization, tree nodes are augmented to store a feature interaction matrix ($\Sigma = \sum bb^\top$). This allows the system to apply user-specific weights to different features (like genre or actor) at query time without rebuilding the tree.
  4. Approximate Sampling: The authors introduce a "short-circuit" rule. If the algorithm determines that the distribution of items in a specific subtree is "nearly uniform" (meaning the items are sufficiently diverse that picking any is acceptable), it stops traversing and picks an item at random, saving further computation.

Key Results and Scalability

The authors evaluated their approach using synthetic datasets and the real-world MovieLens dataset. By moving the complexity into a one-time preprocessing phase ($O(ND^2)$), the per-sample cost drops dramatically.

  • Massive Speedups: On a collection of 100,000 items, the tree-based sampler was over 300 times faster than traditional dual DPP sampling for a sample size of 10.
  • Personalization Efficiency: On the MovieLens dataset, the tree-based method took only 5.8ms to generate a personalized sample, compared to 52.2ms for the traditional personalized approach.
  • Scalability: While traditional methods saw sampling time climb linearly with the ground set size, the tree-based method's runtime remained nearly flat as the number of items increased from $10^3$ to $10^6$.
Sampling time vs Ground set size

Limitations and Trade-offs

While highly efficient for sampling, the tree-based method comes with specific trade-offs:

  • The "D" Penalty: The algorithm is sensitive to the number of features ($D$). The complexity involves $D^2$ or even $D^3$ terms, making it best suited for "low-rank" settings where items are described by dozens, rather than thousands, of features.
  • Memory Overhead: Storing matrices at every node in a large tree requires significantly more memory and preprocessing time than standard methods. For millions of items, this could challenge the RAM limits of a single machine.
Preprocessing time and Memory vs Ground set size
  • Splitting Heuristics: The effectiveness of the approximate sampling depends on how items are grouped into subtrees. The authors suggest that more sophisticated clustering-based tree construction could yield even better results in future work.

Summary updated

BibTeX
@inproceedings{gillenwater2019tree,
  author = {Jennifer Gillenwater and Alex Kulesza and Zelda Mariet and Sergei Vassilvitskii},
  title = {{A Tree-Based Method for Fast Repeated Sampling of Determinantal Point Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure