SlideShare a Scribd company logo
1 of 22
A Contextual Attention Recurrent Architecture
for Context-Aware Venue Recommendation
Jarana Manotumruksa, Craig Macdonald and Iadh Ounis
University of Glasgow
SIGIR 2018
1
Introduction
2
In Location-Based Social Networks (LBSNs), users can leave feedback
on venues they have visited
Shopping
Context-Aware Venue Recommendation (CAVR) Task: Given a userโ€™s
sequence of checkins and preferred time, which venues should be
recommended to the user?
Attractions Restaurant
17:00
1 July 2018
20:00
1 July 2018
18:00
7 July 2018
ฮ”t = 3 hours
ฮ”g = 1 km
ฮ”t = 6 days
ฮ”g = 10 km
20:00
7 July 2018
Challenges
โ€ข How to capture usersโ€™ short-term (dynamic) preferences
โ€ข How to incorporate different types of context associated
with checkins
Transition
Context
Ordinary
Context
ฮ”t = 2 hours
ฮ”g = ?
Related Work
3
[1] Koren, et al. Matrix factorization techniques for recommender systems. Computer 8. 2009
[2] Zhang, Yuyu, et al. "Sequential Click Prediction for Sponsored Search with Recurrent Neural Networks." AAAI. 2014.
[3] Manotumruksa, Jarana, et al. "A Deep Recurrent Collaborative Filtering Framework for Venue Recommendation." CIKM. 2017.
Sequential-based MF approaches [2,3]
Matrix Factorisation (MF)[1]
? 1 1 1 1
1 1
1 1
1 1 1 1
usersโ€™ latent factors
venuesโ€™ latent factors
U1
U2
U3
U4
U1
U2
U3
U4
Assumption: similar users like to visit similar venues
User Checkin Matrix
Dot product
MF cannot model a userโ€™s dynamic preferences
from their sequence of checkins
โ‰ˆ
U1 ?
Predicted checkin
โ‰ˆ
U1
Dot product
Recurrent
Model
[2,3] leverage recurrent models (e.g. LSTM and GRU) to capture the userโ€™s dynamic
preference from sequence of userโ€™s checkins
However, these approaches do not take the context associated with
the checkins into account
Related Work
4
TimeGRU is an extension of Gated Recurrent Unit (GRU) that
considers the time interval between two successive checkins [1]
[1] Zhu, Yu, et al. "What to do next: Modeling user behaviors by time-lstm." Proc. of IJCAI, 2017.
[2] Smirnova, Elena, and Flavian Vasile. "Contextual sequence modeling for recommendation with recurrent neural networks." Proc. of DLRS, 2017.
[3] Beutel, Alex, et al. "Latent Cross: Making Use of Context in Recurrent Recommender Systems." Proc. of WSDM, 2018.
ContextualGatedRecurrentUnit(CGRU)[2]andLatentCross[3]
[2,3] extent GRU to incorporate multiple types of context
TimeGRU cannot incorporate other types of transition contexts
(e.g. distance between two checkins)
Recurrent
Unit
Recurrent
Unit
Recurrent
Unit
Assumption: the shorter the time interval between checkins, the stronger the
correlation between them and vice versa.
ฮ”t = 6 days ฮ”t = 2 hours
ฮ”t = 1 day
ฮ”g = 200 meters
Recurrent
Unit
Recurrent
Unit
Recurrent
Unit
Hidden state Hidden state
Hidden state Hidden state
1 July 2018
ฮ”t = 6 days
ฮ”g = 2 km
7 July 2018
ฮ”t = 1 days
ฮ”g = 200 meters
7 July 2018
CGRU and LatentCross treat the ordinary and transition
context equally
Our Contributions
5
1. a Contextual Attention Recurrent Architecture (CARA), an
extension of GRU that incorporates different types of
context to model usersโ€™ dynamic preference for CAVR
2. a Contextual Attention Gate (CAG) that controls the
influences of ordinary context
3. a Time- and Spatial-based Gate (TSG) that controls the
influence of transition context
Our CARA Architecture
6
Input
Layer
U1
Embedding
Layer
Sequence of Previous checkins
Target user
U1
Userโ€™s static
latent factor
Venueโ€™s latent
factor
Recurrent
Layer
Output
Layer
U1 ?
Predicted checkin
โ‰ˆ
U1
Dot product
Contextโ€™s latent
factor
Hidden state Hidden state
1 July 2018
ฮ”t = 6 days
ฮ”g = 1 km
7 July 2018 8 July 2018
Target venue
ฮ”t = 1 days
ฮ”g = 500 meters
Venueโ€™s latent
factor
Contextโ€™s latent
factor
Venueโ€™s latent
factor
Contextโ€™s latent
factor
1 July 2018 7 July 2018 8 July 2018
Recurrent Unit Recurrent Unit Recurrent Unit
Proposed CARA : GRUs
7
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
h
Previous Unit Next Unit
๐’–, ๐’“ = ๐ˆ(๐‘พ๐“๐’— + ๐‘น๐’‰ ๐‰โˆ’๐Ÿ + ๐’ƒ)
- Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit
and the latent factor of the venue
Proposed CARA : GRUs
8
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
hฬ‚
Previous Unit Next Unit
hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐’ƒ)
- Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit
and the latent factor of the venue
Proposed CARA : GRUs
9
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
hฬ‚
Previous Unit Next Unit
h = ๐Ÿ โˆ’ ๐’– ๐’‰ ๐‰โˆ’๐Ÿ + uhฬ‚
- Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit
and the latent factor of the venue
Proposed CARA : CAG
10
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
h
Previous Unit
Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
- Contextual Attention Gate (CAG) controls the influences of the ordinary context (e.g. time-
of-day) and the hidden state of previous unit
๐’‚ = ๐ˆ(๐‘พ๐’‰ ๐‰โˆ’๐Ÿ + ๐‘พ๐“๐’• + ๐’ƒ)
Proposed CARA : CAG
11
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
hฬ‚
Previous Unit
Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
- Next, we update the reset and update gates as well as the candidate hidden state as follow
๐’–, ๐’“ = ๐ˆ(๐‘พ๐“๐’— + ๐‘น๐’‰ ๐‰โˆ’๐Ÿ + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ)
hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ)
Pre-Fusion
Proposed CARA : CAG
12
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
h
Previous Unit Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
1-
h = ๐Ÿ โˆ’ ๐œถ โŠ— ๐“๐’• โŠ— (๐Ÿ โˆ’ ๐’– ๐’‰ ๐‰โˆ’๐Ÿ + ๐’–hฬ‚)
Post-Fusion
- Contextual Attention Gate (CAG) controls the influences of the ordinary context (e.g. time-
of-day) and the hidden state of previous unit
Proposed CARA : CAG
13
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
h
Previous Unit Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
1-
Post-Fusion
Pre-Fusion
Pre-Fusion
Post-Fusion
- the ordinary context has less impact to the current hidden state
- the ordinary context has more impact to the current hidden state
Proposed CARA : TSG
14
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
z
1- Hidden state of
current unit
r
h
Previous Unit Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
1-
Transition context
TS
๐“๐’ = ๐ˆ ๐‘พ๐“๐’— + ๐ˆ ๐‘พ๐šซ๐ญ + ๐› โŠ— ๐ˆ ๐‘พ๐“๐’— + ๐ˆ ๐‘พ๐šซ๐  + ๐›
- Time- and Spatial Gate (TSG) controls the influences of previous hidden state based on the
transition context (i.e. time interval and distance between two checkins)
๐šซ๐ญ, ๐šซ๐ 
Proposed CARA : TSG
15
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
z
1- Hidden state of
current unit
r
hฬ‚
Previous Unit Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
1-
Transition context
TS
hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐‘ป๐‘บ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ)
- Time- and Spatial Gate (TSG) controls the influences of hidden state based on the transition
context (i.e. time interval and geographical distance between two checkins
๐šซ๐ญ, ๐šซ๐ 
Proposed CARA : Summary
16
Hidden state of
previous unit
Venueโ€™s latent
factor
Current Unit
u
1- Hidden state of
current unit
r
hฬ‚
Previous Unit Next Unit
Ordinary contextโ€™s
latent factor
Ordinary contextโ€™s
latent factor
a
1-
Transition context
TS
Userโ€™s dynamic preferences โœ”
Support multiple types of context โœ”
Independently incorporate ordinary and transition context? โœ”
Experimental Setup
17
Datasets: 3 large datasets (Brightkite, Foursquare and Yelp)
Evaluation Methodology: Leave-one-out
Experiment: Normal Users (those with >= 10 checkins)
Measures: Hit Ratio (HR) and NDCG
Significance testing: paired t-test with p < 0.01
Brightkite Foursquare Yelp
# of normal users 14,374 10,766 38,945
# of cold-start users 5,578 154 6903
# of venues 5,050 10,695 34,245
# of check-ins 681,024 1,336,278 981,379
% density of checkins matrix 0.93 1.16 0.07
Baselines and CARA
18
Model Context-aware Ordinary /
Transition
Special
gates
Pre & Post
Fusion
RNN โœ˜ โœ˜ โœ˜ โœ˜
TimeGRU Only time Only
transition
โœ” โœ˜
CGRU โœ” Equally โœ˜ โœ˜
LatentCross โœ” Equally โœ˜ โœ”
CARA โœ” Separately โœ” โœ”
RQ 1: Is it important to model ordinary and transition contexts
separately?
RQ 2: Can our proposed Time- and Spatial-based Gates (TSG)
enhance the effectiveness of traditional recurrent units in capturing
usersโ€™ dynamic preferences?
Results
19
RQ 1: Is it important to model ordinary and transition context separately?
Brightkite Foursquare Yelp
Model HR NDCG HR NDCG HR NDCG
RNN 0.6657* 0.4407* 0.8302* 0.5762* 0.4164* 0.2146*
TimeGRU 0.7005* 0.4816* 0.8570* 0.6167* 0.4342* 0.2240*
CGRU 0.6969* 0.5659* 0.8592* 0.6985* 0.5194* 0.3005*
LatentCross 0.7063* 0.5727* 0.8616* 0.6964* 0.5210* 0.2991*
CARA 0.7385 0.6040 0.8851 0.7154 0.5587 0.3272
Effects of transition context
20
RQ 2: Can our proposed Time- and Spatial-based Gates (TSG) enhance the effectiveness of
traditional recurrent units in capturing the usersโ€™ dynamic preferences?
Conclusions
21
โ€ข We proposed Contextual Attention Recurrent Architecture
(CARA) for context-aware venue recommendation
โ€ข Contextual Attention Gate for ordinary context
โ€ข Time- and Spatial-based Gate for transition context
โ€ข Experimental results demonstrate the effectiveness of CARA in
comparison with several SOTA approaches
โ€ข The ordinary and transition context should be treated
separately
โ€ข Different types of transition context can enhance the
effectiveness of CAVR
22
Thank You
Source code
https://github.com/feay1234/CARA

More Related Content

Similar to A Contextual Attention Recurrent Architecture for Context-Aware Venue Recommendation

MPCR_R_O_V_E_R_Final
MPCR_R_O_V_E_R_FinalMPCR_R_O_V_E_R_Final
MPCR_R_O_V_E_R_Final
Washington Garcia
ย 
Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)
Julio Gonzalez-Saenz
ย 
Human Action Recognition
Human Action RecognitionHuman Action Recognition
Human Action Recognition
NAVER Engineering
ย 
UNF Undergrad Physics
UNF Undergrad PhysicsUNF Undergrad Physics
UNF Undergrad Physics
Nick Kypreos
ย 

