SlideShare a Scribd company logo
1 of 21
Download to read offline
entity2rec
Learning User-Item Relatedness
from Knowledge Graphs for Top-N
Item Recommendation
Enrico Palumbo, Giuseppe Rizzo, Raphaёl Troncy
RecSys 2017, Como, Italy
Knowledge Graph
● K = (E, R, 0)
● E = entities
● O = ontology
● O defines entity types Λ (classes)
and relation types Γ (properties)
● O: Λ -> Γ
● R ⊂ E x Γ x E
● (Kill_Bill_Vol.2, starring, Quentin_Tarantino)
...
Work
Kill_Bill_Vol.2
Film Song
Ontology O
Quentin_Tarantino
Samuel_Jackson
director
starring
producer
Lawrence_Bender
Knowledge Graph for RS
● U ⊂ E = users
● I ⊂ E  U = items
● ‘feedback’ property:
(u, feedback, i)
● Collaborative and
content information
● Hybrid recommender
systems
director
Mark
feedback
Quentin_Tarantino
Kill_Bill_Vol.2
starring
Samuel_Jackson
starring
Jackie_Brown
Jane
feedback
feedback
feedback
Taxi_Driver
Objective
Learn user-item relatedness
from the Knowledge Graph for
top-N item recommendation.
Learn entity features encoding:
● Graph structure: tightly
connected entities should
be more related
● Semantics: not all
properties have the same
importance
?
director
Mark
feedback
Quentin_Tarantino
Kill_Bill_Vol.2
starring
Samuel_Jackson
starring
Jackie_Brown
Jane
feedback
feedback
feedback
Taxi_Driver
Graph structure: node2vec
● Feature learning from
networks
● Adaptation of word2vec
on graph structures
using random walks
● Maps nodes in a graph
into an euclidean space
preserving the graph
structure
Graph structure: node2vec
Mark, Kill_Bill_Vol.2,
Quentin_Tarantino, ...
Jane, Kill_Bill_Vol.2,
Jurassic_Park …
Kill_Bill_Vol.2, Samuel_Jackson,
Jurassic_Park, Jane…
Samuel_Jackson, Jurassic_Park,
Kill_Bill_Vol.2, …
...
RW Word2vec
Graph Text file with sequences
of nodes
Node embeddings
?
Kill_Bill_Vol.2
Samuel_Jackson
Jackie_Brown
Jane
Mark
Quentin_Tarantino Quentin_Tarantino
Mark
Jane
Jackie_Brown
Samuel_Jackson
Kill_Bill_Vol.2
Taxi_Driver
Taxi_Driver
Graph structure: node2vec
Mark, Kill_Bill_Vol.2,
Quentin_Tarantino, ...
Jane, Kill_Bill_Vol.2,
Jurassic_Park …
Kill_Bill_Vol.2, Samuel_Jackson,
Jurassic_Park, Jane…
Samuel_Jackson, Jurassic_Park,
Kill_Bill_Vol.2, …
...
RW Word2vec
Graph Text file with sequences
of nodes
Node embeddings
?
Kill_Bill_Vol.2
Samuel_Jackson
Jackie_Brown
Jane
Mark
Quentin_Tarantino Quentin_Tarantino
Mark
Jane
Jackie_Brown
Samuel_Jackson
Kill_Bill_Vol.2
Taxi_Driver
Taxi_Driver
No semantics, not optimized for recommendations
Semantics: property-specific relatedness
feedback
Kill_Bill_Vol.2
Jackie_Brown
Jane
Mark
feedback feedback
Jane
Mark
Collaborative filtering: ρfeedback
(u,i) = d ( xfeedback
(u), xfeedback
(i))
Jackie_Brown
Kill_Bill_Vol.2
node2vec Taxi_DriverTaxi_Driver
feedback
Semantics: property-specific relatedness
Kill_Bill_Vol.2
Jackie_Brown
Samuel_Jackson
Robert_De_Niro
Uma_Thurman starring
starring
starring
starring
Kill_Bil_Vol.2
Jackie_Brown
Uma_Thurman
Samuel_Jackson
Robert_De_Niro
Taxi_Driver
starring
Taxi_Driver
Content filtering: ρstarring
(u,i) = D ( xstarring
(i’), xstarring
(i))
node2vec
Learning to rank
Jane
Mark
Jackie_Brown
Kill_Bill_Vol.2
Taxi_Driver
Kill_Bil_Vol.2
Jackie_Brown
Uma_Thurman
Samuel_
Jackson
Robert_De_Niro
Taxi_Driver
...
ρfeedback
(u,i)
ρstarring
(u,i)
ρp
(u,i)
features
Learning to rank: ρ(u,i) = f(ρp
(u,i))
● Global user-item relatedness ρ
as a ranking function
● List-wise approach: optimizing
directly ranking with
information retrieval metrics
(e.g. P@N)
Approach
KG node2vec
learning
to rank
top-N
items
unsupervised supervised
Graphs:
property-specific
subgraphs
Features:
property-specific
relatedness scores
Ranking function:
global relatedness
score
ρ(u,i) = f(ρp
(u,i))
Experimental setup
● Movielens_1M: 1,000,209 ratings, 3900 movies, 6040 users
● DBpedia: we leverage DBpedia mappings of Movielens items to build the
knowledge graph. We use the DBpedia Ontology to define properties of the
class ‘Film’. Some items are missing: 948978 ratings, 3225 movies, 6040
users.
● Evaluation protocol: train, val test set split. Add 100 ‘false candidates’ to each
user in the test set to simulate ‘real’ ranking scenario.
● Baselines: popular collaborative filtering algorithms: NMF, SVD, ItemKNN,
MostPopular
Results
entity2rec and baselines evaluated on the test set
Model P@5 P@10 MAP
entity2rec 0.2814 0.2127 0.4232
Most Popular 0.2154 0.1815 0.2907
NMF 0.1208 0.1150 0.1758
SVD 0.0543 0.0469 0.0888
ItemKNN 0.0463 0.0232 0.0990
Feature selection
Features P@5 P@10 MAP
ρfeedback
0.2317 0.1708 0.3550
ρdbo:director
0.0219 0.0211 0.0949
ρdbo:producer
0.0119 0.0241 0.0498
ρdbo:starring
0.0128 0.0372 0.0728
ρdct:subject
0.0285 0.0326 0.0688
ρdbo:writer
0.0061 0.0216 0.0472
entity2rec 0.2814 0.2127 0.4232
Performance using one property at the time in the learning to rank model vs global model
Conclusions
● Novel approach to learn user-item relatedness that leverages the semantics and
the graph structure of the knowledge graph to provide recommendations
● Hybrid approach, includes both collaborative and content information
● No feature engineering, using an unsupervised feature learning stage to learn
entity embeddings and derive property-specific relatedness scores and a
supervised learning to rank stage to combine them
● High ranking precision on the Movielens dataset
● No black box effect, features have a clear interpretation and can be easily
configured to a particular recommendation need
● Parallelizable and easily adaptable to an online learning context
Future work
● Test against more competitive baselines and on more domains (e.g. music,
books, tourism...)
● New experiments to answer to questions such as:
○ what is the importance of content based features and how does it vary
with different degrees of data sparsity?
○ is the unsupervised learning stage or the supervised learning to rank
stage that affects the performance the most?
○ what is the best approach to adapt the system to an online learning
context?
● Parallelized and adapted to an online learning context
● Software implementation has to be further tested and extended1
1: https://github.com/MultimediaSemantics/entity2rec
Thank you!
● Enrico Palumbo, Data Scientist, ISMB, PhD Student, Eurecom - PoliTo
● Mail: palumbo@ismb.it, enrico.palumbo@eurecom.fr
● Personal page: www.enricopal.github.io
● Slides: http://www.slideshare.net/EnricoPalumbo2
● Github: www.github.com/enricopal, www.github.com/MultimediaSemantics
● Twitter: https://twitter.com/enricopalumbo91
Turin, Italy, www.ismb.it Sophia Antipolis, France, www.eurecom.fr PasTime project
Graph structure: node2vec
Learning vector representation of
nodes preserving the local
neighborhood in the feature
space.
Flexible definition of node
neighborhood based on 2nd order
random walk that is sensitive to
different connectivity patterns.
p: return parameter
q: in-out parameter
1
1/p
1/q
1/q
t0
t-1
Transition probability
Hyper-parameters optimization
Grid-search of learning to rank algorithm and (p,q) node2vec hyper-parameters on a validation set
P,Q Learning to Rank P@5 P@10 MAP
1,4 LambdaMart 0.0791 0.0293 0.1717
4,1 LambdaMart 0.0182 0.0193 0.0570
1,1 LambdaMart 0.0174 0.0188 0.0565
1,4 AdaRank 0.0134 0.0098 0.0278
4,1 AdaRank 0.0078 0.0083 0.0286
1,1 AdaRank 0.0109 0.0098 0.0358
Learning to Rank
● AdaRank: Xu, Jun, and Hang Li. "Adarank: a boosting algorithm for information
retrieval." Proceedings of the 30th annual international ACM SIGIR conference
on Research and development in information retrieval. ACM, 2007.
○ Boosting algorithm, AdaBoost -> Ranking
○ Start from weak rankers and iteratively combines them to correct errors of the previous weak
ranker
○ As a weak ranker they use the feature that has the optimal weighted ranking performance
● LambdaMart: Burges, Christopher JC. "From ranknet to lambdarank to
lambdamart: An overview." Learning 11.23-581 (2010): 81
○ LambdaRank: directly defines the gradients without using the cost function
○ MART: boosting regression trees
○ LambdaMART: LambdaRank using MART as a ranking function
Baselines
● ItemKNN with baselines: Yehuda Koren. Factor in the neighbors: scalable and
accurate collaborative filtering. 2010. URL:
http://courses.ischool.berkeley.edu/i290-dm/s11/SECURE/a1-koren.pdf
● SVD: Yehuda Koren, Robert Bell, and Chris Volinsky. Matrix factorization
techniques for recommender systems. 2009.
● NMF: Xin Luo, Mengchu Zhou, Yunni Xia, and Qinsheng Zhu. An efficient
non-negative matrix factorization-based approach to collaborative filtering for
recommender systems. 2014.
● Python library: http://surpriselib.com/

