Collaborative Filtering & Matrix Factorization
Q: How do classic recommenders work before deep learning?
- Content-based: recommend items similar (by features/embeddings) to what the user liked. Handles new items; limited serendipity.
- User–user / item–item CF: similarity from co-interaction (cosine over rating vectors); item–item ("people who bought X also bought Y") is stable and scalable (Amazon).
- Matrix factorization:
rating ≈ uᵤ · vᵢ (+ biases), learned on observed entries with L2 regularization via SGD or ALS (each step is ridge regression in closed form, parallelizes well). Netflix Prize lesson: biases + MF + ensembling. - Implicit feedback (clicks, watches): no negatives — treat unobserved as weak negatives with confidence weights (weighted ALS) or sample negatives (BPR, two-tower with in-batch negatives).
- Cold start: new users → popularity, onboarding, context; new items → content features, exploration.
- Modern systems keep the factorization idea as the two-tower retrieval model feeding a heavier ranker.