SlideShare a Scribd company logo
1 of 27
Download to read offline
An Empirical Comparison of Knowledge Graph
Embeddings for Item Recommendation
Enrico Palumbo, Giuseppe Rizzo, Raphael Troncy,
Elena Baralis, Michele Osella, Enrico Ferro
MOVIE RECOMMENDATIONS
ITEM RECOMMENDATION
USER
ITEMS
ranking function
ρ (u, i)
0.8
0.6
0.5
0.2ρ(u,i)
CONTENT-BASED FILTERING
JANE
ρ (u, i)
0.8Kill_Bill_Vol.2
Samuel_Jackson
0.0
Content similarities with items liked in the past
COLLABORATIVE FILTERING ρ (u, i)
0.8
0.0
collaborative: users who watch x also like y...
Kill_Bill_Vol.2
Jane
Mark
Taxi_Driver
BEYOND CONTENT-BASED AND COLLABORATIVE...
Content-based
● overspecialization
● new users
● requires item metadata
Collaborative
● new users
● new items
● data sparsity
Hybrid recommender systems
Knowledge Graph
● K = (E, R, O)
● Entities E
● Users U ⊂
● Items I ⊂
●
●
● ⊂
● feedback ⊂
Kill_Bill_Vol.2
Samuel_Jackson
JaneMark
Quentin_Tarantino
Taxi_Driver
Star_Wars_Ep.1
THE_AVENGERS
RECOMMENDATIONS USING A KNOWLEDGE GRAPH
Item recommendation as a
knowledge graph completion
problem!
Knowledge Graph Embeddings
Kill_Bill_Vol.2
Samuel_Jackson
Jackie_BrownJaneMark
Quentin_Tarantino
Quentin_Tarantino
Mark
Jane
Jackie_Brown
Samuel_Jackson
Kill_Bill_Vol.2
Taxi_Driver
Taxi_Driver
Star_Wars_Ep.1
Star_Wars_Ep.1
F
FEATURES IN THE EMBEDDING SPACE
F
Feature engineering
● Manually define a mapping
function
FEATURES IN THE EMBEDDING SPACE
F
Feature engineering
● Manually define a mapping
function
Feature learning
● Define F (W) as a function of
a set of parameters W (e.g. a
neural network)
● Learn W from an
optimization problem
FEATURES IN THE EMBEDDING SPACE
F
Feature engineering
● Manually define a mapping
function
Feature learning
● Define F (W) as a function of
a set of parameters W (e.g. a
neural network)
● Learn W from an
optimization problem
Random walks:
● DeepWalk [1]
● Node2vec [2]
● RDF2Vec [3]
● Entity2rec [4]
FEATURES IN THE EMBEDDING SPACE
F
Feature engineering
● Manually define a mapping
function
Feature learning
● Define F (W) as a function of
a set of parameters W (e.g. a
neural network)
● Learn W from an
optimization problem
Random walks:
● DeepWalk [1]
● Node2vec [2]
● RDF2Vec [3]
● Entity2rec [4]
Translational models:
● TransE [5]
● TransH [6]
● TransR [7]
FEATURES IN THE EMBEDDING SPACE
F
Feature engineering
● Manually define a mapping
function
Feature learning
● Define F (W) as a function of
a set of parameters W (e.g. a
neural network)
● Learn W from an
optimization problem
Random walks:
● DeepWalk [1]
● Node2vec [2]
● RDF2Vec [3]
● Entity2rec [4]
Translational models:
● TransE [5]
● TransH [6]
● TransR [7]
TRANSLATIONAL MODELS
TransE [5]
Model: h + r ~ t
Simple, but not suitable
for 1-to-N, N-to-1, N-to-N
relations
TRANSLATIONAL MODELS
TransH [6]
Model: h⊥
+ dr
~ t⊥
Multiple representations
for different relations
projecting on hyperplanes
TransE [5]
Model: h + r ~ t
Simple, but not suitable
for 1-to-N, N-to-1, N-to-N
relations
TRANSLATIONAL MODELS
TransR [7]
Model: hr
+ r ~ tr
Embed entities and relations
in different vector spaces
through projection matrix Mr
TransH [6]
Model: h⊥
+ dr
~ t⊥
Multiple representations
for different relations
projecting on hyperplanes
TransE [5]
Model: h + r ~ t
Simple, but not suitable
for 1-to-N, N-to-1, N-to-N
relations
TRANSLATIONAL MODELS
TransR [7]TransH [6]TransE [5]
Score function:
f(h, r, t) = D(h + r, t)
Score function:
f(h, r, t) = D(h⊥
+ dr
, t⊥
)
Score function:
f(h, r, t) = D(hr
+ r , tr
)
RANKING FUNCTION
i1
i3
ρ(u,i) = - D(u + feedback, i)
i2
i3
TransE [5]
RANKING FUNCTION
i1
i3
ρ(u,i) = - D(u + feedback, i)
i2
i3
TransE [5]
TransH [6]
ρ(u,i) = - D(u⊥
+ dfeedback
, i⊥
)
RANKING FUNCTION
i1
i3
ρ(u,i) = - D(u + feedback, i)
i2
i3
TransE [5]
TransH [6]
ρ(u,i) = - D(u⊥
+ dfeedback
, i⊥
)
TransR [7]
ρ(u,i) = - D(ufeedback
+ feedback, ifeedback
)
D = Euclidean distance
DATASET
● Movielens_1M: 1,000,209 ratings, 3900 movies, 6040 users
● Splitting: we split data using 70% train, 10% validation, 20% test of ratings per user
● DBpedia: we leverage DBpedia mappings of Movielens items to build the knowledge
graph created in a related work1
● Property selection: we count the most frequently occurring properties used in
DBpedia for items in Movielens1M, obtaining: ["dbo:director", "dbo:starring",
"dbo:distributor", "dbo:writer","dbo:musicComposer",
"dbo:producer","dbo:cinematography", "dbo:editing"]
● We add: "dct:subject" to this set and we model ratings >= 4 as “feedback” property
1: https://github.com/sisinflab/LODrecsys-datasets
EXPERIMENTAL SETUP
● Evaluation Protocol: we apply the same candidate generation strategies to all
systems under evaluation, i.e. “AllUnratedItems” [8]
● Baselines: we use heuristics such as MostPopular and collaborative filtering
algorithms such as Singular Value Decomposition (SVD) and ItemKNN from the
Surprise Library (http://surpriselib.com)
● Scoring: we measure standard information retrieval metrics such as P@5, P@10,
MAP, NDCG. The same scorer is applied to all systems
● Configuration: all systems are used with their default hyper-parameters
● Implementation of translational models is: https://github.com/thunlp/KB2E
● Evaluators, scorers, baselines and python wrappers of translational models can be
found at: https://github.com/D2KLab/entity2rec/tree/dev
RESULTS
System P@5 P@10 MAP NDCG
TransH 0.196457 0.170331 0.134170 0.461370
TransR 0.190497 0.165033 0.127401 0.453900
MostPop 0.144603 0.129156 0.092103 0.406294
TransE 0.116656 0.098245 0.071185 0.379548
SVD 0.067815 0.062401 0.042671 0.328776
ItemKNN 0.057483 0.053626 0.040933 0.324887
CONCLUSIONS
● Knowledge graphs are a beneficial data structure for hybrid recommender systems
● Item recommendation can be seen as a knowledge graph completion problem
● Translational models conceived to predict missing properties in a knowledge graph
can be used to provide recommendations
● The empirical comparison shows that TransH outperforms TransR and TransE
● Many possible extensions of this work: considering other datasets, other baselines,
other state-of-the-art graph embeddings systems, using knowledge graph
embeddings to model multiple user-item interactions
● Enrico Palumbo, Data Scientist, ISMB, PhD Student, EURECOM - PoliTo
● Mail: palumbo@ismb.it
● Personal page: http://enricopal.github.io
● Slides: http://www.slideshare.net/EnricoPalumbo2
● Github: www.github.com/D2KLAB, www.github.com/enricopal
● Twitter: https://twitter.com/enricopalumbo91
Turin, Italy, www.ismb.it Sophia Antipolis, France, www.eurecom.fr Turin, Italy, www.polito.it
CONTACTS
REFERENCES
● [1]: Perozzi, Bryan, Rami Al-Rfou, and Steven Skiena. "Deepwalk: Online learning of social representations." Proceedings of the
20th ACM SIGKDD international conference on Knowledge discovery and data mining. ACM, 2014.
● [2]: Grover, Aditya, and Jure Leskovec. "node2vec: Scalable feature learning for networks." Proceedings of the 22nd ACM
SIGKDD international conference on Knowledge discovery and data mining. ACM, 2016.
● [3]: Ristoski, Petar, and Heiko Paulheim. "Rdf2vec: Rdf graph embeddings for data mining." International Semantic Web
Conference. Springer, Cham, 2016.
● [4]: Palumbo, Enrico, Giuseppe Rizzo, and Raphaël Troncy. "Entity2rec: Learning user-item relatedness from knowledge graphs
for top-n item recommendation." Proceedings of the Eleventh ACM Conference on Recommender Systems. ACM, 2017.
● [5]: Bordes, A., Usunier, N., Garcia-Duran, A., Weston, J., & Yakhnenko, O. (2013). Translating embeddings for modeling
multi-relational data. In Advances in neural information processing systems (pp. 2787-2795).
● [6]: Wang, Z., Zhang, J., Feng, J., & Chen, Z. (2014, July). Knowledge Graph Embedding by Translating on Hyperplanes. In AAAI
(Vol. 14, pp. 1112-1119).
● [7]: Lin, Yankai, et al. "Learning entity and relation embeddings for knowledge graph completion." AAAI. Vol. 15. 2015.
● [8]: Harald Steck. 2013. Evaluation of recommendations: rating-prediction and ranking. In Proceedings of the 7th ACM
conference on Recommender systems. ACM, 213–220.

More Related Content

What's hot

Kaggle Days Paris - Alberto Danese - ML Interpretability
Kaggle Days Paris - Alberto Danese - ML InterpretabilityKaggle Days Paris - Alberto Danese - ML Interpretability
Kaggle Days Paris - Alberto Danese - ML InterpretabilityAlberto Danese
 
Music recommendations @ MLConf 2014
Music recommendations @ MLConf 2014Music recommendations @ MLConf 2014
Music recommendations @ MLConf 2014Erik Bernhardsson
 
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...Minsuk Kahng
 
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...Alexandros Karatzoglou
 
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph CompletionNaomi Shiraishi
 
WISS QA Do it yourself Question answering over Linked Data
WISS QA Do it yourself Question answering over Linked DataWISS QA Do it yourself Question answering over Linked Data
WISS QA Do it yourself Question answering over Linked DataAndre Freitas
 
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs) A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)Thomas da Silva Paula
 