Similar to A Contextual Attention Recurrent Architecture for Context-Aware Venue Recommendation (20)

Theories and Applications of Spatial-Temporal Data Mining and Knowledge Disco...
Theories and Applications of Spatial-Temporal Data Mining and Knowledge Disco...Theories and Applications of Spatial-Temporal Data Mining and Knowledge Disco...
Theories and Applications of Spatial-Temporal Data Mining and Knowledge Disco...
ย 
NS-CUK Seminar: S.T.Nguyen, Review on "Continuous-Time Sequential Recommendat...
NS-CUK Seminar: S.T.Nguyen, Review on "Continuous-Time Sequential Recommendat...NS-CUK Seminar: S.T.Nguyen, Review on "Continuous-Time Sequential Recommendat...
NS-CUK Seminar: S.T.Nguyen, Review on "Continuous-Time Sequential Recommendat...
ย 
Testing the global grid of master events for waveform cross correlation with ...
Testing the global grid of master events for waveform cross correlation with ...Testing the global grid of master events for waveform cross correlation with ...
Testing the global grid of master events for waveform cross correlation with ...
ย 
[Review] contact model fusion
[Review] contact model fusion[Review] contact model fusion
[Review] contact model fusion
ย 
Hierarchical Context enabled Recurrent Neural Network for Recommendation
Hierarchical Context enabled Recurrent Neural Network for RecommendationHierarchical Context enabled Recurrent Neural Network for Recommendation
Hierarchical Context enabled Recurrent Neural Network for Recommendation
ย 
[20240429_LabSeminar_Huy]Spatio-Temporal Graph Neural Point Process for Traff...
[20240429_LabSeminar_Huy]Spatio-Temporal Graph Neural Point Process for Traff...[20240429_LabSeminar_Huy]Spatio-Temporal Graph Neural Point Process for Traff...
[20240429_LabSeminar_Huy]Spatio-Temporal Graph Neural Point Process for Traff...
ย 
Biosight: Quantitative Methods for Policy Analysis: Stochastic Dynamic Progra...
Biosight: Quantitative Methods for Policy Analysis: Stochastic Dynamic Progra...Biosight: Quantitative Methods for Policy Analysis: Stochastic Dynamic Progra...
Biosight: Quantitative Methods for Policy Analysis: Stochastic Dynamic Progra...
ย 
Gravitational search algorithm with chaotic map (gsa cm) for solving optimiza...
Gravitational search algorithm with chaotic map (gsa cm) for solving optimiza...Gravitational search algorithm with chaotic map (gsa cm) for solving optimiza...
Gravitational search algorithm with chaotic map (gsa cm) for solving optimiza...
ย 
DDPG algortihm for angry birds
DDPG algortihm for angry birdsDDPG algortihm for angry birds
DDPG algortihm for angry birds
ย 
[JPDC,JCC@LMN22] Ad hoc systems Management and specification with distributed...
[JPDC,JCC@LMN22] Ad hoc systems Management and specification with distributed...[JPDC,JCC@LMN22] Ad hoc systems Management and specification with distributed...
[JPDC,JCC@LMN22] Ad hoc systems Management and specification with distributed...
ย 
Icmtea
IcmteaIcmtea
Icmtea
ย 
Indoor Heading Estimation
 Indoor Heading Estimation Indoor Heading Estimation
