(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
Session-Based Recommender Systems
1. Session-Based Recommender Systems
FREDERICK AYALA GÓMEZ
PHD STUDENT IN COMPUTER SCIENCE
@FREDAYALA FREDERICKAYALA
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 1
Presented at
2. Agenda
Why bother?
What are Recommender Systems?
How to build recommendations?
Hands-on GRU4Rec
Conclusions
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 2
3. Are we good at
choosing among
multiple
options?
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 3
happiness
choices
Having too many choices is stressful
- Takes time
- Increase uncertainty
4. Web and SoMe
as a channel to
consume
content,
products and
services.
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 4
Taken from https://www.wired.com/2004/10/tail/
5. What are
recommender
systems?
Not so formal definition
Finding
relevant things
for a user based
on some kind
of feedback
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 5
Products
Content
Services
Offer
User
interests
What is
Relevant
6. “Recommendations account for about 60% of all video
clicks from the home page” <- 2010James Davidson, Benjamin Liebald, Junning Liu, Palash Nandy, Taylor Van Vleet, Ullas Gargi, Sujoy Gupta, Yu He, Mike Lambert, Blake Livingston, and Dasarathi Sampath.
2010. The YouTube video recommendation system. In Proceedings of the fourth ACM conference on Recommender systems (RecSys '10). ACM, New York,
NY, USA, 293-296. DOI=http://dx.doi.org/10.1145/1864708.1864770
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 6
“Recommendations account for about 60% of all video clicks
from the home page.”
7. What are recommender systems?
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 7
8. Types of
Feedback
Explicit Feedback
“Asking the user”
Ratings
Like/Dislike
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 8
Implicit Feedback is
more common in
practice
Implicit
Feedback
“Observe the
user behaviors”
Clicks
Previously
seen items
9. How to build recommender systems?
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 9
Two books about Recommender Systems
10. Matrix Factorization
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 10
Represent the users/items feedback as a matrix. Then, find two lower dimension matrixes that factorize it
R
Usually very
sparse since
users consume
few items
ItemsUsers
≈ P
Q
Users
Itemsf
f
Y. Koren, R. Bell and C. Volinsky, "Matrix
Factorization Techniques for Recommender
Systems," in Computer, vol. 42, no. 8, pp. 30-37,
Aug. 2009.
doi: 10.1109/MC.2009.263
Minimize the squared error function
This is done usually by Stochastic Gradient Descent or Alternating Least Squares
For binary feedback use iALS
The predicted score for each user-item is given by
Works very well for personalization (e.g. newsletters)
11. No user profile
…
Old feedback
could be irrelevant
…
~84% of our
recommendations
are item-to-item
- DomonkosTikk,CEO@GravityR&D
Lessons learnt at building
recommendation services at industry
scale,
https://www.slideshare.net/domonkostikk/lessons-
learnt-at-building-recommendation-services-at-
industry-scale
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 11
Online Shopping Blogs
Browsing AnonymouslyNews/Expiring Content
12. 4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 12
Linden et al. 2003. “Amazon.com Recommendations: Item-to-Item Collaborative Filtering” IEEE Internet Computing
Davidson et al. 2010. “The YouTube video recommendation system”. ACM RecSys '10. BCN, Spain.
The next item is recommended based on the similarity between the actual item and other items.
The similarity is computed by using the two item-session vectors:
With this similarities we can find the k Nearest Neighbors of item i.
Usually a very strong baseline.
1 2 3 . . . . i . . . j . . . . . m
1 1 1
2
. 1 1
. 1 1
. 1 1
n 1
Items
Sessions
Item-KNN
“people who viewed this item also viewed…”
13. Item-to-Item Recommendations
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 13
User Item
User 1 A
User 1 B
User 1 C
User 2 B
User 2 C
User 2 D
User 3 B
User 3 C
User 3 A
Item i Item j Count
B C 3
A B 2
C A 1
C D 1
14. 4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 14
Where:
i: Current item
j: Next item
k: Other items in the dataset
yi: Latent Factor for item i
yj: Latent Factor for item j
yk: Latent Factor for item k
bj: Bias item j
bj: Bias item k
N. Koenigstein, Y. Koren. "Towards scalable and accurate item-oriented recommendations". ACM RecSys '13. NY, USA.
Learn model parameters that maximize the log-likelihood of
the training set:
Using Stochastic Gradient Descent and Importance
Sampling to reduce the complexity of the training
After concatenating the biases to the latent factors, the best next item j is the closest vector to the item i
Not the best baseline for top-K evaluations
Euclidean Item Recommender
16. 4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 16
Recurrent
Neural Networks
Train a model with a
sequence that predicts
a higher probability for
the next element.
Also called
sequence-to-sequence
models
We learned the alphabet in this direction
Telling it backwards is harder
17. 4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 17
Recurrent Neural Networks
Taken from: http://karpathy.github.io/2015/05/21/rnn-effectiveness/
H
E
L
O
H
E
L
O
Input and
outputs are
one-hot-
encoded
Backpropagate to fix
errors (i.e. move the
hidden layers weights a
small amount in the
direction of the loss
function gradient)
nok
nok ok
ok
19. GRU4RecB. Hidasi, et al. 2016 “Session-based recommendations with recurrent neural networks”. ICLR 16’, San Juan, PR
Taken from the authors ICLR poster http://www.hidasi.eu/content/gru4rec_iclr16_poster.pdf
Optimize directly to the ranking using BPR or TOP1
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 19
22. Conclusions
4/20/2017 @FREDAYALA LINKEDIN.COM/IN/FREDERICKAYALA 22
Frederick Ayala Gómez
PhD Student in Computer Science
@fredayala frederickayala
Session-Based Recommender Systems are very common in real life
GRU4Rec code is open and GPU accelerated with Theano
Thanks!
+12.8%