An introduction to Julia
An introduction to JuliaAn introduction to Julia
An introduction to JuliaJiahao Chen
 
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...andimou
 
Technical computing in Julia
Technical computing in JuliaTechnical computing in Julia
Technical computing in JuliaJiahao Chen
 
Learning to Rank for Recommender Systems - ACM RecSys 2013 tutorial
Learning to Rank for Recommender Systems -  ACM RecSys 2013 tutorialLearning to Rank for Recommender Systems -  ACM RecSys 2013 tutorial
Learning to Rank for Recommender Systems - ACM RecSys 2013 tutorialAlexandros Karatzoglou
 
Page rank talk at NTU-EE
Page rank talk at NTU-EEPage rank talk at NTU-EE
Page rank talk at NTU-EEPing Yeh
 

What's hot (12)

Kaggle Days Paris - Alberto Danese - ML Interpretability
Kaggle Days Paris - Alberto Danese - ML InterpretabilityKaggle Days Paris - Alberto Danese - ML Interpretability
Kaggle Days Paris - Alberto Danese - ML Interpretability
 
Music recommendations @ MLConf 2014
Music recommendations @ MLConf 2014Music recommendations @ MLConf 2014
Music recommendations @ MLConf 2014
 
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...
Ranking Objects by Following Paths in Entity-Relationship Graphs (PhD Worksho...
 
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...
Ranking and Diversity in Recommendations - RecSys Stammtisch at SoundCloud, B...
 
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion
論文紹介:Graph Pattern Entity Ranking Model for Knowledge Graph Completion
 
WISS QA Do it yourself Question answering over Linked Data
WISS QA Do it yourself Question answering over Linked DataWISS QA Do it yourself Question answering over Linked Data
WISS QA Do it yourself Question answering over Linked Data
 
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs) A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 
An introduction to Julia
An introduction to JuliaAn introduction to Julia
An introduction to Julia
 
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...
Machine-Interpretable Dataset and Service Descriptions for Heterogeneous Data...
 
