Problem
A pure matrix factorization recommender learns one vector per user ID and per item ID. A new user or a new item has no vector, so the model returns close to random scores for them. Users and items usually come with attributes such as age, gender, occupation or genre, and plain matrix factorization ignores them.
Example from the article: on MovieLens, a new user is known only as an 18-year-old writer from a given zip code, and the model must still score movies for them.
Solution in brief
Build the user vector and the item vector as the sum of embeddings of their features, with the ID as just one more feature. Score a pair by the dot product plus biases. A new user or item gets a meaningful vector from its attributes, and the ID embedding falls back to a default value.
Questions this case answers
- How to produce useful personalized scores for entities with no interaction history when a collaborative model can only return near-random output
- How to recommend items to new users or new items that have no interaction history?
- How to add user and item attributes (age, gender, genres) to a matrix factorization recommender?
- How to handle a multi-valued item attribute such as a list of genres in an embedding model?
Tools and methods
- LightFM-style hybrid model — sums feature embeddings into user and item vectors, keeps matrix factorization as the special case with only ID features.
- TensorFlow / Keras — lookup, embedding, add and dot layers implement the model.
- LightFM library — the original implementation by the paper's author.
Google or a one-time email code. No password.