Indoor Heading Estimation
ย 
MPCR_R_O_V_E_R_Final
MPCR_R_O_V_E_R_FinalMPCR_R_O_V_E_R_Final
MPCR_R_O_V_E_R_Final
ย 
Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)
ย 
Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)Automated design of multiphase space missions using hybrid optimal contro (1)
Automated design of multiphase space missions using hybrid optimal contro (1)
ย 
Case Studies & Network Planning Tools
Case Studies & Network Planning ToolsCase Studies & Network Planning Tools
Case Studies & Network Planning Tools
ย 
safe and efficient off policy reinforcement learning
safe and efficient off policy reinforcement learningsafe and efficient off policy reinforcement learning
safe and efficient off policy reinforcement learning
ย 
A Hybrid Deep Neural Network Model For Time Series Forecasting
A Hybrid Deep Neural Network Model For Time Series ForecastingA Hybrid Deep Neural Network Model For Time Series Forecasting
A Hybrid Deep Neural Network Model For Time Series Forecasting
ย 
Human Action Recognition
Human Action RecognitionHuman Action Recognition
Human Action Recognition
ย 
UNF Undergrad Physics
UNF Undergrad PhysicsUNF Undergrad Physics
UNF Undergrad Physics
ย 

Recently uploaded

Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
HyderabadDolls
ย 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
ย 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
ย 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
HyderabadDolls
ย 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
ย 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
ย 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
ย 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
ย 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
ย 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
ย 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
ย 

