Abstract
Data often comes in the form of an array or matrix. Matrix factorization techniques attempt to recover missing or corrupted entries by assuming that the matrix can be written as the product of two low-rank matrices. In other words, matrix factorization approximates the entries of the matrix by a simple, fixed function---namely, the inner product---acting on the latent feature vectors for the corresponding row and column. Here we consider replacing the inner product by an arbitrary function that we learn from the data at the same time as we learn the latent feature vectors. In particular, we replace the inner product by a multi-layer feed-forward neural network, and learn by alternating between optimizing the network for fixed latent features, and optimizing the latent features for a fixed network. The resulting approach---which we call neural network matrix factorization or NNMF, for short---dominates standard low-rank techniques on a suite of benchmark but is dominated by some recent proposals that take advantage of the graph features. Given the vast range of architectures, activation functions, regularizers, and optimization techniques that could be used within the NNMF framework, it seems likely the true potential of the approach has yet to be reached.
Introduction
In collaborative filtering and recommender systems, the classic approach is matrix factorization. This method assumes that a user's preference and a movie's attributes can be represented as low-dimensional "latent" vectors, and the predicted rating is simply the inner (dot) product of these two vectors. However, the inner product is a very simple, fixed linear function. This paper explores whether the relationship between latent features is more complex and proposes replacing the rigid inner product with a flexible, learnable multi-layer feed-forward neural network.
Methods
The proposed Neural Network Matrix Factorization (NNMF) model feeds user and item vectors into a multi-layer feed-forward neural network ($f_\theta$).
Key architectural choices include:
- Input Features: The network receives concatenated user and item vectors, along with the element-wise product of an additional set of latent features. This element-wise product acts as an inductive bias, mimicking traditional matrix factorization.
- Optimization: Training involves alternating gradient descent using RMSProp. The process alternates between optimizing network weights ($\theta$) while freezing latent features ($U, V$), and vice versa.
- Regularization: L2 regularization is applied to the latent features to mitigate overfitting given the high expressivity of the neural network.
Datasets
The authors evaluated NNMF on four standard benchmark datasets, ranging from co-authorship graphs to movie rating systems.
- NIPS & Protein: Link prediction tasks involving co-authorship and protein-protein interactions.
- MovieLens 100K & 1M: Standard collaborative filtering benchmarks for movie ratings.
Results
NNMF demonstrates significant improvements over pure latent feature models. By replacing the fixed inner product with a neural network, the model gains the capacity to learn non-linear interactions.
Key Findings:
- Superiority over Baselines: On the NIPS dataset, NNMF achieved an error score of 0.040, significantly lower than Probabilistic Matrix Factorization's (PMF) 0.062. On MovieLens 1M, NNMF (3 hidden layers) achieved an RMSE of 0.846, outperforming PMF (0.883) and BiasedMF (0.852).
- Inductive Bias: Including element-wise products in the input layer was crucial for performance, providing the network with a starting point similar to traditional factorization.
- The Graph-Feature Ceiling: Despite its strength, NNMF was outperformed by models like LLORMA-LOCAL (0.833) and I-AutoRec (0.831) on MovieLens 1M. These models exploit the local graph structure and missing data patterns, which NNMF currently ignores.
Discussion and Future Work
While NNMF is a powerful extension of latent feature models, it faces limitations regarding the non-random pattern of missing data. In real-world scenarios, the choice of which items to rate is informative. Future work could involve developing "local" versions of NNMF to capture these patterns or utilizing adaptive estimation to navigate the vast hyperparameter space of neural architectures. The current results suggest that while learnable interactions are beneficial, integrating graph-aware features remains a critical frontier for performance.
Summary updated