this page ⟩ collectionshome

Collaborative Filtering

Whenever we discuss about collaborative filtering, the following image is implicitly made as a anchor point to talk about how collaborative filtering discovers ‘similar users’ and use that to recommend unseen items.

Whenever collaborative filtering is talked about, the following illustration is brought up and then “finding users who behave similarly, then recommend items they liked but haven’t seen yet” is discussed.


          movie 1   movie 2                                 movie n    
        ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ 
 user 1 │         │    ✓    │         │    ✓    │         │    ✓    │ 
        ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ 
 user 2 │    ✓    │    ✓    │         │         │         │         │ 
        ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ 
        │    ✓    │         │         │    ✓    │    ✓    │    ✓    │ 
        ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ 
        │         │         │    ✓    │         │         │         │ 
        ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ 
        │    ✓    │    ✓    │         │    ✓    │    ✓    │    ✓    │ 
        ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ 
 user m │         │    ✓    │         │    ✓    │         │         │ 
        └─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ 
        
Fig : The mythical user item interaction matrix.

It’s a helpful mental model and historically accurate for early recommender systems.

However, that similar users picture is only a small part of how modern recommendation models actually work. Real-world systems rarely operate directly on this matrix, and the notion of similarity today is far more nuanced than simple row-to-row comparison.

This 5 part series is walkthrough of how collaborative filtering is practiced today. We will talk about how the row-to-row comparison idea evolves into one of the corner stone component of modern day recommender systems.

Part 1: Collaborative Filtering - The Foundations & Classic Flaws

Part 2: The “Zero” Problem - Solving for Implicit Data

Part 3: The Modern Solution: Scaling with Features & Neural Networks

Part 4: Retrieval & Ranking - Modern Recommendation Architectures

Part 5: Evaluation and Pitfalls