Technical computing in Julia
Technical computing in JuliaTechnical computing in Julia
Technical computing in Julia
 
Learning to Rank for Recommender Systems - ACM RecSys 2013 tutorial
Learning to Rank for Recommender Systems -  ACM RecSys 2013 tutorialLearning to Rank for Recommender Systems -  ACM RecSys 2013 tutorial
Learning to Rank for Recommender Systems - ACM RecSys 2013 tutorial
 
Page rank talk at NTU-EE
Page rank talk at NTU-EEPage rank talk at NTU-EE
Page rank talk at NTU-EE
 

Similar to An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation

Open event (Drupalcamp Sunderland 2015)
Open event (Drupalcamp Sunderland 2015)Open event (Drupalcamp Sunderland 2015)
Open event (Drupalcamp Sunderland 2015)Jorge López-Lago
 
OpenRepGrid – An Open Source Software for the Analysis of Repertory Grids
OpenRepGrid – An Open Source Software for the Analysis of Repertory GridsOpenRepGrid – An Open Source Software for the Analysis of Repertory Grids
OpenRepGrid – An Open Source Software for the Analysis of Repertory GridsMark Heckmann
 
What java developers (don’t) know about api compatibility
What java developers (don’t) know about api compatibilityWhat java developers (don’t) know about api compatibility
What java developers (don’t) know about api compatibilityJens Dietrich
 