Recently uploaded (20)

Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
ย 
Charbagh + Female Escorts Service in Lucknow | Starting โ‚น,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting โ‚น,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting โ‚น,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting โ‚น,5K To @25k with A/C...
ย 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
ย 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ย 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
ย 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
ย 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
ย 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
ย 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
ย 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
ย 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
ย 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
ย 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
ย 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
ย 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
ย 
๐Ÿ’ž Safe And Secure Call Girls Agra Call Girls Service Just Call ๐Ÿ‘๐Ÿ‘„6378878445 ๐Ÿ‘...
๐Ÿ’ž Safe And Secure Call Girls Agra Call Girls Service Just Call ๐Ÿ‘๐Ÿ‘„6378878445 ๐Ÿ‘...๐Ÿ’ž Safe And Secure Call Girls Agra Call Girls Service Just Call ๐Ÿ‘๐Ÿ‘„6378878445 ๐Ÿ‘...
๐Ÿ’ž Safe And Secure Call Girls Agra Call Girls Service Just Call ๐Ÿ‘๐Ÿ‘„6378878445 ๐Ÿ‘...
ย 
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service AvailableVastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
ย 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
ย 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptx
ย 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
ย 

A Contextual Attention Recurrent Architecture for Context-Aware Venue Recommendation

  • 1. A Contextual Attention Recurrent Architecture for Context-Aware Venue Recommendation Jarana Manotumruksa, Craig Macdonald and Iadh Ounis University of Glasgow SIGIR 2018 1
  • 2. Introduction 2 In Location-Based Social Networks (LBSNs), users can leave feedback on venues they have visited Shopping Context-Aware Venue Recommendation (CAVR) Task: Given a userโ€™s sequence of checkins and preferred time, which venues should be recommended to the user? Attractions Restaurant 17:00 1 July 2018 20:00 1 July 2018 18:00 7 July 2018 ฮ”t = 3 hours ฮ”g = 1 km ฮ”t = 6 days ฮ”g = 10 km 20:00 7 July 2018 Challenges โ€ข How to capture usersโ€™ short-term (dynamic) preferences โ€ข How to incorporate different types of context associated with checkins Transition Context Ordinary Context ฮ”t = 2 hours ฮ”g = ?
  • 3. Related Work 3 [1] Koren, et al. Matrix factorization techniques for recommender systems. Computer 8. 2009 [2] Zhang, Yuyu, et al. "Sequential Click Prediction for Sponsored Search with Recurrent Neural Networks." AAAI. 2014. [3] Manotumruksa, Jarana, et al. "A Deep Recurrent Collaborative Filtering Framework for Venue Recommendation." CIKM. 2017. Sequential-based MF approaches [2,3] Matrix Factorisation (MF)[1] ? 1 1 1 1 1 1 1 1 1 1 1 1 usersโ€™ latent factors venuesโ€™ latent factors U1 U2 U3 U4 U1 U2 U3 U4 Assumption: similar users like to visit similar venues User Checkin Matrix Dot product MF cannot model a userโ€™s dynamic preferences from their sequence of checkins โ‰ˆ U1 ? Predicted checkin โ‰ˆ U1 Dot product Recurrent Model [2,3] leverage recurrent models (e.g. LSTM and GRU) to capture the userโ€™s dynamic preference from sequence of userโ€™s checkins However, these approaches do not take the context associated with the checkins into account
  • 4. Related Work 4 TimeGRU is an extension of Gated Recurrent Unit (GRU) that considers the time interval between two successive checkins [1] [1] Zhu, Yu, et al. "What to do next: Modeling user behaviors by time-lstm." Proc. of IJCAI, 2017. [2] Smirnova, Elena, and Flavian Vasile. "Contextual sequence modeling for recommendation with recurrent neural networks." Proc. of DLRS, 2017. [3] Beutel, Alex, et al. "Latent Cross: Making Use of Context in Recurrent Recommender Systems." Proc. of WSDM, 2018. ContextualGatedRecurrentUnit(CGRU)[2]andLatentCross[3] [2,3] extent GRU to incorporate multiple types of context TimeGRU cannot incorporate other types of transition contexts (e.g. distance between two checkins) Recurrent Unit Recurrent Unit Recurrent Unit Assumption: the shorter the time interval between checkins, the stronger the correlation between them and vice versa. ฮ”t = 6 days ฮ”t = 2 hours ฮ”t = 1 day ฮ”g = 200 meters Recurrent Unit Recurrent Unit Recurrent Unit Hidden state Hidden state Hidden state Hidden state 1 July 2018 ฮ”t = 6 days ฮ”g = 2 km 7 July 2018 ฮ”t = 1 days ฮ”g = 200 meters 7 July 2018 CGRU and LatentCross treat the ordinary and transition context equally
  • 5. Our Contributions 5 1. a Contextual Attention Recurrent Architecture (CARA), an extension of GRU that incorporates different types of context to model usersโ€™ dynamic preference for CAVR 2. a Contextual Attention Gate (CAG) that controls the influences of ordinary context 3. a Time- and Spatial-based Gate (TSG) that controls the influence of transition context
  • 6. Our CARA Architecture 6 Input Layer U1 Embedding Layer Sequence of Previous checkins Target user U1 Userโ€™s static latent factor Venueโ€™s latent factor Recurrent Layer Output Layer U1 ? Predicted checkin โ‰ˆ U1 Dot product Contextโ€™s latent factor Hidden state Hidden state 1 July 2018 ฮ”t = 6 days ฮ”g = 1 km 7 July 2018 8 July 2018 Target venue ฮ”t = 1 days ฮ”g = 500 meters Venueโ€™s latent factor Contextโ€™s latent factor Venueโ€™s latent factor Contextโ€™s latent factor 1 July 2018 7 July 2018 8 July 2018 Recurrent Unit Recurrent Unit Recurrent Unit
  • 7. Proposed CARA : GRUs 7 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r h Previous Unit Next Unit ๐’–, ๐’“ = ๐ˆ(๐‘พ๐“๐’— + ๐‘น๐’‰ ๐‰โˆ’๐Ÿ + ๐’ƒ) - Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit and the latent factor of the venue
  • 8. Proposed CARA : GRUs 8 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r hฬ‚ Previous Unit Next Unit hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐’ƒ) - Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit and the latent factor of the venue
  • 9. Proposed CARA : GRUs 9 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r hฬ‚ Previous Unit Next Unit h = ๐Ÿ โˆ’ ๐’– ๐’‰ ๐‰โˆ’๐Ÿ + uhฬ‚ - Gated Recurrent Unit (GRU) controls the influences of the hidden state of previous unit and the latent factor of the venue
  • 10. Proposed CARA : CAG 10 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r h Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a - Contextual Attention Gate (CAG) controls the influences of the ordinary context (e.g. time- of-day) and the hidden state of previous unit ๐’‚ = ๐ˆ(๐‘พ๐’‰ ๐‰โˆ’๐Ÿ + ๐‘พ๐“๐’• + ๐’ƒ)
  • 11. Proposed CARA : CAG 11 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r hฬ‚ Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a - Next, we update the reset and update gates as well as the candidate hidden state as follow ๐’–, ๐’“ = ๐ˆ(๐‘พ๐“๐’— + ๐‘น๐’‰ ๐‰โˆ’๐Ÿ + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ) hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ) Pre-Fusion
  • 12. Proposed CARA : CAG 12 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r h Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a 1- h = ๐Ÿ โˆ’ ๐œถ โŠ— ๐“๐’• โŠ— (๐Ÿ โˆ’ ๐’– ๐’‰ ๐‰โˆ’๐Ÿ + ๐’–hฬ‚) Post-Fusion - Contextual Attention Gate (CAG) controls the influences of the ordinary context (e.g. time- of-day) and the hidden state of previous unit
  • 13. Proposed CARA : CAG 13 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r h Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a 1- Post-Fusion Pre-Fusion Pre-Fusion Post-Fusion - the ordinary context has less impact to the current hidden state - the ordinary context has more impact to the current hidden state
  • 14. Proposed CARA : TSG 14 Hidden state of previous unit Venueโ€™s latent factor Current Unit z 1- Hidden state of current unit r h Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a 1- Transition context TS ๐“๐’ = ๐ˆ ๐‘พ๐“๐’— + ๐ˆ ๐‘พ๐šซ๐ญ + ๐› โŠ— ๐ˆ ๐‘พ๐“๐’— + ๐ˆ ๐‘พ๐šซ๐  + ๐› - Time- and Spatial Gate (TSG) controls the influences of previous hidden state based on the transition context (i.e. time interval and distance between two checkins) ๐šซ๐ญ, ๐šซ๐ 
  • 15. Proposed CARA : TSG 15 Hidden state of previous unit Venueโ€™s latent factor Current Unit z 1- Hidden state of current unit r hฬ‚ Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a 1- Transition context TS hฬ‚ = ๐’•๐’‚๐’๐’‰(๐‘พ๐“๐’— + ๐‘น(๐’“ โŠ— ๐‘ป๐‘บ โŠ— ๐’‰ ๐‰โˆ’๐Ÿ) + ๐‘พ ๐œถ โŠ— ๐“๐’• + ๐’ƒ) - Time- and Spatial Gate (TSG) controls the influences of hidden state based on the transition context (i.e. time interval and geographical distance between two checkins ๐šซ๐ญ, ๐šซ๐ 
  • 16. Proposed CARA : Summary 16 Hidden state of previous unit Venueโ€™s latent factor Current Unit u 1- Hidden state of current unit r hฬ‚ Previous Unit Next Unit Ordinary contextโ€™s latent factor Ordinary contextโ€™s latent factor a 1- Transition context TS Userโ€™s dynamic preferences โœ” Support multiple types of context โœ” Independently incorporate ordinary and transition context? โœ”
  • 17. Experimental Setup 17 Datasets: 3 large datasets (Brightkite, Foursquare and Yelp) Evaluation Methodology: Leave-one-out Experiment: Normal Users (those with >= 10 checkins) Measures: Hit Ratio (HR) and NDCG Significance testing: paired t-test with p < 0.01 Brightkite Foursquare Yelp # of normal users 14,374 10,766 38,945 # of cold-start users 5,578 154 6903 # of venues 5,050 10,695 34,245 # of check-ins 681,024 1,336,278 981,379 % density of checkins matrix 0.93 1.16 0.07
  • 18. Baselines and CARA 18 Model Context-aware Ordinary / Transition Special gates Pre & Post Fusion RNN โœ˜ โœ˜ โœ˜ โœ˜ TimeGRU Only time Only transition โœ” โœ˜ CGRU โœ” Equally โœ˜ โœ˜ LatentCross โœ” Equally โœ˜ โœ” CARA โœ” Separately โœ” โœ” RQ 1: Is it important to model ordinary and transition contexts separately? RQ 2: Can our proposed Time- and Spatial-based Gates (TSG) enhance the effectiveness of traditional recurrent units in capturing usersโ€™ dynamic preferences?
  • 19. Results 19 RQ 1: Is it important to model ordinary and transition context separately? Brightkite Foursquare Yelp Model HR NDCG HR NDCG HR NDCG RNN 0.6657* 0.4407* 0.8302* 0.5762* 0.4164* 0.2146* TimeGRU 0.7005* 0.4816* 0.8570* 0.6167* 0.4342* 0.2240* CGRU 0.6969* 0.5659* 0.8592* 0.6985* 0.5194* 0.3005* LatentCross 0.7063* 0.5727* 0.8616* 0.6964* 0.5210* 0.2991* CARA 0.7385 0.6040 0.8851 0.7154 0.5587 0.3272
  • 20. Effects of transition context 20 RQ 2: Can our proposed Time- and Spatial-based Gates (TSG) enhance the effectiveness of traditional recurrent units in capturing the usersโ€™ dynamic preferences?
  • 21. Conclusions 21 โ€ข We proposed Contextual Attention Recurrent Architecture (CARA) for context-aware venue recommendation โ€ข Contextual Attention Gate for ordinary context โ€ข Time- and Spatial-based Gate for transition context โ€ข Experimental results demonstrate the effectiveness of CARA in comparison with several SOTA approaches โ€ข The ordinary and transition context should be treated separately โ€ข Different types of transition context can enhance the effectiveness of CAVR