Abstract
Rating and recommendation systems have become a popular application area for applying a suite of machine learning techniques. Current approaches rely primarily on probabilistic interpretations and extensions of matrix factorization, which factorizes a user-item ratings matrix into latent user and item vectors. Most of these methods fail to model significant variations in item ratings from otherwise similar users, a phenomenon known as the "Napoleon Dynamite" effect. Recent efforts have addressed this problem by adding a contextual bias term to the rating, which captures the mood under which a user rates an item or the context in which an item is rated by a user. In this work, we extend this model in a nonparametric sense by learning the optimal number of moods or contexts from the data, and derive Gibbs sampling inference procedures for our model. We evaluate our approach on the MovieLens 1M dataset, and show significant improvements over the optimal parametric baseline, more than twice the improvements previously encountered for this task. We also extract and evaluate a DBLP dataset, wherein we predict the number of papers co-authored by two authors, and present improvements over the parametric baseline on this alternative domain as well.
Introduction
Standard collaborative filtering typically relies on Matrix Factorization (MF), decomposing a user-item rating matrix into latent vectors representing user preferences and item characteristics. However, these models often struggle with the "Napoleon Dynamite" effect, where an item polarizes similar users due to unobserved factors. This discrepancy is often rooted in context: a user's rating is influenced by their current "mood" or the specific "context" of the item.
While previous models like Mixed Membership Matrix Factorization (M3F) attempted to account for this by adding a contextual bias term, they required the number of possible moods or topics to be manually pre-set. The Infinite Mixed Membership Matrix Factorization (iM3F) model addresses this limitation by using a nonparametric Bayesian approach to automatically learn the optimal number of contexts from the data.
Methodology
The iM3F model introduces a nonparametric extension to M3F by employing a Hierarchical Dirichlet Process (HDP) prior. This "infinite" approach allows the data to dictate the number of latent topics rather than relying on fixed parameters.
Key technical components include:
- Contextual Bias: Ratings are generated based on the standard inner product of user/item vectors plus a bias term determined by the user's "mood" and the item's "context."
- Chinese Restaurant Franchise (CRF): Inference is performed using the CRF metaphor, where users are restaurants and ratings are customers. This allows topics to be shared globally while maintaining unique proportions for individual users.
- Gibbs Sampling: A specific sampling procedure was derived to estimate model parameters and topic assignments from observed ratings.
Experimental Evaluation
The model was evaluated on the MovieLens 1M dataset and a DBLP co-authorship dataset. In the DBLP case, the "rating" represented the number of papers co-authored by two individuals, testing the model's ability to generalize to relational data.
Key Results
- Predictive Accuracy: On MovieLens 1M, iM3F achieved a Root Mean Square Error (RMSE) of 0.7718, significantly outperforming the parametric M3F baseline (0.7783). The improvement was more than double the gain previously seen in the transition from standard PMF to M3F.
- Topic Discovery: The model discovered that the optimal number of topics was often much higher than typically chosen for parametric models. For the DBLP data, iM3F identified 23 user topics and 27 item topics, compared to the 2 user and 1 item topic used in previous literature.
Conclusion and Future Work
The iM3F model demonstrates that allowing a model to learn its own complexity leads to superior predictive performance. By clustering rating residuals—the nuances standard matrix factorization misses—the model effectively captures the "mood" behind user interactions.
Future work will address the computational cost associated with Gibbs sampling in nonparametric models. Potential avenues include exploring distributed MCMC or variational inference to scale the model to the billions of ratings found in modern production systems. Additionally, the authors suggest a "Relational iM3F" to better handle the bidirectional nature of datasets like DBLP.
Summary updated