aRangodb, un package per l'utilizzo di ArangoDB con R
aRangodb, un package per l'utilizzo di ArangoDB con RaRangodb, un package per l'utilizzo di ArangoDB con R
aRangodb, un package per l'utilizzo di ArangoDB con RGraphRM
 
NERD: an open source platform for extracting and disambiguating named entitie...
NERD: an open source platform for extracting and disambiguating named entitie...NERD: an open source platform for extracting and disambiguating named entitie...
NERD: an open source platform for extracting and disambiguating named entitie...Raphael Troncy
 
Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Sudeep Das, Ph.D.
 
Recommendation Engine Powered by Hadoop
Recommendation Engine Powered by HadoopRecommendation Engine Powered by Hadoop
Recommendation Engine Powered by HadoopPranab Ghosh
 
Recommendation Engine Powered by Hadoop - Pranab Ghosh
Recommendation Engine Powered by Hadoop - Pranab GhoshRecommendation Engine Powered by Hadoop - Pranab Ghosh
Recommendation Engine Powered by Hadoop - Pranab GhoshBigDataCloud
 
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-converted
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-convertedNeo4j graphdatabaseforrecommendations-130531021030-phpapp02-converted
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-convertedsnehapandey01
 
Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018David Litvak Bruno
 
Knowledge graph construction with a façade - The SPARQL Anything Project
Knowledge graph construction with a façade - The SPARQL Anything ProjectKnowledge graph construction with a façade - The SPARQL Anything Project
Knowledge graph construction with a façade - The SPARQL Anything ProjectEnrico Daga
 
Big Data Analytics course: Named Entities and Deep Learning for NLP
Big Data Analytics course: Named Entities and Deep Learning for NLPBig Data Analytics course: Named Entities and Deep Learning for NLP
Big Data Analytics course: Named Entities and Deep Learning for NLPChristian Morbidoni
 
Extending DCAM for Metadata Provenance
Extending DCAM for Metadata ProvenanceExtending DCAM for Metadata Provenance
Extending DCAM for Metadata ProvenanceKai Eckert
 
A general introduction to Spring Data / Neo4J
A general introduction to Spring Data / Neo4JA general introduction to Spring Data / Neo4J
A general introduction to Spring Data / Neo4JFlorent Biville
 
Hithai Shree.J and Varsha.R.pptx
Hithai Shree.J and Varsha.R.pptxHithai Shree.J and Varsha.R.pptx
Hithai Shree.J and Varsha.R.pptxssuser22b2ec
 
Combine Spring Data Neo4j and Spring Boot to quickl
Combine Spring Data Neo4j and Spring Boot to quicklCombine Spring Data Neo4j and Spring Boot to quickl
Combine Spring Data Neo4j and Spring Boot to quicklNeo4j
 

Similar to An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation (20)

