netflix-prize-paper

Or "Matrix Factorization Techniques for Recommender Systems", published in 2009! (link to the paper)

Content filtering approach

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?

Collaborative filtering

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:

  1. user likes set of movies MM

  2. we find users who also liked MM (neighbors) and determine which other movies they liked.

  3. 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 Q⃗\vec{Q} (item embeddings) and P⃗\vec{P} (user embeddings) subjected to R=QTPR = Q^T P where RR is the feedback matrix.

This problem is related to singular value decomposition. However, SVD fails due to the sparsity of RR.

Note: Do a recap on SVD. Why is it sensitive to sparsity?

We solve this problem by minimizing the following objective:

min⁡q∗,p∗∑u,i(rui−qiTpu)2+λ(∥qi∥2+∥pu∥2)\min{q^*, p^*} \sum_{u,i} (r_{ui} - q_i^T p_u)^2 + \lambda (\lVert q_i\rVert^2 + \lVert p_u\rVert^2)

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 qi′sq_i's and solving least squares with respect to pup_u's (convex) and vice-versa until convergence.

Alternating Least Squares can be parallelized because we can compute qiq_i's independently and pup_u'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.

qTpq^T p models interaction, which is why those idiosyncratic properties are not captured by the latent factors.

The rating formula becomes rui^=qiTp+bu+bi+μ\hat{r_{ui}} = q_i^T p + b_u + b_i + \mu where μ\mu is the global rating average. We also add L2 regularization for the biases.

Implicit feedback

Let N(u)N(u) be the set of items with implicit feedback from user uu. A new user can be represented by a normalized sum:

∣N(u)∣−0.5∑i∈N(u)xi\lvert N(u)\rvert^{-0.5}\sum_{i\in N(u)} x_i

where xix_i are the item factors.

We can also include user attributes such as demographics with indicator variables:

rui^=bu+bi+μ+qiT[pu+∣N(u)∣−0.5∑i∈N(u)xi+∑user attributes]\hat{r_{ui}} = b_u + b_i + \mu + q_i^T [p_u + \lvert N(u)\rvert^{-0.5}\sum_{i\in N(u)} x_i + \sum \text{user attributes}]

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 pup_u?

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:

  • item biases (e.g. movie going in and out of popularity)
  • user biases (e.g. baseline rating changes)
  • user preferences (e.g. user changes preferences over time)

Items (qiq_i) 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.