Problem
A team runs a memory-based collaborative filtering recommender and needs better accuracy while keeping memory use low. Accuracy depends on how well the model measures similarity between users. The usual cures add profile, session, text or image data. That makes the model more complex, harder to explain and dependent on external data sources. The author's goal is a balance between complexity, interpretability and resource use.
Example from the article: on the MovieLens "ml-latest-small" ratings, an SVD recommender is fitted once on the raw data and once per movie cluster, then compared on precision and recall.
Solution in brief
First group the items by their descriptive metadata. Then run the collaborative filtering recommender separately inside each cluster. Each user is compared with others only through ratings of similar items, which makes the similarity less noisy, and each model sees a smaller ratings matrix, which lowers memory use.
Questions this case answers
- How to raise the accuracy of a memory-based recommender when only item metadata is available as extra data and model simplicity and memory use must stay under control
- How to improve the accuracy of a collaborative filtering recommender without adding a heavy hybrid model?
- How to cut the memory a collaborative filtering recommender needs for fitting and prediction?
- How to use item metadata to make user similarity more precise in a ratings-based recommender?
Tools and methods
- k-means — clusters items on metadata features.
- TF-IDF — turns tags and title text into item features.
- User-based collaborative filtering — predicts a rating from users with similar rating vectors.
- SVD recommender (Surprise) — the model fitted per cluster and on the raw data.
Google or a one-time email code. No password.