More Related Content

What's hot

Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender SystemsYves Raimond
 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsYONG ZHENG
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixJustin Basilico
 
Recommendation at Netflix Scale
Recommendation at Netflix ScaleRecommendation at Netflix Scale
Recommendation at Netflix ScaleJustin Basilico
 
Tutorial on Deep Learning in Recommender System, Lars summer school 2019
Tutorial on Deep Learning in Recommender System, Lars summer school 2019Tutorial on Deep Learning in Recommender System, Lars summer school 2019
Tutorial on Deep Learning in Recommender System, Lars summer school 2019Anoop Deoras
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender systemStanley Wang
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender SystemsJustin Basilico
 
Time, Context and Causality in Recommender Systems
Time, Context and Causality in Recommender SystemsTime, Context and Causality in Recommender Systems
Time, Context and Causality in Recommender SystemsYves Raimond
 
Recent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixRecent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixJustin Basilico
 
Recent Trends in Personalization: A Netflix Perspective
Recent Trends in Personalization: A Netflix PerspectiveRecent Trends in Personalization: A Netflix Perspective
Recent Trends in Personalization: A Netflix PerspectiveJustin Basilico
 
Shallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemShallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemAnoop Deoras
 
Calibrated Recommendations
Calibrated RecommendationsCalibrated Recommendations
Calibrated RecommendationsHarald Steck
 
