Hierarchical Negative Binomial Factorization for Recommender Systems on Implicit Feedback

Li-Yen Kuo, Ming-Syan Chen

Introduction

In the landscape of modern recommender systems, implicit feedback—such as click counts, play durations, or purchase history—has become the primary source of data. Unlike explicit ratings, implicit data is abundant but presents unique challenges. Two major hurdles are overdispersion and the ambiguity of zeros. Real-world consumption typically follows a power-law distribution where a small number of "super-users" or "viral items" create massive outliers. Standard Poisson-based models, which assume variance equals the mean, often struggle with such extreme values. Furthermore, a zero entry in a utility matrix is ambiguous: it could mean a user dislikes an item (failure exposure) or simply hasn't encountered it yet.

Researchers from National Taiwan University have introduced Hierarchical Negative Binomial Factorization (HNBF) to address these issues. By modeling "failure exposure" as a latent hierarchical variable rather than a constant, HNBF improves accuracy on overdispersed data while maintaining the scalability required for industrial-scale datasets.

The HNBF Model

The core innovation of HNBF is the replacement of the standard Poisson distribution with a Negative Binomial (NB) distribution. In an NB distribution, the variance can exceed the mean, providing the flexibility needed to handle overdispersed count data.

A key parameter in the NB distribution is the "Failure Exposure Count" (FEC). While previous models treated FEC as a fixed hyperparameter, HNBF treats it as a latent variable within a hierarchical Gamma-NB structure. This allows the model to learn and adapt to individual user behaviors and item characteristics. Specifically, the model distinguishes between a user's lack of interest and a lack of exposure, leading to more nuanced recommendations.

Graphical models for HNBF and its accelerated version, FastHNBF.

Scaling with FastHNBF

A significant challenge with Negative Binomial models is computational complexity. Processing millions of zero entries in a utility matrix typically requires $O(M \times N)$ calculations, which is prohibitive for large datasets. To overcome this, the authors developed FastHNBF.

FastHNBF factorizes the dispersion of zero entries into two low-rank matrices. This mathematical optimization reduces the update time to be linear relative to the number of nonzero entries ($O(|X^+|)$). This efficiency makes the model competitive with Poisson-based methods like Hierarchical Poisson Factorization (HPF) while offering the robustness of the NB distribution.

Experimental Evaluation

The authors evaluated HNBF and FastHNBF across eight diverse datasets, including Last.fm (music plays) and MovieLens (movie ratings). Large-scale tests on Last.fm360K and MovieLens20M (each with ~20M entries) were used to verify scalability.

Key Results

  1. Superior Accuracy: On implicit count datasets like Last.fm, FastHNBF consistently outperformed state-of-the-art Poisson-based methods (HPF, NBF) across metrics such as Precision@5 and nDCG@5.
  2. Scalability: On the largest datasets, Gaussian-based baselines like Weighted Matrix Factorization (WMF) and ExpoMF often failed due to memory constraints. FastHNBF ran successfully, demonstrating its viability for production environments.
  3. Robustness to Long Tails: The experiments highlighted that HNBF is particularly effective at capturing the distribution of item popularity and user activity, especially in "tall-and-skinny" datasets with many users but relatively few items.
Comparison of item popularity and user activity distributions across different models and datasets.

Conclusion

Hierarchical Negative Binomial Factorization represents a significant step forward in modeling implicit feedback. By treating failure exposure as a latent variable and utilizing a "fast" factorization for zero entries, the authors have created a model that is both highly accurate and industrially scalable. The Gamma-NB structure introduced here is generic and holds potential for other domains dealing with overdispersed count data, such as ad-click prediction or insurance demand analysis.

Summary updated

BibTeX
@inproceedings{kuo2021hierarchical,
  author = {Li-Yen Kuo and Ming-Syan Chen},
  title = {{Hierarchical Negative Binomial Factorization for Recommender Systems on Implicit Feedback}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16541},
}
Figure