Neural Collaborative Filtering
A neural network replaces the dot product of matrix factorization; NeuMF fuses GMF with an MLP.
Tabular and recommender · 13 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 31.7K
- Operations
- 13
- Framework
- PyTorch
- Recurrent
- No
- Published
- WWW 2017
- Cited by
- 199 (as of 17 October 2026)
- Authors
- Xiangnan He, Lizi Liao, Hanwang Zhang and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m1884
- Graph hash
- 9ea5f53695425a4509852618a6ab911db238ae7fcd5a57b2393f5810a39f2dcf
- Skeleton hash
- 5ef00c7866cdc3c295da1c885a5c7cfdb0c218eb7d597c5835c20eef69d5b18c
- Architecture hash
- a28899eb13c34097aad383d517b225e61132ccd24b140608aa4d05147b458639
- Diagram SHA-256
- 2331a0b9a960cc2cf76b478bdd22c16cc63091a48c8d7418704bfec3f51f8ffa
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Neural Collaborative Filtering (NCF) is a framework for recommendation from implicit feedback that replaces the inner product of matrix factorization with a neural network that learns the user and item interaction function from data. The model takes only the identity of a user and an item, encoded as one-hot sparse vectors, embeds each one, and predicts a score for the pair. Recommendation with implicit feedback is treated as binary classification, so the score is the predicted probability that the user interacted with the item.
The framework has three instantiations: Generalized Matrix Factorization (GMF), a Multi-Layer Perceptron (MLP) and Neural Matrix Factorization (NeuMF). GMF applies a linear kernel to the element-wise product of the user and item embeddings and generalizes plain matrix factorization. The MLP path concatenates the two embeddings and stacks ReLU hidden layers in a tower pattern that halves the width at each successive layer. NeuMF fuses the two paths: GMF and MLP learn separate embeddings and their last hidden layers are concatenated before the output layer. NeuMF can also be initialized from pretrained GMF and MLP models.
The captured member is the NeuMF model from the microsoft/recommenders library, where NCF is listed as a deep learning algorithm for user and item implicit feedback that scores one user and item pair at a time.
Key idea. Replacing the inner product of matrix factorization with a learned neural interaction function, and fusing a linear GMF path with a non-linear MLP path in NeuMF.
- neural collaborative filtering
- NeuMF
- generalized matrix factorization
- implicit feedback
- user and item embeddings
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{he2017neuralcollaborativefiltering,
title={Neural Collaborative Filtering},
author={Xiangnan He and Lizi Liao and Hanwang Zhang and Liqiang Nie and Xia Hu and Tat-Seng Chua},
year={2017},
eprint={1708.05031},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/1708.05031},
}