Recommender Systems - A Review and Recent Research Trends
Recommender Systems  -  A Review and Recent Research TrendsRecommender Systems  -  A Review and Recent Research Trends
Recommender Systems - A Review and Recent Research TrendsSujoy Bag
 
Personalizing "The Netflix Experience" with Deep Learning
Personalizing "The Netflix Experience" with Deep LearningPersonalizing "The Netflix Experience" with Deep Learning
Personalizing "The Netflix Experience" with Deep LearningAnoop Deoras
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation SystemsTrieu Nguyen
 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Alexandros Karatzoglou
 
Homepage Personalization at Spotify
Homepage Personalization at SpotifyHomepage Personalization at Spotify
Homepage Personalization at SpotifyOguz Semerci
 
A Multi-Armed Bandit Framework For Recommendations at Netflix
A Multi-Armed Bandit Framework For Recommendations at NetflixA Multi-Armed Bandit Framework For Recommendations at Netflix
A Multi-Armed Bandit Framework For Recommendations at NetflixJaya Kawale
 
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...MLconf
 

What's hot (20)

Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender Systems
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at Netflix
 
Recommendation at Netflix Scale
Recommendation at Netflix ScaleRecommendation at Netflix Scale
Recommendation at Netflix Scale
 
Tutorial on Deep Learning in Recommender System, Lars summer school 2019
Tutorial on Deep Learning in Recommender System, Lars summer school 2019Tutorial on Deep Learning in Recommender System, Lars summer school 2019
Tutorial on Deep Learning in Recommender System, Lars summer school 2019
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
 
