---
title: "Collaborative Filtering vs Content Based Filtering: When to Use Each — Igor Shalamov"
url: https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/
language: en
author: Igor Shalamov
updated: 2026-11-21
---

# Collaborative Filtering vs Content Based Filtering: When to Use Each

[Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 5 December 2026, 3 min read.

A new song is uploaded and nobody has played it yet. One kind of recommender will never show it to anyone. The other can recommend it in the first minute, and then keeps showing you more of the same. These are collaborative filtering and content based filtering, and the choice between them depends on the data your product has.

## Content based filtering: match the item itself

Content based filtering looks at the items. Each song is described by its features: genre, tempo, instruments, even the lyrics. A user's taste is the average of the songs they liked, and the recommendations are the songs nearest to that point.

The strength is that an item needs no history. A new jazz song with zero plays sits close to a jazz listener's taste and enters the list straight away. The weakness is that the method only finds more of the same, and over time the user ends up in a filter bubble.

## Collaborative filtering: learn from other users

Collaborative filtering ignores what the item is and looks only at who played what. In a small made-up example, Ana played songs A, B and C. Ben played the same three, plus song D. Their histories overlap, so Ben is Ana's nearest neighbour, and song D is recommended to Ana. Nobody described the song. The users did the work.

Modern systems learn these overlaps with matrix factorisation or neural embeddings. The weakness is cold start: a new song has no plays, so it is invisible, and the same goes for a new user.

## Head to head

- **Data needed.** Collaborative filtering needs interaction history. Content based filtering needs good item features: text, tags, audio or images.
- **Strength.** Collaborative filtering finds things a user would never search for, because other people bridged the gap. Content based filtering works for a brand-new item from its first minute.
- **Failure.** Collaborative filtering fails on cold start, for new items and new users. Content based filtering fails by repeating itself.

## When to use each

Four questions settle most cases:

1. Little interaction history but rich item data, as in a new marketplace? Start content based.
2. Millions of interactions? Collaborative filtering will usually win.
3. Should users discover things outside their usual taste? Collaborative again.
4. New items every day, as in news or video? You need both.

The last case describes most production systems.

## How production systems combine them

The common hybrid is a pipeline. Collaborative filtering supplies candidates from interaction history. Content based filtering fills the gap for new items and new users. A ranking model scores all candidates using both kinds of signal, and only the top 20 reach the feed.

The other option is one model: a [two tower model](https://igorshalamov.com/writing/two-tower-model-explained/) with content features in the item tower. Either way, the hybrid gets discovery from users and cold start coverage from content.

## Measure coverage next to accuracy

Accuracy alone will not tell you which approach your product needs. One useful extra number is catalogue coverage, the share of items that get recommended at all:

`coverage = items ever recommended / all items`

Take a made-up catalogue of 10,000 songs. Collaborative filtering recommends 3,100 of them, a coverage of 0.31. Content based filtering reaches 7,400, or 0.74. The hybrid reaches 8,200, or 0.82. Report coverage next to Recall@K, on a split by time; [how to evaluate a recommender](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) covers the rest of the metrics.

## Three common mistakes

1. **Popular items take over.** Collaborative filtering keeps pushing the same hits. Penalise popularity and track coverage.
2. **Thin item features.** A title and a category are not enough for content based filtering. Use learned embeddings of the text, audio or images.
3. **Testing on a random split.** A random train and test split leaks the future and flatters collaborative filtering. Split by time, the way production works.

## The same choice in referral systems

A [referral system is a recommender system](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/), and it faces the same choice. Who a user should invite comes from what similar users did, which is collaborative, plus profile features, which are content. In an [AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/) both signals feed the models layer.

To recap: collaborative filtering learns from what people do, content based filtering learns from what the item is. Content wins on cold start. At scale, combine them.

## Related research

The research behind this topic is my paper [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) (2025).

![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg)

[Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification.

## More notes

- [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/)
- [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/)
- [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/)
- [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/)
- [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/)

Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/).

---

Canonical page: https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt
