Intro Prelim Class/Reg MF Extend Combo Conclude
Collaborative Filtering
Practical Machine Learning, CS 294-34 Lester Mackey
Based on slides by Aleksandr Simma
October 18, 2009
Lester Mackey Collaborative Filtering
Collaborative Filtering Practical Machine Learning, CS 294-34 - - PowerPoint PPT Presentation
Intro Prelim Class/Reg MF Extend Combo Conclude Collaborative Filtering Practical Machine Learning, CS 294-34 Lester Mackey Based on slides by Aleksandr Simma October 18, 2009 Lester Mackey Collaborative Filtering Intro Prelim
Intro Prelim Class/Reg MF Extend Combo Conclude
Based on slides by Aleksandr Simma
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
1 Problem Formulation
2 Preliminaries
3 Classification/Regression
4 Low Dimensional Matrix Factorization
5 Extensions 6 Combining Methods
7 Conclusions
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Linder et al., 2003
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Das et al., 2007
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
http://www.netflix.com
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
http://www.netflixprize.com
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
|Q|
(rui − ˆ rui)2
|Q|
|rui − ˆ rui|
predicted top 10?
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Centering Shrinkage
methods: ˜ rui = rui − bui
systematic biases
around the mean
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Centering Shrinkage
methods: ˜ rui = rui − bui
1 |T |
1 |R(i)|
1 |R(u)|
1 |R(u)|
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Centering Shrinkage
a fixed, predetermined value
rating) for each user/item
R = A B C D E F User mean Alice 2 5 5 4 3 5 4 Bob 2 ? ? ? ? ? 2 Craig 3 3 4 3 ? 4 3.4
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Centering Shrinkage
a fixed, predetermined value
˜ bu = α α + |R(u)| ∗ µ + |R(u)| α + |R(u)| ∗ bu
bu ≈ user’s mean rating
bu ≈ global mean rating
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
conditionally independent given ri
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
u=1 1 (rui = v)
w=1
i=1 1 (rui = w)
u=1 1
z=1
u=1 1
u=1 |R(u)|2) time and O(M2V2) space for all items
ji P(ruj|rui = v)
w=1 P(rui = w) ji P(ruj|rui = w)
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
1 Compute similarity between i and every other item 2 Find K items rated by u most similar to i 3 Predict weighted average of similar items’ ratings
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
u=1 |R(u)|2) time Herlocker et al., 1999
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Herlocker et al., 1999
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
N(i;u) wij(ruj − buj)
1 |N(i;u)|
S(i,j)
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
~ wi.
2
Bell and Koren, 2007
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Bell and Koren, 2007
all users
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Bell and Koren, 2007
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
2
M
M
ij = 1
ij
ij − γ ∂
ij − γ(|N(i; u)|− 1
2 (ˆ
ij) Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Naive Bayes KNN
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
A,B
2 = argmin A,B U
M
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
A,B U
M
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
1 E step: X = W ∗ R + (1 − W) ∗ ˆ
R
(* represents entrywise product)
2 M step: [H, Σ, V] = SVD(X), ˆ
R = HU×KΣK×KVT
M×K
Srebro and Jaakkola, 2003
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
A,B U
M
U
M
A,B
U
M
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
1 For each user u, update
au ← (
i∈R(u) bibT i + λI)−1 i∈R(u) ruibi
2 For each item i, update
bi ← (
u∈R(i) auaT u + λI)−1 u∈R(i) ruiau
Zhou et al., 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
i∈R(u) bi(au, bi − rui)
u∈R(i) au(au, bi − rui)
1 For each user u, update
au ← au − γ(λau +
i∈R(u) bi(au, bi − rui))
2 For each item i, update
bi ← bi − γ(λbi +
u∈R(i) au(au, bi − rui))
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
1 For each (u, i) ∈ T 1
Calculate error: eui ← (au, bi − rui)
2
Update au ← au − γ(λau + bieui)
3
Update bi ← bi − γ(λbi + aueui)
Takacs et al., 2008, Funk, 2006
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
A,B U
M
K
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
1 Draw bu ∼ N(0, IK) 2 Draw ru ∼ N(Abu, Ψ) Canny, 2002
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude SVD Factor Analysis
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
don’t know the rating.
about the rating.
LOTR III more highly.
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
2
2
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
2
i∈T(u) ˜
bi where T(u) is the set of all items for which u has positive implicit feedback
˜ B,B
2
different patterns in the data
Paterek, 2007
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
A,˜ B,B
2
2
j∈T(u) ˜
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Koren, 2009
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
Koren, 2009
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
A(t),˜ B,B
2
Koren, 2009
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Implicit Feedback Time Dependence
2
2
Koren, 2009
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Var( X1
2 + X2 2 ) = 1 4(Var(X1) + Var(X2))
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Bell and Koren, 2007
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
Breiman, 1996
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude
2
2
2
Koren, 2008
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
a Distributed Collaborative Filtering Architecture,” Proc. 10th ACM SIGKDD Int. Conference on Knowledge Discovery and Data Mining, pp. 394401, 2004.
Derived Neighborhood Interpolation Weights,” IEEE International Conference on Data Mining (ICDM07), pp. 4352, 2007.
25th ACM SIGIR Conf.on Research and Development in Information Retrieval (SIGIR02), pp. 238245, 2002.
Personalization: Scalable Online Collaborative Filtering,” WWW07, pp. 271-280, 2007.
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
http://sifter.org/simon/journal/20061211.html, 2006.
Framework for Performing Collaborative Filtering,” in Proceedings of the Conference on Research and Development in Information Retrieval, 1999.
447-456, ACM, 2009.
collaborative filtering model. Proc. 14th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining (KDD08), pp. 426434, 2008.
Gaussian processes. ICML, ACM International Conference Proceeding Series, Vol. 382, p. 76, ACM, 2009.
Item-to-item Collaborative Filtering,” IEEE Internet Computing 7 (2003), 7680.
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
and the Missing at Random Assumption,” Proc. 23rd Conference on Uncertainty in Artificial Intelligence, 2007.
Collaborative Filtering,” Proc. KDD Cup and Workshop, 2007.
technical presentation, http://pragmatictheory.blogspot.com/, 2009.
Machines for collaborative filtering. Proc. 24th Annual International Conference on Machine Learning, pp. 791798, 2007.
International Conference on Machine Learning, pages 720-727. AAAI Press, 2003.
Scalable collaborative ltering approaches for large recommender
Times, Nov 21, 2008.
Lester Mackey Collaborative Filtering
Intro Prelim Class/Reg MF Extend Combo Conclude Challenges for CF References
prediction using a nonparametric random effects model. In The 25th International Conference on Machine Learning (ICML), 2009.
Collaborative Filtering for the Netix Prize,” AAIM 2008: 337-348.
Lester Mackey Collaborative Filtering