Entity2rec recsys
Entity2rec recsysEntity2rec recsys
Entity2rec recsys
 
Open event (Drupalcamp Sunderland 2015)
Open event (Drupalcamp Sunderland 2015)Open event (Drupalcamp Sunderland 2015)
Open event (Drupalcamp Sunderland 2015)
 
OpenRepGrid – An Open Source Software for the Analysis of Repertory Grids
OpenRepGrid – An Open Source Software for the Analysis of Repertory GridsOpenRepGrid – An Open Source Software for the Analysis of Repertory Grids
OpenRepGrid – An Open Source Software for the Analysis of Repertory Grids
 
What java developers (don’t) know about api compatibility
What java developers (don’t) know about api compatibilityWhat java developers (don’t) know about api compatibility
What java developers (don’t) know about api compatibility
 
Final Algos
Final AlgosFinal Algos
Final Algos
 
aRangodb, un package per l'utilizzo di ArangoDB con R
aRangodb, un package per l'utilizzo di ArangoDB con RaRangodb, un package per l'utilizzo di ArangoDB con R
aRangodb, un package per l'utilizzo di ArangoDB con R
 
NERD: an open source platform for extracting and disambiguating named entitie...
NERD: an open source platform for extracting and disambiguating named entitie...NERD: an open source platform for extracting and disambiguating named entitie...
NERD: an open source platform for extracting and disambiguating named entitie...
 
Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it!
 
Recommendation Engine Powered by Hadoop
Recommendation Engine Powered by HadoopRecommendation Engine Powered by Hadoop
Recommendation Engine Powered by Hadoop
 
Recommendation Engine Powered by Hadoop - Pranab Ghosh
Recommendation Engine Powered by Hadoop - Pranab GhoshRecommendation Engine Powered by Hadoop - Pranab Ghosh
Recommendation Engine Powered by Hadoop - Pranab Ghosh
 
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-converted
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-convertedNeo4j graphdatabaseforrecommendations-130531021030-phpapp02-converted
Neo4j graphdatabaseforrecommendations-130531021030-phpapp02-converted
 
Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018
 
Miso
MisoMiso
Miso
 
Knowledge graph construction with a façade - The SPARQL Anything Project
Knowledge graph construction with a façade - The SPARQL Anything ProjectKnowledge graph construction with a façade - The SPARQL Anything Project
Knowledge graph construction with a façade - The SPARQL Anything Project
 
Big Data Analytics course: Named Entities and Deep Learning for NLP
Big Data Analytics course: Named Entities and Deep Learning for NLPBig Data Analytics course: Named Entities and Deep Learning for NLP
Big Data Analytics course: Named Entities and Deep Learning for NLP
 
Extending DCAM for Metadata Provenance
Extending DCAM for Metadata ProvenanceExtending DCAM for Metadata Provenance
Extending DCAM for Metadata Provenance
 
A general introduction to Spring Data / Neo4J
A general introduction to Spring Data / Neo4JA general introduction to Spring Data / Neo4J
A general introduction to Spring Data / Neo4J
 
Publishing Linked Data using Schema.org
Publishing Linked Data using Schema.orgPublishing Linked Data using Schema.org
Publishing Linked Data using Schema.org
 
Hithai Shree.J and Varsha.R.pptx
Hithai Shree.J and Varsha.R.pptxHithai Shree.J and Varsha.R.pptx
Hithai Shree.J and Varsha.R.pptx
 
Combine Spring Data Neo4j and Spring Boot to quickl
Combine Spring Data Neo4j and Spring Boot to quicklCombine Spring Data Neo4j and Spring Boot to quickl
Combine Spring Data Neo4j and Spring Boot to quickl
 

Recently uploaded

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxolyaivanovalion
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 

