Deep Matrix Factorization Models for Recommender Systems

Hong-Jian Xue, Xinyu Dai, Jianbing Zhang, Shujian Huang, Jiajun Chen

Introduction

Recommender systems are pivotal in navigating the vast information landscape of modern digital platforms. Traditionally, Matrix Factorization (MF) has been the cornerstone of collaborative filtering, mapping users and items into a shared latent space. However, standard MF models often struggle with two primary challenges: capturing complex, non-linear relationships between users and items, and effectively integrating both explicit (ratings) and implicit (interactions) feedback.

The Deep Matrix Factorization (DMF) Architecture

To address these limitations, the authors propose Deep Matrix Factorization (DMF). This model moves beyond simple linear embeddings by employing a dual-tower neural network architecture that learns sophisticated representations of users and items.

Architecture of the Deep Matrix Factorization (DMF) model, illustrating the dual-tower structure and the use of interaction vectors as input.

Dual-Tower Representation Learning

Unlike traditional MF which uses one-hot IDs, DMF utilizes the raw interaction vectors—rows and columns of the rating matrix $Y$—as inputs. This approach provides a "global context," where a user's input is their entire history of ratings, and an item's input is its history of being rated. These vectors are passed through separate multi-layer non-linear projections (layers 1 to $N$) with ReLU activations to produce latent representations $p_i$ and $q_j$.

Cosine Similarity and NCE Loss

The final relevance score $S$ is calculated using the cosine similarity between the user and item latent vectors. A critical innovation in DMF is the Normalized Cross Entropy (NCE) loss function. By normalizing explicit ratings (e.g., dividing by the maximum rating), the model can treat the recommendation task as a classification problem that respects the magnitude of user preferences while accounting for the binary nature of implicit feedback.

Experimental Evaluation

The model was rigorously tested on four benchmark datasets: MovieLens 100K, MovieLens 1M, Amazon Music, and Amazon Movies. These datasets represent varying scales and levels of sparsity, providing a robust testing ground for the DMF approach.

The Impact of Model Depth

A key finding of the study is the significant performance gain achieved by increasing the depth of the neural networks. Moving from a single-layer model to a two-layer architecture consistently improved both ranking quality (NDCG) and accuracy (Hit Ratio).

Performance comparison (NDCG and HR) across iterations, showing the benefits of multi-layer architectures over single-layer baselines.

Key Results and Insights

The DMF-2-nce variant (2 layers with NCE loss) emerged as the top performer, outperforming state-of-the-art baselines like NeuMF and eALS. Specifically, DMF demonstrated an average improvement of 5.1% in NDCG and 3.8% in Hit Ratio over NeuMF.

The success of DMF is attributed to two main factors:

  1. Rich Input Features: Using the interaction matrix directly as input provides a more informative starting point than random initialization.
  2. Non-linear Modeling: The multi-layer structure allows the model to learn intricate patterns in user-item interactions that linear models miss.

Conclusion and Future Directions

Deep Matrix Factorization represents a significant step forward in neural recommendation. By combining global interaction context with non-linear deep learning and a specialized loss function, it bridges the gap between different feedback types. Future research may explore scaling these models to even larger datasets, investigating pair-wise loss functions, and incorporating auxiliary data like social graphs or item metadata to further enhance recommendation quality.

Summary updated

BibTeX
@inproceedings{xue2017deep,
  author = {Hong-Jian Xue and Xinyu Dai and Jianbing Zhang and Shujian Huang and Jiajun Chen},
  title = {{Deep Matrix Factorization Models for Recommender Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/447},
}
Figure