Time, Context and Causality in Recommender Systems
Time, Context and Causality in Recommender SystemsTime, Context and Causality in Recommender Systems
Time, Context and Causality in Recommender Systems
 
Recent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixRecent Trends in Personalization at Netflix
Recent Trends in Personalization at Netflix
 
Recent Trends in Personalization: A Netflix Perspective
Recent Trends in Personalization: A Netflix PerspectiveRecent Trends in Personalization: A Netflix Perspective
Recent Trends in Personalization: A Netflix Perspective
 
Shallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemShallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender System
 
Calibrated Recommendations
Calibrated RecommendationsCalibrated Recommendations
Calibrated Recommendations
 
Recommender Systems - A Review and Recent Research Trends
Recommender Systems  -  A Review and Recent Research TrendsRecommender Systems  -  A Review and Recent Research Trends
Recommender Systems - A Review and Recent Research Trends
 
Personalizing "The Netflix Experience" with Deep Learning
Personalizing "The Netflix Experience" with Deep LearningPersonalizing "The Netflix Experience" with Deep Learning
Personalizing "The Netflix Experience" with Deep Learning
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation Systems
 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial
 
Homepage Personalization at Spotify
Homepage Personalization at SpotifyHomepage Personalization at Spotify
Homepage Personalization at Spotify
 
A Multi-Armed Bandit Framework For Recommendations at Netflix
A Multi-Armed Bandit Framework For Recommendations at NetflixA Multi-Armed Bandit Framework For Recommendations at Netflix
A Multi-Armed Bandit Framework For Recommendations at Netflix
 
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...
Ehtsham Elahi, Senior Research Engineer, Personalization Science and Engineer...
 
Recommender system
Recommender systemRecommender system
Recommender system
 

Similar to Entity2rec recsys

An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationAn Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationEnrico Palumbo
 
An introduction to deep reinforcement learning
An introduction to deep reinforcement learningAn introduction to deep reinforcement learning
An introduction to deep reinforcement learningBig Data Colombia
 
Recommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetRecommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetCrossing Minds
 
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.
 
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...Mladen Jovanovic
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlightsSandra Garcia
 
Intro to Deep Reinforcement Learning
Intro to Deep Reinforcement LearningIntro to Deep Reinforcement Learning
Intro to Deep Reinforcement LearningKhaled Saleh
 
Learning visual representation without human label
Learning visual representation without human labelLearning visual representation without human label
Learning visual representation without human labelKai-Wen Zhao
 
ExplainingMLModels.pdf
ExplainingMLModels.pdfExplainingMLModels.pdf
ExplainingMLModels.pdfLHong526661
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Claudio Greco
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Alessandro Suglia
 
Knn Algorithm presentation
Knn Algorithm presentationKnn Algorithm presentation
Knn Algorithm presentationRishavSharma112
 
Actor critic algorithm
Actor critic algorithmActor critic algorithm
Actor critic algorithmJie-Han Chen
 
Evaluating query-independent object features for relevancy prediction
Evaluating query-independent object features for relevancy predictionEvaluating query-independent object features for relevancy prediction
Evaluating query-independent object features for relevancy predictionNTNU
 
MediaEval 2016 - MLPBOON Predicting Media Interestingness System
MediaEval 2016 - MLPBOON Predicting Media Interestingness SystemMediaEval 2016 - MLPBOON Predicting Media Interestingness System
MediaEval 2016 - MLPBOON Predicting Media Interestingness Systemmultimediaeval
 
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
Strata 2016 -  Lessons Learned from building real-life Machine Learning SystemsStrata 2016 -  Lessons Learned from building real-life Machine Learning Systems
Strata 2016 - Lessons Learned from building real-life Machine Learning SystemsXavier Amatriain
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learningPriyanshu Gandhi
 
