Neural Collaborative Filtering vs. Matrix Factorization Revisited

Steffen Rendle, Walid Krichene, Li Zhang, John R. Anderson

Introduction

In the mid-2010s, the recommendation systems community pivoted toward "Neural Collaborative Filtering" (NCF). The core innovation was replacing the traditional dot product—used to calculate similarity between user and item embeddings—with a Multi-Layer Perceptron (MLP). The rationale was that since MLPs are universal function approximators, they could theoretically learn any similarity function, including the dot product, while potentially uncovering complex non-linear relationships. This paper investigates whether this theoretical flexibility translates to superior performance or if the dot product remains the superior choice.

The Architecture Shift

The fundamental difference between traditional Matrix Factorization (MF) and NCF lies in the "combiner" function. MF uses a simple inner product, whereas NCF concatenates embeddings and passes them through several non-linear layers to produce a score.

Comparison of Dot Product and MLP-based similarity architectures.

Methodology

The researchers conducted a rigorous empirical re-evaluation of the original NCF framework. They replicated experiments on the MovieLens 1M and Pinterest datasets but introduced a "properly tuned" Matrix Factorization baseline. Unlike the original study, this baseline utilized standard logistic loss with L2 regularization and Stochastic Gradient Descent (SGD). Additionally, synthetic stress tests were performed to measure how effectively an MLP can approximate a basic dot product as embedding dimensions ($d$) increase.

Key Results

The empirical findings challenge the perceived superiority of neural architectures in this context. Across both MovieLens and Pinterest datasets, the simple Matrix Factorization baseline consistently outperformed the MLP and the hybrid "NeuMF" model across almost all embedding dimensions.

Performance comparison (HR@10 and NDCG@10) on MovieLens and Pinterest datasets across various embedding dimensions.

The results suggest that the original NCF gains may have stemmed from an under-tuned MF baseline rather than architectural advantages. In synthetic tests, MLPs struggled significantly to learn the dot product, with approximation errors remaining high even with massive training sets. As the embedding dimension $d$ grew, the MLP's performance degraded further, highlighting its inefficiency at learning simple geometric operations.

Insights: Inductive Bias and Production Reality

The paper highlights two critical reasons for these findings:

  1. Inductive Bias: The dot product has a built-in bias perfectly suited for modeling similarity. An MLP lacks this; it must first "learn" the concept of multiplication before it can model preferences, leading to extreme data inefficiency.
  2. Computational Efficiency: In production, dot products are compatible with Maximum Inner Product Search (MIPS), allowing for sub-linear retrieval from millions of items. MLPs require a full forward pass for every item, creating a significant bottleneck for real-time systems.

Conclusion

While deep learning is invaluable for feature extraction and embedding generation, the MLP is often a poor choice for the final similarity combiner. This study serves as a reminder of the importance of rigorous baseline tuning and the enduring effectiveness of simple, mathematically grounded operations like the dot product in recommender systems.

Summary updated

Abstract

Embedding based models have been the state of the art in collaborative filtering for over a decade. Traditionally, the dot product or higher order equivalents have been used to combine two or more embeddings, e.g., most notably in matrix factorization. In recent years, it was suggested to replace the dot product with a learned similarity e.g. using a multilayer perceptron (MLP). This approach is often referred to as neural collaborative filtering (NCF). In this work, we revisit the experiments of the NCF paper that popularized learned similarities using MLPs. First, we show that with a proper hyperparameter selection, a simple dot product substantially outperforms the proposed learned similarities. Second, while a MLP can in theory approximate any function, we show that it is non-trivial to learn a dot product with an MLP. Finally, we discuss practical issues that arise when applying MLP based similarities and show that MLPs are too costly to use for item recommendation in production environments while dot products allow to apply very efficient retrieval algorithms. We conclude that MLPs should be used with care as embedding combiner and that dot products might be a better default choice.
BibTeX
@inproceedings{rendle2020neural,
  author = {Steffen Rendle and Walid Krichene and Li Zhang and John R. Anderson},
  title = {{Neural Collaborative Filtering vs. Matrix Factorization Revisited}},
  booktitle = {RecSys},
  year = {2020},
  url = {https://openreview.net/forum?id=HPejhcCvFZB},
}
Figure