recbole.CFKG
A knowledge-graph recommender that treats each relation as a translation between entity embeddings.
Tabular and recommender · 7 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
- 2.3M
- Operations
- 7
- Framework
- PyTorch
- Recurrent
- No
- Published
- Algorithms 11(9) 2018
- Cited by
- 482 (as of 22 October 2026)
- Authors
- Qingyao Ai, Vahid Azizi, Xu Chen, Yongfeng Zhang
- Source
- GitHub: RUCAIBox/RecBole
- 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
- m8592
- Graph hash
- cd083d49d0a618240b97c5adf88560b868141ca80bde779bb3244079134117f8
- Skeleton hash
- 2b9ce0528765f4d1496f2e6de73f7826edff9088f8ae0cc5a379bbf5df972cb6
- Architecture hash
- 66018e20dbf1a0d22b59ba66441738e1835f3638992f016e0d990e9877d34160
- Diagram SHA-256
- dba23436ae300bef8f6f3260744c413c05e75831e5d7eca538a669ed10f07afd
- 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
CFKG is a recommender that learns from a knowledge graph of users, items and other entities; the paper calls its approach Explainable CF over Knowledge Graph (ECFKG). Its main building block is an integration of traditional collaborative filtering (CF) with the learning of knowledge-base embeddings. A user-item knowledge graph encodes what is known about user behaviors and item properties as a relational graph structure.
In the model, each entity is represented with a latent vector, and each relation is a linear translation from one entity to another, parameterized by the relation embedding. Training maximizes the likelihood of all observed relation triplets. The authors also tested the L2-norm loss function used in the TransE model and report that it gave no improvement over their inner product-based model with log-likelihood loss.
To explain a recommendation, a soft matching algorithm finds explanation paths between a user and the recommended items in the latent embedding space. Experiments use the 5-core data of CDs and Vinyl, Clothing, Cell Phones, and Beauty from the Amazon review dataset. The paper reports NDCG improvements over its best baseline, JRL, of 5.6% on CDs and Vinyl, 78.16% on Clothing, 23.05% on Cell Phones, and 45.56% on Beauty.
Key idea. The paper learns knowledge-base embeddings of heterogeneous entities for recommendation and adds a soft matching algorithm that generates personalized explanations for recommended items.
- CFKG
- ECFKG
- collaborative filtering over knowledge graph
- explainable recommendation
- knowledge base embedding
- knowledge graph recommendation
- RecBole CFKG
- knowledge-aware recommender
- recommender system
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{ai2018learningheterogeneousknowledgebase,
title={Learning Heterogeneous Knowledge Base Embeddings for Explainable Recommendation},
author={Qingyao Ai and Vahid Azizi and Xu Chen and Yongfeng Zhang},
year={2018},
eprint={1805.03352},
archivePrefix={arXiv},
primaryClass={cs.IR},
doi={https://doi.org/10.3390/a11090137},
url={https://arxiv.org/abs/1805.03352},
}