物件偵測與辨識技術
物件偵測與辨識技術物件偵測與辨識技術
物件偵測與辨識技術CHENHuiMei
 

Similar to Entity2rec recsys (20)

An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationAn Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
 
An introduction to deep reinforcement learning
An introduction to deep reinforcement learningAn introduction to deep reinforcement learning
An introduction to deep reinforcement learning
 
Recommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetRecommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right Dataset
 
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!
 
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
 
SKLearn Workshop.pptx
SKLearn Workshop.pptxSKLearn Workshop.pptx
SKLearn Workshop.pptx
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlights
 
Intro to Deep Reinforcement Learning
Intro to Deep Reinforcement LearningIntro to Deep Reinforcement Learning
Intro to Deep Reinforcement Learning
 
Learning visual representation without human label
Learning visual representation without human labelLearning visual representation without human label
Learning visual representation without human label
 
ExplainingMLModels.pdf
ExplainingMLModels.pdfExplainingMLModels.pdf
ExplainingMLModels.pdf
 
C3 w5
C3 w5C3 w5
C3 w5
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
 
Knn Algorithm presentation
Knn Algorithm presentationKnn Algorithm presentation
Knn Algorithm presentation
 
Actor critic algorithm
Actor critic algorithmActor critic algorithm
Actor critic algorithm
 
Evaluating query-independent object features for relevancy prediction
Evaluating query-independent object features for relevancy predictionEvaluating query-independent object features for relevancy prediction
Evaluating query-independent object features for relevancy prediction
 
MediaEval 2016 - MLPBOON Predicting Media Interestingness System
MediaEval 2016 - MLPBOON Predicting Media Interestingness SystemMediaEval 2016 - MLPBOON Predicting Media Interestingness System
MediaEval 2016 - MLPBOON Predicting Media Interestingness System
 
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
Strata 2016 -  Lessons Learned from building real-life Machine Learning SystemsStrata 2016 -  Lessons Learned from building real-life Machine Learning Systems
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learning
 
物件偵測與辨識技術
物件偵測與辨識技術物件偵測與辨識技術
物件偵測與辨識技術
 

Recently uploaded

Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...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
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
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
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
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
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
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
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 

Recently uploaded (20)

Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
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...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
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
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
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
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
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
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 

