Dynamic Matrix Factorization with Priors on Unknown Values

Robin Devooght, Nicolas Kourtellis, Amin Mantrach

Abstract

Advanced and effective collaborative filtering methods based on explicit feedback assume that unknown ratings do not follow the same model as the observed ones (not missing at random). In this work, we build on this assumption, and introduce a novel dynamic matrix factorization framework that allows to set an explicit prior on unknown values. When new ratings, users, or items enter the system, we can update the factorization in time independent of the size of data (number of users, items and ratings). Hence, we can quickly recommend items even to very recent users. We test our methods on three large datasets, including two very sparse ones, in static and dynamic conditions. In each case, we outrank state-of-the-art matrix factorization methods that do not use a prior on unknown ratings.

Introduction

In recommender systems, we typically observe only a tiny fraction of potential user-item interactions. Standard Matrix Factorization (MF) models often treat missing data as Missing At Random (MAR), focusing training solely on observed positive signals. However, real-world data is Not Missing At Random (NMAR). Users exhibit selection bias, choosing items they expect to enjoy. Consequently, an unobserved item is statistically more likely to be a poor match than a hidden gem.

This paper addresses two critical challenges: modeling the inherent "missingness" of data to improve ranking accuracy and developing a framework fast enough to handle continuous streams of new users and ratings without expensive batch retraining.

Methodology

The core innovation is a novel objective function that incorporates an explicit "low-value" prior for unknown ratings. The loss function includes a standard term for observed ratings and a second term that drives the reconstruction of unknown ratings toward a prior estimate $\hat{r}_0$ (typically 0).

The Sparsity Trick

Summing over every unknown user-item pair normally requires $O(nmk)$ time, where $n$ is users, $m$ is items, and $k$ is latent features. To make this computationally feasible for large-scale systems, the authors reformulate the sum over unknown ratings as the difference between the sum over all possible ratings and the sum over known ratings. This reduces complexity to $O(|R|k + (n+m)k^2)$.

Dynamic Updates

The framework utilizes Randomized Block Coordinate Descent with line search, ensuring convergence without manual learning rate tuning. Crucially, the update algorithm allows for updating specific user or item latent features in time proportional only to their individual number of ratings, making update speed independent of the total dataset size.

Experimental Results

The approach was evaluated on three datasets: Movielens (1M), FineFoods (Amazon), and AmazonMovies.

Performance and Stability

In dynamic streaming environments, the Squared Loss with a prior (SL w/ prior) demonstrated superior stability and ranking performance. As shown in Figure 1, the inclusion of a prior consistently maintains higher AUC across all datasets compared to models that ignore unknown values or use standard SGD-based approaches like Vowpal Wabbit.

AUC performance over time across three datasets, comparing models with and without priors.

The Cost of Delay

A key insight of the research is the impact of real-time updates on "cold" or weakly-engaged users. For users with very few ratings, even a small delay in updating the model significantly degrades recommendation quality. In the FineFoods dataset, a delay of just 5-10 ratings before an update resulted in a 10% drop in AUC (see Figure 2).

Impact of update delay on AUC for cold users in FineFoods and Movielens datasets.

Conclusion

By treating selection bias as a signal rather than noise, this dynamic matrix factorization framework significantly improves ranking performance. The "zero" prior acts as a powerful regularizer, preventing latent features from over-fitting to the small subset of items a user has interacted with. Future work may explore adaptive influence ratios ($\rho$) tailored to specific users or items and more sophisticated initialization strategies for brand-new users.

Summary updated

BibTeX
@inproceedings{devooght2015dynamic,
  author = {Robin Devooght and Nicolas Kourtellis and Amin Mantrach},
  title = {{Dynamic Matrix Factorization with Priors on Unknown Values}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2015},
  url = {https://openreview.net/forum?id=r1ZBxSZ_WS},
}
Figure