Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf ·...

15
Neural Graph Collaborative Filtering © Copyright NExT++. All Right Reserved. NUS-Tsinghua Centre for Extreme Search A Joint Research Collaboration Between NUS & Tsinghua University Xiang Wang, Xiangnan He, Meng Wang, Fuli Feng, Tat-Seng Chua 22 July 2019

Transcript of Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf ·...

Page 1: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Neural Graph Collaborative Filtering

© Copyright NExT++. All Right Reserved.

NUS-Tsinghua Centre for Extreme SearchA Joint Research Collaboration Between NUS & Tsinghua University

Xiang Wang, Xiangnan He, Meng Wang,

Fuli Feng, Tat-Seng Chua

22 July 2019

Page 2: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Modern Recommendation Paradigm

Interaction Modeling

User Profile• ID, Age, Gender, …

Item Profile• ID, Attributes …

Social Network•User-User Relations

Knowledge Graph• Item Knowledge

𝑦𝑢𝑖

User Representation Learning Item Representation Learning

Pre-existing Features For An Interaction Instance

Representation Learning For An Interaction Instance

A Predictive Model

Information Isolated Island Effect:

• Model each instance individually• While overlooking relations among instances• Might result in suboptimal performance:

• Making an instance’s representation dependent only on its ownfeatures

• Making interactions suffer from sparse issues

Limited Representation Ability

Suboptimal Model Capacity

Page 3: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

One Solution:Reorganizing Data into Graphs!

The data is more closely connected than we might think!

User-Item Interactions User/Item Profiles Knowledge Graph

𝒖𝟏

𝒖𝟐

𝒖𝟑

𝒊𝟏

𝒊𝟐

𝒊𝟑

𝒊𝟒

𝒊𝟓

𝒖𝟏

𝒖𝟑

Age 18-24

Gender: Male

Geo: Beijing

Age 25-30

𝒊𝟑Logan

𝒊𝟏The Greatest Showman

𝒊𝟐X-Men

𝒆𝟐Hugh Jackman

𝒓𝟒DirectedBy

𝒓𝟑IsCastOf

𝒆𝟏James Mangold

𝒊𝟒The Prestige

𝒓𝟐ProducedBy

𝒆𝟏James Mangold

Limited Representation Ability

Suboptimal Model Capacity

Information Propagation along with the connections

High-order connectivity complementary to user-iteminteractions

Page 4: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Collaborative Filtering (CF)

• Collaborative Filtering (CF) is the most well-knowntechnique for recommendation.• Homophily assumption: a user preference can be predicted

from his/her similar users.

• Collaborative Signals -> Behavioral Similarity of users• if 𝑢1 and 𝑢3 have interacted with the same items {𝑖1, 𝑖3}, 𝑢1

is likely to have similar preferences on other items {𝑖4}.

𝒖𝟏 Alice

𝒖𝟐 Annie

𝒖𝟑 Bob

𝒊𝟏 Shape of You

𝒊𝟐 I See Fire

𝒊𝟑 Castle on the Hill

𝒊𝟒 Skin

𝒊𝟓 Lose Yourself

Page 5: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Revisiting CF viaHigh-order Connectivity

High-order Connectivity from User-item Bipartite Graphs

Why 𝑢1 may like 𝑖4?

• 𝑢1 ← 𝑖2 ← 𝑢2 ← 𝑖4

• 𝑢1 ← 𝑖3 ← 𝑢3 ← 𝑖4

• Definition: the paths that reach 𝑢1 from any node with the pathlength 𝑙 larger than 1.

• A natural way to encode collaborative signals

Existing CF methods (e.g., MF, FISM, AutoRec) don’t model high-order connectivity explicitly.- Embedding function only considers descriptive features (e.g., ID, attributes)- User-item interactions are not considered

Our contribution: CF modeling with high-order connectivity via GNN.

Page 6: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Neural Graph Collaborative Filtering

Embedding Propagation, inspired by GNNs

