NEW
A recommendation approach that infers preferences from patterns in user–item interactions across many users and items.
DESCRIPTION
Collaborative filtering recommends items by leveraging collective behavior. Neighborhood methods compute similarities among users or items, while latent factor models (e.g., matrix factorization) embed users and items into low-dimensional spaces. It excels when interaction data are abundant but struggles with new users/items and sparse datasets. Implicit feedback variants use confidence-weighted losses. Hybrid systems combine collaborative and content signals to address cold start and interpretability.
ALTERNATIVE DEFINITIONS
Wikipedia
Collaborative filtering is a method of making automatic predictions about the interests of a user by collecting preferences or taste information from many users.
Highlights leveraging many users’ preferences to predict interests.
Apache Spark
Collaborative filtering is commonly used for recommender systems by learning latent factors from user-item interactions.
Links collaborative filtering to latent factor learning in practice.
GroupLens Research
Collaborative filtering refers to predicting a user’s interests by analyzing preferences from many users.
Research perspective emphasizing collective patterns.
RELATED TERMS
Recommender System User-based Collaborative Filtering Item-based Collaborative Filtering Matrix Factorization Latent Factors ALS Implicit Feedback Initialization Neighborhood Methods Sparsity
COMPETING TERMS
Content-Based Filtering Knowledge-based Recommendation
RELATIONS
- Broader: Filtering
KNOWLEDGE AREAS
TARGET AUDIENCE
AI Engineer Data Scientist MLOps Engineer Software Developer
EXTERNAL SOURCES
- Wikipedia - Collaborative filtering
- Apache Spark - ALS collaborative filtering guide
- Microsoft Recommenders - Reference implementations and tutorials
TOP QUESTIONS
What is Collaborative Filtering?
It recommends items by finding patterns in user–item interactions across many users. It learns from collective behavior rather than item content.
Category: Definition
What are user-based and item-based methods?
User-based finds similar users to a target user; item-based finds items similar to those the user liked.
Category: Concepts
How does matrix factorization relate to collaborative filtering?
It models users and items as latent vectors whose dot product predicts preference.
Category: Concepts
How do we handle implicit feedback data?
Use confidence-weighted losses (e.g., Hu–Koren–Volinsky) and negative sampling for ranking objectives.
Category: HowTo
What is the cold start problem in collaborative filtering?
New users or items lack interactions, making predictions difficult. Hybrid models and exploration mitigate it.
Category: Problem
How do we evaluate collaborative filtering models?
Use ranking metrics like NDCG and recall@K, plus online A/B testing.
Category: Validation
What are common pitfalls?
Overfitting sparse data and popularity bias. Regularization and debiasing strategies help.
Category: Mistakes
Is collaborative filtering explainable?
Neighborhood methods are more interpretable; latent factors can be opaque without post-hoc explanations.
Category: Opinion
How to scale collaborative filtering?
Use distributed training (e.g., ALS in Spark) and approximate nearest neighbor search for retrieval.
Category: Operations