An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation

  • 1. An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation Enrico Palumbo, Giuseppe Rizzo, Raphael Troncy, Elena Baralis, Michele Osella, Enrico Ferro
  • 4. CONTENT-BASED FILTERING JANE ρ (u, i) 0.8Kill_Bill_Vol.2 Samuel_Jackson 0.0 Content similarities with items liked in the past
  • 5. COLLABORATIVE FILTERING ρ (u, i) 0.8 0.0 collaborative: users who watch x also like y... Kill_Bill_Vol.2 Jane Mark Taxi_Driver
  • 6. BEYOND CONTENT-BASED AND COLLABORATIVE... Content-based ● overspecialization ● new users ● requires item metadata Collaborative ● new users ● new items ● data sparsity Hybrid recommender systems
  • 7. Knowledge Graph ● K = (E, R, O) ● Entities E ● Users U ⊂ ● Items I ⊂ ● ● ● ⊂ ● feedback ⊂ Kill_Bill_Vol.2 Samuel_Jackson JaneMark Quentin_Tarantino Taxi_Driver Star_Wars_Ep.1 THE_AVENGERS
  • 8. RECOMMENDATIONS USING A KNOWLEDGE GRAPH Item recommendation as a knowledge graph completion problem!
  • 10. FEATURES IN THE EMBEDDING SPACE F Feature engineering ● Manually define a mapping function
  • 11. FEATURES IN THE EMBEDDING SPACE F Feature engineering ● Manually define a mapping function Feature learning ● Define F (W) as a function of a set of parameters W (e.g. a neural network) ● Learn W from an optimization problem
  • 12. FEATURES IN THE EMBEDDING SPACE F Feature engineering ● Manually define a mapping function Feature learning ● Define F (W) as a function of a set of parameters W (e.g. a neural network) ● Learn W from an optimization problem Random walks: ● DeepWalk [1] ● Node2vec [2] ● RDF2Vec [3] ● Entity2rec [4]
  • 13. FEATURES IN THE EMBEDDING SPACE F Feature engineering ● Manually define a mapping function Feature learning ● Define F (W) as a function of a set of parameters W (e.g. a neural network) ● Learn W from an optimization problem Random walks: ● DeepWalk [1] ● Node2vec [2] ● RDF2Vec [3] ● Entity2rec [4] Translational models: ● TransE [5] ● TransH [6] ● TransR [7]
  • 14. FEATURES IN THE EMBEDDING SPACE F Feature engineering ● Manually define a mapping function Feature learning ● Define F (W) as a function of a set of parameters W (e.g. a neural network) ● Learn W from an optimization problem Random walks: ● DeepWalk [1] ● Node2vec [2] ● RDF2Vec [3] ● Entity2rec [4] Translational models: ● TransE [5] ● TransH [6] ● TransR [7]
  • 15. TRANSLATIONAL MODELS TransE [5] Model: h + r ~ t Simple, but not suitable for 1-to-N, N-to-1, N-to-N relations
  • 16. TRANSLATIONAL MODELS TransH [6] Model: h⊥ + dr ~ t⊥ Multiple representations for different relations projecting on hyperplanes TransE [5] Model: h + r ~ t Simple, but not suitable for 1-to-N, N-to-1, N-to-N relations
  • 17. TRANSLATIONAL MODELS TransR [7] Model: hr + r ~ tr Embed entities and relations in different vector spaces through projection matrix Mr TransH [6] Model: h⊥ + dr ~ t⊥ Multiple representations for different relations projecting on hyperplanes TransE [5] Model: h + r ~ t Simple, but not suitable for 1-to-N, N-to-1, N-to-N relations
  • 18. TRANSLATIONAL MODELS TransR [7]TransH [6]TransE [5] Score function: f(h, r, t) = D(h + r, t) Score function: f(h, r, t) = D(h⊥ + dr , t⊥ ) Score function: f(h, r, t) = D(hr + r , tr )
  • 19. RANKING FUNCTION i1 i3 ρ(u,i) = - D(u + feedback, i) i2 i3 TransE [5]
  • 20. RANKING FUNCTION i1 i3 ρ(u,i) = - D(u + feedback, i) i2 i3 TransE [5] TransH [6] ρ(u,i) = - D(u⊥ + dfeedback , i⊥ )
  • 21. RANKING FUNCTION i1 i3 ρ(u,i) = - D(u + feedback, i) i2 i3 TransE [5] TransH [6] ρ(u,i) = - D(u⊥ + dfeedback , i⊥ ) TransR [7] ρ(u,i) = - D(ufeedback + feedback, ifeedback ) D = Euclidean distance
  • 22. DATASET ● Movielens_1M: 1,000,209 ratings, 3900 movies, 6040 users ● Splitting: we split data using 70% train, 10% validation, 20% test of ratings per user ● DBpedia: we leverage DBpedia mappings of Movielens items to build the knowledge graph created in a related work1 ● Property selection: we count the most frequently occurring properties used in DBpedia for items in Movielens1M, obtaining: ["dbo:director", "dbo:starring", "dbo:distributor", "dbo:writer","dbo:musicComposer", "dbo:producer","dbo:cinematography", "dbo:editing"] ● We add: "dct:subject" to this set and we model ratings >= 4 as “feedback” property 1: https://github.com/sisinflab/LODrecsys-datasets
  • 23. EXPERIMENTAL SETUP ● Evaluation Protocol: we apply the same candidate generation strategies to all systems under evaluation, i.e. “AllUnratedItems” [8] ● Baselines: we use heuristics such as MostPopular and collaborative filtering algorithms such as Singular Value Decomposition (SVD) and ItemKNN from the Surprise Library (http://surpriselib.com) ● Scoring: we measure standard information retrieval metrics such as P@5, P@10, MAP, NDCG. The same scorer is applied to all systems ● Configuration: all systems are used with their default hyper-parameters ● Implementation of translational models is: https://github.com/thunlp/KB2E ● Evaluators, scorers, baselines and python wrappers of translational models can be found at: https://github.com/D2KLab/entity2rec/tree/dev
  • 24. RESULTS System P@5 P@10 MAP NDCG TransH 0.196457 0.170331 0.134170 0.461370 TransR 0.190497 0.165033 0.127401 0.453900 MostPop 0.144603 0.129156 0.092103 0.406294 TransE 0.116656 0.098245 0.071185 0.379548 SVD 0.067815 0.062401 0.042671 0.328776 ItemKNN 0.057483 0.053626 0.040933 0.324887
  • 25. CONCLUSIONS ● Knowledge graphs are a beneficial data structure for hybrid recommender systems ● Item recommendation can be seen as a knowledge graph completion problem ● Translational models conceived to predict missing properties in a knowledge graph can be used to provide recommendations ● The empirical comparison shows that TransH outperforms TransR and TransE ● Many possible extensions of this work: considering other datasets, other baselines, other state-of-the-art graph embeddings systems, using knowledge graph embeddings to model multiple user-item interactions
  • 26. ● Enrico Palumbo, Data Scientist, ISMB, PhD Student, EURECOM - PoliTo ● Mail: palumbo@ismb.it ● Personal page: http://enricopal.github.io ● Slides: http://www.slideshare.net/EnricoPalumbo2 ● Github: www.github.com/D2KLAB, www.github.com/enricopal ● Twitter: https://twitter.com/enricopalumbo91 Turin, Italy, www.ismb.it Sophia Antipolis, France, www.eurecom.fr Turin, Italy, www.polito.it CONTACTS
  • 27. REFERENCES ● [1]: Perozzi, Bryan, Rami Al-Rfou, and Steven Skiena. "Deepwalk: Online learning of social representations." Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining. ACM, 2014. ● [2]: Grover, Aditya, and Jure Leskovec. "node2vec: Scalable feature learning for networks." Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining. ACM, 2016. ● [3]: Ristoski, Petar, and Heiko Paulheim. "Rdf2vec: Rdf graph embeddings for data mining." International Semantic Web Conference. Springer, Cham, 2016. ● [4]: Palumbo, Enrico, Giuseppe Rizzo, and Raphaël Troncy. "Entity2rec: Learning user-item relatedness from knowledge graphs for top-n item recommendation." Proceedings of the Eleventh ACM Conference on Recommender Systems. ACM, 2017. ● [5]: Bordes, A., Usunier, N., Garcia-Duran, A., Weston, J., & Yakhnenko, O. (2013). Translating embeddings for modeling multi-relational data. In Advances in neural information processing systems (pp. 2787-2795). ● [6]: Wang, Z., Zhang, J., Feng, J., & Chen, Z. (2014, July). Knowledge Graph Embedding by Translating on Hyperplanes. In AAAI (Vol. 14, pp. 1112-1119). ● [7]: Lin, Yankai, et al. "Learning entity and relation embeddings for knowledge graph completion." AAAI. Vol. 15. 2015. ● [8]: Harald Steck. 2013. Evaluation of recommendations: rating-prediction and ranking. In Proceedings of the 7th ACM conference on Recommender systems. ACM, 213–220.