3. Item Recommendation
• Classical item recommendation problem (see Netflix)
• Explicit feedbacks (ratings)
16th January, 20133 LAWA Workpackage Meeting
5 ?
?
The Matrix The Matrix 2 Twilight The Matrix 3
?
4. Collaborative Filtering (Explicit)
• Classical item recommendation problem (see Netflix)
• Explicit feedbacks (ratings)
• Collaborative Filtering
• Based on other users
16th January, 20134 LAWA Workpackage Meeting
5
5
4
5
5
?
?
The Matrix 3The Matrix The Matrix 2 Twilight
5
?
5. Collaborative Filtering (Implicit)
• Items are not movies only (live content, products, holidays, …)
• Implicit feedbacks (buy, view, …)
• Less information about pref.
16th January, 20135 LAWA Workpackage Meeting
?
?
Item4Item1 Item2 Item3
?
6. Industrial motivation
• Keeping the response time low
• Up-to-date user models, the adaptation should be fast
• The items may change rapidly, the training time can be a bottleneck of
live performance
• Increasing amount of data from a customer Increasing training time
• Limited resources
16th January, 20136 LAWA Workpackage Meeting
40. Optimizer – Coordinate Descent
• Complexity of naive solution: 𝚶 𝑰𝑲𝑵𝑴
• Ridge Regression calculates the features based on examples directly,
Covariance precomputing solution cannot be applied here.
40 LAWA Workpackage Meeting 16th January, 2013
41. Optimizer – Coordinate Descent Improvement
• Synthetic examples (Pilászy, Zibriczky, Tikk)
• Solution of Ridgre Regression with CD: 𝑝 𝑢𝑘 = 𝑖=1
𝑀
𝑐 𝑢𝑖 𝑞 𝑖𝑘 𝑒 𝑢𝑖
𝑖=1
𝑀
𝑐 𝑢𝑖 𝑞 𝑖𝑘 𝑞 𝑖𝑘
=
𝑆𝑄𝐸
𝑆𝑄𝑄
• Calculate statistics for this user, who watched nothing (𝑆𝐸𝑄0 and 𝑆𝑄𝑄0)
• The solution is calculated incrementally: 𝑝 𝑢𝑘 =
𝑆𝑄𝐸
𝑆𝑄𝑄
=
𝑆𝑄𝐸0+𝑆𝑄𝐸+
𝑆𝑄𝑄0+𝑆𝑄𝑄+
( 𝑴 + #𝑷(𝒖)+ steps)
• Eigenvalue decomposition: 𝑄 𝑇
𝑄 = 𝑆Λ𝑆 𝑇
= 𝑆 Λ
𝑇
Λ𝑆 = 𝐺 𝑇
𝐺
• Zero examples are compressed to synthetic examples: 𝑄 𝑀𝑥𝐾 → 𝐺 𝐾𝑥𝐾
• 𝑆𝐺𝐺0 = 𝑆𝑄𝑄0, but needs only 𝐊 steps to compute: 𝑝 𝑢𝑘 =
𝑺𝑮𝑬 𝟎+𝑆𝑄𝐸+
𝑺𝑮𝑮 𝟎+𝑆𝑄𝑄+
( 𝑲 + #𝑷(𝒖)+ steps)
• 𝑆𝐺𝐸0 is calculated the same way as 𝑆𝑄𝐸0, but using 𝐊 steps only.
• Complexity: 𝛰 𝐼𝐾(𝐸 + 𝐾𝑀 + 𝐾𝑁)) = 𝚶 𝑰𝑲(𝑬 + 𝑲(𝑴 + 𝑵)
41 LAWA Workpackage Meeting 16th January, 2013
42. Optimizer – Coordinate Descent
• Complexity of naive solution: 𝚶 𝑰𝑲𝑵𝑴
• Ridge Regression calculates the features based on examples directly,
Covariance precomputing solution cannot be applied here.
• Synthetic Examples
• Codename: IALS1
• Complexity reduction (IALSIALS1)
𝜪 𝑰𝑲(𝑬 + 𝑲(𝑴 + 𝑵)
• IALS1 requires higher 𝑲 for the same accuracy as IALS.
42 LAWA Workpackage Meeting 16th January, 2013
43. Optimizer – Coordinate Descent
...does it work in practice?
16th January, 201343 LAWA Workpackage Meeting
44. • Average Rank Position on the subset of a propietary implicit feedback dataset. The lower
value is better.
• IALS1 offers better time-accuracy tradeoffs, especially when K is large.
Comparison
44 LAWA Workpackage Meeting 16th January, 2013
IALS IALS1
K ARP time ARP time
5 0,1903 153 0,1898 112
10 0,1578 254 0,1588 134
20 0,1427 644 0,1432 209
50 0,1334 2862 0,1344 525
100 0,1314 11441 0,1325 1361
250 0,1311 92944 0,1312 6651
500 N/A N/A 0,1282 24697
1000 N/A N/A 0,1242 104611
0,120
0,125
0,130
0,135
0,140
0,145
0,150
0,155
100 1000 10000 100000
ARP
Training Time (s)
IALS IALS1
45. Conclusion
• Explicit feedbacks are rarely or not provided.
• Implicit feedbacks are more general.
• Complexity issues of Alternating Least Squares.
• Efficient solution by using approximation and synthetic examples.
• IALS1 offers better time-accuracy tradeoffs, especially when 𝑲 is large.
• IALS is approximation algorithm too, so why not change it to be even
more approximative?
45 LAWA Workpackage Meeting 16th January, 2013
56. Related Publications
• Alternating Least Squares with Coordinate Descent
I. Pilászy, D. Zibriczky, D. Tikk. Fast ALS-based matrix factorization for explicit and
implicit feedback datasets. RecSys 2010
• Tensor Factorization
B. Hidasi, D. Tikk: Fast ALS-Based Tensor Factorization for Context-Aware
Recommendation from Implicit Feedback, ECML PKDD 2012
• Personalized Ranking
G. Takács, D. Tikk: Alternating least squares for personalized ranking, RecSys 2012
• IPTV Case Study
D. Zibriczky, B. Hidasi, Z. Petres, D. Tikk: Personalized recommendation of linear content
on interactive TV platforms: beating the cold start and noisy implicit user feedback,
TVMMP @ UMAP 2012
56 LAWA Workpackage Meeting 16th January, 2013