• Propagate embeddings recursively on the graph

• Construct information flows in the embedding space

First-order Propagation Message Construction: generate message from one neighbor

Message Aggregation: update ego node’s representation by aggregatingmessage from all neighbors

message passed from 𝑖 to 𝑢

• message dependent on the affinity,distinct from GCN, GraphSage, etc.

• Pass more information to similar nodes

all neighbors of 𝑢self-connections

discount factor

Page 7: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Neural Graph Collaborative Filtering

High-order Propagation We stack more embedding propagation layers to explore the high-order

connectivity information.

representation of 𝑢 at the 𝑙-th layer

• The collaborative signallike u1 ← i2 ← u2 ← i4can be captured in theembedding propagationprocess.

• Collaborative signal canbe injected into therepresentation learningprocess.

Page 8: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Overall Framework

The representations at different layers• emphasize the messages

passed over different connections

• have different contributions in reflecting user preference

Page 9: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Experiments

Datasets

• Gowalla, Amazon-Book, Yelp2018

Evaluation Metrics

• recall@K, ndcg@K

BaselinesData for EmbeddingFunction

Connectivity Aggregation Type inGNNs

Jump Knowledge

MF ID - - -

NeuFM ID - - -

CMN Personal History First-order - -

HOP-Rec Multi-hop Neighbors High-order - -

PinSage Collaborative Signals Second-order Concatenation -

GC-MC Collaborative Signals First-order Sum -

NGCF Collaborative Signals High-order Sum + Element-wiseProduct

Jump Knowledge

Page 10: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Overall Performance Comparison (1)

• NGCF consistently yields the best performance on all the datasets.

• This verifies the importance of capturing collaborative signal in embedding function.

0.125

0.13

0.135

0.14

0.145

0.15

0.155

MF NeuMF CMN HOP-Rec GC-MC PinSage NGCF

Gowalla recall@20

0.02

0.022

0.024

0.026

0.028

0.03

0.032

0.034

MF NeuMF CMN HOP-Rec GC-MC PinSage NGCF

Amazon-book recall@20

Page 11: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Overall Performance Comparison (2)

user groups with different group sparsity levels

• NGCF and HOP-Rec consistently outperform all other baselines on most user groups.

• Exploiting high-order connectivity facilitates the representation learning for inactive users.

• It might be promising to solve the sparsity issue in recommender systems

Page 12: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Effect of High-order Connectivity (1)

the number of embedding propagation layers {1,2,3,4}

• Increasing the depth of NGCF substantially enhances the recommendation cases.

• User similarity and collaborative signal are carried by the second- and third-order connectivity, respectively.

0.151

0.152

0.153

0.154

0.155

0.156

1 2 3 4

Gowalla recall@20

0.2215

0.222

0.2225

0.223

0.2235

0.224

0.2245

1 2 3 4

Gowalla ndcg@20

Page 13: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Effect of High-order Connectivity (2)

• The points with the same colors (i.e., the items consumed by the same users) tend to form the clusters.

• The connectivities of users and items are well reflected in the embedding space, that is, they are embedded into the near part of the space.

Page 14: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

Conclusion & Future Work

Take-home messages• Modeling high-order connectivity from user-item interactions is

important for CF.• We proposed a GNN model to do this in an end-to-end way.

Future Work• Incorporating knowledge graph into NGCF [Wang et al. KDD’19]• Automating NGCF, e.g., negative sampling, hyper-parameters• Keep Human-in-the-loop: conversational recommendation

Page 15: Neural Graph Collaborative Filteringstaff.ustc.edu.cn/~hexn/slides/sigir19-ngcf-slides.pdf · Gowalla ndcg@20. Effectof High-order Connectivity(2) • The points with the same colors

© Copyright NExT++. All Right Reserved.

THANK YOU!

Neural Graph Collaborative Filtering, SIGIR2019;http://staff.ustc.edu.cn/~hexn/papers/sigir19-NGCF.pdf