recbole.NPE
A neural embedding recommender that adds item-to-item context to matrix factorization to serve cold users.
Tabular and recommender · 14 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
- 275.8K
- Operations
- 14
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCAI-ECAI 2018
- Cited by
- 22 (as of 19 October 2026)
- Authors
- ThaiBinh Nguyen, Atsuhiro Takasu
- 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
- m8653
- Graph hash
- 666fc6a2a8d580fc803660462c124c82912acff86821fa3e7e19a1661bca6582
- Skeleton hash
- 281127d5b5db2e6a79e53c53960b8721a35cc1984863cea3829a12a1b9e416ad
- Architecture hash
- fd54a20b8e4453241fac6277d772d703a074cde58ac4afc3155f3b5590e1dda2
- Diagram SHA-256
- 9b28f07b1694d20a816ec6af13fad868d625715f5df664afaeceedffd7b9d335
- 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
NPE, the Neural Personalized Embedding model, is a collaborative filtering recommender that improves recommendation performance for cold-users and learns effective representations of items. Matrix factorization methods rely on the interactions between users and items and perform poorly for cold-users, those with little history of such interactions. NPE models a user's click on an item in two terms: the personal preference of the user for the item, and the relationships between this item and other items clicked by the user.
The personal preference term follows matrix factorization, viewing the preference of a user for an item as the inner product of the corresponding factor vectors. The item-relationship term comes from an item-embedding model that generalizes the idea behind word-embedding techniques to click data. Each item has two hidden representations, an embedding vector that accounts for its attributes and a context vector that specifies the items appearing in its context. The model is trained with a binary cross-entropy loss. If the item-relationship term is removed, NPE reduces to an original MF method.
The paper states that NPE outperforms the other competing methods across all datasets for both Recall and nDCG. The differences are much more pronounced for users who have the fewest clicks. In the RecBole implementation, the context representation is the sum of the embeddings of the items in the user's sequence.
Key idea. NPE scores a click as a user-item preference term plus an item-context compatibility term capturing relationships with the user's other clicked items.
- npe
- neural personalized embedding
- collaborative filtering
- cold-start
- item embedding
- implicit feedback
- top-n recommendation
- negative sampling
- recbole
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{nguyen2018npeneuralpersonalizedembedding,
title={NPE: Neural Personalized Embedding for Collaborative Filtering},
author={ThaiBinh Nguyen and Atsuhiro Takasu},
year={2018},
eprint={1805.06563},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/1805.06563},
}