recbole.DMF
A neural matrix factorization model that scores a user-item pair by the cosine similarity of two MLP towers.
Tabular and recommender · 38 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
- 184.8K
- Operations
- 38
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCAI 2017
- Cited by
- 982 (as of 22 October 2026)
- Authors
- Hong-Jian Xue, Xinyu Dai, Jianbing Zhang and others
- Source
- recbole 1.2.1
- 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
- m8602
- Graph hash
- a2acc33ac3e4834048607d9b59ff20f8a2e8948c640e56c1be909d7edfffa3fc
- Skeleton hash
- bcbb6963bdf5023613622a0d70a3808227bc67d36b089f5e6186fa00ce5977cf
- Architecture hash
- 4d1887f380bce8a2606bc285e5881997aafbe428be0671252483631b22a2f60a
- Diagram SHA-256
- b81c5d4caf788bc088a8272ca69bbe9cfcca100600d9ffd36f0d0c9e7d0da1d7
- 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
DMF (Deep Matrix Factorization) is a recommender model that carries out matrix factorization with a neural network. Its input is the user-item interaction matrix itself: each user is represented by that user's ratings across all items, and each item by its ratings across all users. Two multi-layer networks, one for users and one for items, transform these vectors into a low-dimensional latent space. The predicted score for a user-item pair is the cosine similarity of the two resulting vectors.
The paper says the architecture is inspired by the deep structured semantic models used for web search. The authors state that, to their knowledge, it was the first time the interaction matrix was used directly as the input for representation learning. They also design a loss that brings explicit ratings into the cross entropy loss so that explicit and implicit information are used together, and name it the normalized cross entropy loss.
On four datasets from MovieLens and Amazon, the paper reports that its two-layer model with this loss improved on NeuMF-p by a relative 2.5-7.4% in NDCG and 1.4-6.8% in HR, both measured at 10. In its depth experiments, deeper networks did not help, and a 3-layer model decreased performance.
Key idea. The paper feeds rows and columns of the user-item interaction matrix through two multi-layer networks and scores each pair by cosine similarity in a shared low-dimensional space.
- DMF
- Deep Matrix Factorization
- deep matrix factorization models
- neural matrix factorization
- matrix factorization
- recommender system
- collaborative filtering
- top-N recommendation
- implicit feedback
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Xue_2017, series={IJCAI-2017}, title={Deep Matrix Factorization Models for Recommender Systems}, url={http://dx.doi.org/10.24963/ijcai.2017/447}, DOI={10.24963/ijcai.2017/447}, booktitle={Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence}, publisher={International Joint Conferences on Artificial Intelligence Organization}, author={Xue, Hong-Jian and Dai, Xinyu and Zhang, Jianbing and Huang, Shujian and Chen, Jiajun}, year={2017}, month=Aug, pages={3203–3209}, collection={IJCAI-2017} }