[Paper Review] Neural Network Matrix Factorization
This paper proposes Neural Network Matrix Factorization (NNMF), a method that replaces the fixed inner product in traditional matrix factorization with a learnable multi-layer feed-forward neural network to model user-item interactions. NNMF outperforms standard low-rank methods like PMF and BiasedMF on benchmark collaborative filtering datasets, though it is surpassed by graph-aware models, indicating significant untapped potential in architectural design and training.
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.
Motivation & Objective
- To improve upon traditional low-rank matrix factorization by replacing the fixed inner product with a learnable neural network function.
- To investigate whether learning a non-linear function via neural networks enhances predictive performance in sparse, relational data such as user-item ratings.
- To explore the potential of combining latent feature learning with end-to-end neural network optimization in a joint, alternating fashion.
- To assess the scalability and performance of NNMF relative to state-of-the-art models like NTN, AutoRec, and LLORMA on standard collaborative filtering benchmarks.
Proposed method
- Replace the inner product $ U_n^T V_m $ in standard matrix factorization with a multi-layer feed-forward neural network $ f_\theta(U_n \circ V_m) $, where $ \circ $ denotes element-wise multiplication.
- Optimize the neural network weights $ \theta $ and latent feature vectors $ U_n, V_m $ via alternating gradient descent: fix features to train the network, then fix the network to update features.
- Apply $ \ell_2 $-regularization to latent feature vectors and tune the regularization parameter $ \lambda $ via validation set performance.
- Use a sigmoid nonlinearity on the output layer to constrain predictions to $[0,1]$, aligning with rating scales in datasets like MovieLens.
- Train using standard stochastic gradient descent with mini-batches for large-scale datasets like ML-1M to manage memory constraints.
- Evaluate model performance using RMSE on test sets, comparing against PMF, BiasedMF, NTN, RFM, LLORMA, and AutoRec using consistent hyperparameters and cross-validation.
Experimental results
Research questions
- RQ1Can a learnable, non-linear function via a neural network improve predictive performance over the fixed inner product in matrix factorization for collaborative filtering?
- RQ2How does NNMF compare to established models like PMF, BiasedMF, and NTN in terms of RMSE on standard benchmark datasets?
- RQ3Does deeper network architecture (e.g., 4-layer networks) improve performance, and what is the trade-off between depth, width, and generalization?
- RQ4To what extent can architectural choices, activation functions, and regularization strategies further enhance NNMF’s performance beyond current results?
- RQ5Can local variants of NNMF, analogous to local versions of PMF (e.g., LLORMA), outperform global models in sparse, high-dimensional settings?
Key findings
- NNMF achieves state-of-the-art performance among latent feature models on the MovieLens and Protein datasets, outperforming PMF, BiasedMF, and RFM.
- On the ML-100K dataset, NNMF achieves an RMSE of 0.875, significantly lower than PMF’s 0.901 and BiasedMF’s 0.894.
- NNMF outperforms the NTN model, which has roughly 20 times more parameters (180,000 vs. ~9,000), suggesting that parameter efficiency and architecture design matter more than sheer capacity.
- The 4-hidden-layer NNMF variant with 20 units per layer and $ (D, D') = (10, 80) $ showed better performance than shallower or wider configurations, though deeper networks may saturate or overfit without careful initialization and regularization.
- Adding bias correction terms to NNMF improved performance by ~0.003 RMSE, but the improvement was small and not robust across datasets.
- Despite strong performance, NNMF is dominated by graph-aware models like AutoRec and local versions of LLORMA, suggesting that incorporating local structural information remains a key advantage in collaborative filtering.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.