Fast Greedy MAP Inference for Determinantal Point Process to Improve Recommendation Diversity

Laming Chen, Guoxin Zhang, Eric ZhouNeurIPS 2018

In modern recommendation systems, simply showing the most "relevant" items often leads to a repetitive and monotonous user experience—for instance, recommending a list of ten nearly identical action movies. Determinantal Point Processes (DPPs) are elegant probabilistic models designed to solve this issue by capturing "repulsion" between items, effectively balancing relevance with diversity.

However, finding the most likely set of items—a process known as Maximum A Posteriori (MAP) inference—in a DPP is NP-hard. While a "greedy" approach (picking the best item one by one) is a popular and effective heuristic, it is traditionally too slow for real-time systems. Previous "fast" versions either sacrificed accuracy through approximations or remained too computationally expensive for catalogs containing thousands of items.

This paper introduces a significantly faster, exact implementation of the greedy algorithm for MAP inference in DPPs. By leveraging incremental Cholesky factor updates, the authors reduce the computational complexity to $O(N^2M)$, enabling high-quality, diverse recommendations in large-scale, real-time production environments.

Accelerating Inference with Cholesky Updates

The authors propose a novel algorithm to accelerate greedy MAP inference without losing any accuracy. The core innovation lies in how the algorithm calculates the "marginal gain" of adding a new item to the recommendation list.

Instead of recomputing determinants or matrix inverses from scratch at every step, the algorithm maintains and updates a Cholesky factor incrementally. By viewing the marginal gain through the lens of Cholesky decomposition, the problem transforms from a heavy matrix operation into a series of efficient vector inner products. This reduces the complexity of selecting $N$ items from a pool of $M$ candidates to $O(N^2M)$.

Furthermore, the authors observe that in long recommendation sequences, users only care about local diversity (items near each other on the screen). They adapted their algorithm to enforce diversity only within a sliding window of size $w$, further reducing the computational complexity to $O(wNM)$. To give practitioners control, they also introduce a tunable parameter $ heta$ that explicitly dials the balance between relevance (item scores) and diversity (item similarities).

Key Insights and Results

The researchers evaluated their approach using synthetic datasets to benchmark raw computational speed, as well as the Netflix Prize and Million Song datasets for recommendation quality. They also conducted an online A/B test in a live movie recommendation system (Hulu) to measure real-world user engagement.

Exact is Faster than Approximate

Surprisingly, the authors' exact implementation (FaX) is not only more accurate but also significantly faster than previous state-of-the-art approximate algorithms (like ApX).

Speedup of the exact FaX algorithm compared to Lazy and ApX baselines across different total item sizes.

On synthetic data, the proposed FaX algorithm was roughly 100x faster than the standard "lazy" greedy implementation and 3x faster than the leading approximate method.

Superior Relevance-Diversity Trade-offs

On the Netflix and Million Song datasets, the DPP-based approach provided a superior relevance-diversity trade-off compared to common baselines like Maximal Marginal Relevance (MMR).

Relevance-diversity trade-off (ILMD vs. MRR) on the Netflix Prize dataset, showing DPP outperforming baselines like MMR.

As shown in the Netflix Prize evaluation, the DPP method achieves higher diversity (ILMD) for any given level of relevance (MRR) compared to other standard techniques.

Real-World Impact

The theoretical and offline improvements translated directly to user engagement. In an online A/B test, the algorithm led to a 1.33% increase in titles watched and a 1.52% increase in watch minutes compared to a relevance-only control group, successfully outperforming the MMR baseline in a live production environment.

Limitations and Future Work

While highly effective, the method assumes that a high-quality similarity matrix (kernel) and relevance scores are already available; the performance of the DPP is heavily dependent on how well these inputs are engineered. Additionally, the trade-off parameter $ heta$ currently requires manual adjustment. The authors suggest that automatically learning the optimal trade-off is a promising direction for future research. Finally, while the sliding window algorithm works exceptionally well empirically, a deeper theoretical analysis of its properties remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{chen2018fast,
  author = {Laming Chen and Guoxin Zhang and Eric Zhou},
  title = {{Fast Greedy MAP Inference for Determinantal Point Process to Improve Recommendation Diversity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure