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

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxBoston Institute of Analytics
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一F La
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 

Recently uploaded (20)

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 

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.