Entity2rec recsys

  • 1. entity2rec Learning User-Item Relatedness from Knowledge Graphs for Top-N Item Recommendation Enrico Palumbo, Giuseppe Rizzo, Raphaёl Troncy RecSys 2017, Como, Italy
  • 2. Knowledge Graph ● K = (E, R, 0) ● E = entities ● O = ontology ● O defines entity types Λ (classes) and relation types Γ (properties) ● O: Λ -> Γ ● R ⊂ E x Γ x E ● (Kill_Bill_Vol.2, starring, Quentin_Tarantino) ... Work Kill_Bill_Vol.2 Film Song Ontology O Quentin_Tarantino Samuel_Jackson director starring producer Lawrence_Bender
  • 3. Knowledge Graph for RS ● U ⊂ E = users ● I ⊂ E U = items ● ‘feedback’ property: (u, feedback, i) ● Collaborative and content information ● Hybrid recommender systems director Mark feedback Quentin_Tarantino Kill_Bill_Vol.2 starring Samuel_Jackson starring Jackie_Brown Jane feedback feedback feedback Taxi_Driver
  • 4. Objective Learn user-item relatedness from the Knowledge Graph for top-N item recommendation. Learn entity features encoding: ● Graph structure: tightly connected entities should be more related ● Semantics: not all properties have the same importance ? director Mark feedback Quentin_Tarantino Kill_Bill_Vol.2 starring Samuel_Jackson starring Jackie_Brown Jane feedback feedback feedback Taxi_Driver
  • 5. Graph structure: node2vec ● Feature learning from networks ● Adaptation of word2vec on graph structures using random walks ● Maps nodes in a graph into an euclidean space preserving the graph structure
  • 6. Graph structure: node2vec Mark, Kill_Bill_Vol.2, Quentin_Tarantino, ... Jane, Kill_Bill_Vol.2, Jurassic_Park … Kill_Bill_Vol.2, Samuel_Jackson, Jurassic_Park, Jane… Samuel_Jackson, Jurassic_Park, Kill_Bill_Vol.2, … ... RW Word2vec Graph Text file with sequences of nodes Node embeddings ? Kill_Bill_Vol.2 Samuel_Jackson Jackie_Brown Jane Mark Quentin_Tarantino Quentin_Tarantino Mark Jane Jackie_Brown Samuel_Jackson Kill_Bill_Vol.2 Taxi_Driver Taxi_Driver
  • 7. Graph structure: node2vec Mark, Kill_Bill_Vol.2, Quentin_Tarantino, ... Jane, Kill_Bill_Vol.2, Jurassic_Park … Kill_Bill_Vol.2, Samuel_Jackson, Jurassic_Park, Jane… Samuel_Jackson, Jurassic_Park, Kill_Bill_Vol.2, … ... RW Word2vec Graph Text file with sequences of nodes Node embeddings ? Kill_Bill_Vol.2 Samuel_Jackson Jackie_Brown Jane Mark Quentin_Tarantino Quentin_Tarantino Mark Jane Jackie_Brown Samuel_Jackson Kill_Bill_Vol.2 Taxi_Driver Taxi_Driver No semantics, not optimized for recommendations
  • 8. Semantics: property-specific relatedness feedback Kill_Bill_Vol.2 Jackie_Brown Jane Mark feedback feedback Jane Mark Collaborative filtering: ρfeedback (u,i) = d ( xfeedback (u), xfeedback (i)) Jackie_Brown Kill_Bill_Vol.2 node2vec Taxi_DriverTaxi_Driver feedback
  • 9. Semantics: property-specific relatedness Kill_Bill_Vol.2 Jackie_Brown Samuel_Jackson Robert_De_Niro Uma_Thurman starring starring starring starring Kill_Bil_Vol.2 Jackie_Brown Uma_Thurman Samuel_Jackson Robert_De_Niro Taxi_Driver starring Taxi_Driver Content filtering: ρstarring (u,i) = D ( xstarring (i’), xstarring (i)) node2vec
  • 10. Learning to rank Jane Mark Jackie_Brown Kill_Bill_Vol.2 Taxi_Driver Kill_Bil_Vol.2 Jackie_Brown Uma_Thurman Samuel_ Jackson Robert_De_Niro Taxi_Driver ... ρfeedback (u,i) ρstarring (u,i) ρp (u,i) features Learning to rank: ρ(u,i) = f(ρp (u,i)) ● Global user-item relatedness ρ as a ranking function ● List-wise approach: optimizing directly ranking with information retrieval metrics (e.g. P@N)
  • 11. Approach KG node2vec learning to rank top-N items unsupervised supervised Graphs: property-specific subgraphs Features: property-specific relatedness scores Ranking function: global relatedness score ρ(u,i) = f(ρp (u,i))
  • 12. Experimental setup ● Movielens_1M: 1,000,209 ratings, 3900 movies, 6040 users ● DBpedia: we leverage DBpedia mappings of Movielens items to build the knowledge graph. We use the DBpedia Ontology to define properties of the class ‘Film’. Some items are missing: 948978 ratings, 3225 movies, 6040 users. ● Evaluation protocol: train, val test set split. Add 100 ‘false candidates’ to each user in the test set to simulate ‘real’ ranking scenario. ● Baselines: popular collaborative filtering algorithms: NMF, SVD, ItemKNN, MostPopular
  • 13. Results entity2rec and baselines evaluated on the test set Model P@5 P@10 MAP entity2rec 0.2814 0.2127 0.4232 Most Popular 0.2154 0.1815 0.2907 NMF 0.1208 0.1150 0.1758 SVD 0.0543 0.0469 0.0888 ItemKNN 0.0463 0.0232 0.0990
  • 14. Feature selection Features P@5 P@10 MAP ρfeedback 0.2317 0.1708 0.3550 ρdbo:director 0.0219 0.0211 0.0949 ρdbo:producer 0.0119 0.0241 0.0498 ρdbo:starring 0.0128 0.0372 0.0728 ρdct:subject 0.0285 0.0326 0.0688 ρdbo:writer 0.0061 0.0216 0.0472 entity2rec 0.2814 0.2127 0.4232 Performance using one property at the time in the learning to rank model vs global model
  • 15. Conclusions ● Novel approach to learn user-item relatedness that leverages the semantics and the graph structure of the knowledge graph to provide recommendations ● Hybrid approach, includes both collaborative and content information ● No feature engineering, using an unsupervised feature learning stage to learn entity embeddings and derive property-specific relatedness scores and a supervised learning to rank stage to combine them ● High ranking precision on the Movielens dataset ● No black box effect, features have a clear interpretation and can be easily configured to a particular recommendation need ● Parallelizable and easily adaptable to an online learning context
  • 16. Future work ● Test against more competitive baselines and on more domains (e.g. music, books, tourism...) ● New experiments to answer to questions such as: ○ what is the importance of content based features and how does it vary with different degrees of data sparsity? ○ is the unsupervised learning stage or the supervised learning to rank stage that affects the performance the most? ○ what is the best approach to adapt the system to an online learning context? ● Parallelized and adapted to an online learning context ● Software implementation has to be further tested and extended1 1: https://github.com/MultimediaSemantics/entity2rec
  • 17. Thank you! ● Enrico Palumbo, Data Scientist, ISMB, PhD Student, Eurecom - PoliTo ● Mail: palumbo@ismb.it, enrico.palumbo@eurecom.fr ● Personal page: www.enricopal.github.io ● Slides: http://www.slideshare.net/EnricoPalumbo2 ● Github: www.github.com/enricopal, www.github.com/MultimediaSemantics ● Twitter: https://twitter.com/enricopalumbo91 Turin, Italy, www.ismb.it Sophia Antipolis, France, www.eurecom.fr PasTime project
  • 18. Graph structure: node2vec Learning vector representation of nodes preserving the local neighborhood in the feature space. Flexible definition of node neighborhood based on 2nd order random walk that is sensitive to different connectivity patterns. p: return parameter q: in-out parameter 1 1/p 1/q 1/q t0 t-1 Transition probability
  • 19. Hyper-parameters optimization Grid-search of learning to rank algorithm and (p,q) node2vec hyper-parameters on a validation set P,Q Learning to Rank P@5 P@10 MAP 1,4 LambdaMart 0.0791 0.0293 0.1717 4,1 LambdaMart 0.0182 0.0193 0.0570 1,1 LambdaMart 0.0174 0.0188 0.0565 1,4 AdaRank 0.0134 0.0098 0.0278 4,1 AdaRank 0.0078 0.0083 0.0286 1,1 AdaRank 0.0109 0.0098 0.0358
  • 20. Learning to Rank ● AdaRank: Xu, Jun, and Hang Li. "Adarank: a boosting algorithm for information retrieval." Proceedings of the 30th annual international ACM SIGIR conference on Research and development in information retrieval. ACM, 2007. ○ Boosting algorithm, AdaBoost -> Ranking ○ Start from weak rankers and iteratively combines them to correct errors of the previous weak ranker ○ As a weak ranker they use the feature that has the optimal weighted ranking performance ● LambdaMart: Burges, Christopher JC. "From ranknet to lambdarank to lambdamart: An overview." Learning 11.23-581 (2010): 81 ○ LambdaRank: directly defines the gradients without using the cost function ○ MART: boosting regression trees ○ LambdaMART: LambdaRank using MART as a ranking function
  • 21. Baselines ● ItemKNN with baselines: Yehuda Koren. Factor in the neighbors: scalable and accurate collaborative filtering. 2010. URL: http://courses.ischool.berkeley.edu/i290-dm/s11/SECURE/a1-koren.pdf ● SVD: Yehuda Koren, Robert Bell, and Chris Volinsky. Matrix factorization techniques for recommender systems. 2009. ● NMF: Xin Luo, Mengchu Zhou, Yunni Xia, and Qinsheng Zhu. An efficient non-negative matrix factorization-based approach to collaborative filtering for recommender systems. 2014. ● Python library: http://surpriselib.com/