Online Prediction of Dyadic Data with Heterogeneous Matrix Factorization

Guangyong Chen, Fengyuan Zhu, Pheng-Ann HengarXiv 2016

Abstract

Dyadic Data Prediction (DDP) is a critical challenge in various domains, notably in collaborative filtering and recommendation systems. This paper introduces a novel, fully Bayesian nonparametric framework termed Heterogeneous Matrix Factorization (HeMF). HeMF integrates discrete mixed membership modeling with continuous latent factor modeling, enabling the accurate prediction of unobserved dyadic values. By leveraging a Coupled Dirichlet Process, the model automatically identifies the optimal number of communities and efficiently exploits the latent linear structures within each bicluster. We propose a Variational Bayesian (VB) approach for parameter estimation and further develop an Online Variational Bayesian (oVB) method to handle large-scale, streaming data. Evaluations on benchmarks such as MovieLens and the Netflix Prize dataset demonstrate that HeMF outperforms state-of-the-art methods in both accuracy and robustness, particularly when compared to Stochastic Gradient Descent (SGD) in online learning scenarios.

Introduction

The task of predicting missing links or values between two sets of objects—known as Dyadic Data Prediction (DDP)—is fundamental to modern data science. Traditional approaches, such as standard Matrix Factorization (MF), often assume that all users and items are drawn from a single, global distribution. However, real-world data is inherently heterogeneous; users belong to distinct sub-communities with varying preferences, and items fall into diverse categories. Forcing these heterogeneous groups into a single latent space often results in suboptimal predictive performance. Furthermore, the massive scale and streaming nature of contemporary datasets necessitate online learning algorithms that can update models incrementally without the need for full-batch retraining.

Heterogeneous Matrix Factorization (HeMF)

The proposed HeMF model addresses the heterogeneity problem by combining the strengths of clustering and latent factor models. It utilizes a Coupled Dirichlet Process Mixture Model (DPMM) to partition users and items into communities. Because it is a Bayesian nonparametric approach, the number of communities is not a fixed hyperparameter but is instead learned directly from the data. This allows for a more flexible representation of the underlying data structure.

The probabilistic graphical model of the Heterogeneous Matrix Factorization (HeMF) framework.

The graphical model depicted above shows the hierarchical structure of HeMF. The model captures both the global community memberships and the local latent features within those communities, providing a "best of both worlds" approach to matrix factorization.

Online Variational Bayesian Inference

To scale HeMF to large, streaming datasets, we introduce an Online Variational Bayesian (oVB) inference method. Unlike batch VB, which requires the entire dataset to be processed simultaneously, oVB updates the posterior distributions of the model parameters as new observations arrive. This sequential update mechanism is crucial for real-time recommendation systems.

Visualization of dyadic matrix evolution and submatrix decomposition over time steps t, t+1, and t+2.

As illustrated in the figure above, the model maintains and updates submatrices representing different communities over time. When a new user or item appears that does not fit existing clusters, the Dirichlet Process allows the model to dynamically instantiate a new community. This organic growth ensures that the model remains expressive as the data distribution evolves.

Experimental Evaluation

We conducted extensive experiments on four major collaborative filtering datasets: MovieLens (1M and 21M), EachMovie, and the Netflix Prize.

  • Predictive Accuracy: HeMF consistently achieved lower Root Mean Square Error (RMSE) than existing baselines. For instance, on the MovieLens 1M dataset, HeMF-bVB reached an RMSE of 0.8311, surpassing the $M^3F$ model's 0.8478.
  • Online Performance: In streaming tests on the 100M-rating Netflix dataset, the oVB method exhibited a stable, downward trend in error. In contrast, Stochastic Gradient Descent (SGD) proved erratic, often suffering from overfitting as more data was processed sequentially.
  • Hyperparameter Tuning: The inclusion of an Empirical Variational Bayesian (eVB) step allowed for the automatic tuning of hyperparameters, further enhancing the model's robustness and ease of use.

Conclusion

Heterogeneous Matrix Factorization (HeMF) represents a significant advancement in dyadic data prediction. By unifying community detection with latent factor modeling and providing a stable online inference algorithm, HeMF offers a scalable and accurate solution for complex recommendation tasks. The model's ability to automatically determine its own complexity makes it highly adaptable to a wide range of real-world applications, from bioinformatics to large-scale web analytics.

Summary updated

BibTeX
@misc{chen2016online,
  author = {Guangyong Chen and Fengyuan Zhu and Pheng-Ann Heng},
  title = {{Online Prediction of Dyadic Data with Heterogeneous Matrix Factorization}},
  year = {2016},
  eprint = {1601.03124},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1601.03124},
}
Figure