Scalable Recommendation with Poisson Factorization

Prem Gopalan, Jake M. Hofman, David M. BleiarXiv 2013

Introduction

Modern recommendation systems face the daunting task of processing massive, sparse datasets where millions of users interact with millions of items. Traditional approaches, primarily based on Matrix Factorization (MF) with Gaussian assumptions, often struggle with the extreme sparsity and skewed distributions characteristic of real-world data. This paper introduces Hierarchical Poisson Factorization (HPF), a probabilistic model designed to overcome these hurdles by leveraging the Poisson distribution and hierarchical priors.

Addressing the "Zero" Problem and the Long Tail

Standard recommendation models often treat the absence of an interaction (a "zero" in the user-item matrix) as a signal of dislike. However, in implicit feedback scenarios—such as clicks, views, or purchases—a zero more likely indicates that a user simply hasn't discovered the item yet. Furthermore, real-world data exhibits a "long tail": a small number of power users and blockbuster items account for a huge portion of activity, while the vast majority of users and items have very few interactions.

User activity distribution on Netflix. HPF (solid red) accurately captures the empirical distribution of user activity (black dots), whereas standard Matrix Factorization (dashed blue) fails to model the heterogeneity of the user base.

HPF addresses these issues by modeling interactions as Poisson-distributed counts. This mathematical choice naturally accounts for the "attention budget" of users and ensures that the model's complexity scales only with the number of observed interactions, rather than the total number of possible user-item pairs.

The HPF Model

The core of HPF is the assumption that an interaction $y_{ui}$ between user $u$ and item $i$ is drawn from a Poisson distribution: $$y_{ui} \sim \text{Poisson}(\theta_u^T \beta_i)$$ where $\theta_u$ represents latent user preferences and $\beta_i$ represents latent item attributes.

To handle the long tail, the authors introduce a hierarchical structure:

  • Hierarchical Priors: The model includes "activity" and "popularity" parameters that allow it to automatically adjust for how active a user is or how popular an item is.
  • Gamma Distributions: Latent factors are governed by Gamma priors, which encourage sparsity. This reflects the reality that most users are interested in only a few niches, and most items possess only a few defining characteristics.
  • Efficient Inference: The authors derive a mean-field variational inference algorithm. This approach turns the learning process into a coordinate ascent optimization, making it significantly faster and more scalable than traditional simulation-based methods like MCMC.

Key Results and Scalability

The authors evaluated HPF against several massive datasets, including Mendeley (scientific articles), Echo Nest (music), and Netflix (movies). Across all benchmarks, HPF and its simpler variant, Basic Poisson Factorization (BPF), consistently outperformed industry standards such as Latent Dirichlet Allocation (LDA), Non-negative Matrix Factorization (NMF), and standard Probabilistic Matrix Factorization (MF).

Predictive performance across multiple datasets. HPF (solid red) consistently achieves higher mean normalized precision and recall than competing methods across diverse domains.

Beyond accuracy, HPF demonstrates remarkable scalability. The algorithm converged on the full Netflix dataset—comprising 100 million observations—in less than 13 hours on a single CPU. This efficiency makes it a practical choice for production-scale recommendation engines.

Conclusion and Future Directions

Hierarchical Poisson Factorization provides a robust, scalable, and accurate framework for recommendation. By embracing the sparsity of user-item interactions and modeling the inherent heterogeneity of user behavior, HPF sets a new standard for collaborative filtering on massive datasets. Future work may involve incorporating side information to address the "cold start" problem for brand-new users and extending the model to capture dynamic, evolving user interests over time.

Summary updated

BibTeX
@misc{gopalan2013scalable,
  author = {Prem Gopalan and Jake M. Hofman and David M. Blei},
  title = {{Scalable Recommendation with Poisson Factorization}},
  year = {2013},
  eprint = {1311.1704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1311.1704},
}
Figure