Or "Matrix Factorization Techniques for Recommender Systems", published in 2009! (link to the paper)
Manually engineer features for each user and product, to characterize their nature. E.g. for movies: genre, participating actors, box office, user demographics.
Question: Then how do you make recommendations? Cosine similarity?
Term coined by the inventors of Tapestry, the first recommender system.
Because it's based on past user behavior, it suffers from the cold start problem in that it is unable to address new products and users.
Two primary areas of collaborative filtering are the neighborhood methods and latent factor models.
Neighborhood method can be item or user-oriented. Here's an example of a user-oriented neighborhood method:
user likes set of movies
we find users who also liked (neighbors) and determine which other movies they liked.
Movies are sorted by the numbers of likes they received by the neighbors.
In latent factor models, we try to infer latent factors from feedback. Because these latent factors are inferred, we can only interpret their nature. E.g. for movies, those latent factors could represent male vs female oriented, serious vs escapist, etc...
Feedback can be explicit (e.g. ratings, likes) or implicit (watch time).
Matrix factorization is a successful realization of latent factor models. In a 2D feedback matrix, rows represent users and columns represent items.
We are trying to find (item embeddings) and (user embeddings) subjected to where is the feedback matrix.
This problem is related to singular value decomposition. However, SVD fails due to the sparsity of .
Note: Do a recap on SVD. Why is it sensitive to sparsity?
We solve this problem by minimizing the following objective:
The second term is an L2 loss that reduces overfitting.
We can optimize this objective using stochastic gradient descent or alternating least squares, which is more adapted.
Note: Include Overview of alternating least squares
Rotate between fixing and solving least squares with respect to 's (convex) and vice-versa until convergence.
Alternating Least Squares can be parallelized because we can compute 's independently and 's independently.
Adding biases
Much of the observed variations in rating values are due to effects associated with either users or items, not with their interaction, as the dot product attempts to model. We model these biases using intercepts.
For example, some users give higher ratings, some items receive lower ratings.
models interaction, which is why those idiosyncratic properties are not captured by the latent factors.
The rating formula becomes where is the global rating average. We also add L2 regularization for the biases.
Implicit feedback
Let be the set of items with implicit feedback from user . A new user can be represented by a normalized sum:
where are the item factors.
We can also include user attributes such as demographics with indicator variables:
Why do we sum the implicit feedback and user attributes with the user factors? do we incur the risk that their norm is much larger / smaller than ?
Temporal dynamics
Popularity changes as new selections emerge. User preferences evolve over time. Allowing terms to vary with time can significantly improve accuracy.
The following terms vary over time:
Items () are static in nature.
Question: In practice, how is this achieved? do we quantize time and assign one parameter per time bin?
Additionally, the paper proposes multiplying the error term by a confidence value that stems from the number of data points we collected. For example, one-time implicit feedback signal might have been caused by factors that are independent of the user's preference.