Collaborative filtering

Collaborative filtering is a recommendation technique that predicts what a person will like from the choices of many other people with similar tastes, rather than from details of the items themselves.

The premise is simple: people who agreed in the past tend to agree again. A collaborative filtering system starts from a large table with users as rows and items as columns, filled in with what each person did, whether an explicit rating or an implicit signal such as watching a film or buying a product. Most of the table is empty, and the job is to predict the missing entries.

There are two classic approaches. Memory-based methods measure similarity directly. A user-based system finds people whose ratings resemble yours and recommends what they liked; an item-based system finds items that tend to be liked by the same people as the items you liked. Model-based methods learn a compact description of every user and item. Google's recommendation course illustrates this with films: each film and each user gets a position along hidden dimensions, such as children's versus adult content or blockbuster versus art house, and a user's predicted interest in a film comes from how well their positions line up. In practice the dimensions are learned from the data rather than chosen by hand.

The most famous test of the technique was the Netflix Prize, launched on October 2, 2006, which offered one million dollars to anyone who could improve the accuracy of Netflix's own rating predictions by 10 per cent. The team BellKor's Pragmatic Chaos was declared the winner in September 2009 with a 10.06 per cent improvement. Leading teams relied on ensembles that combined singular value decomposition, nearest-neighbour methods and neural networks.

Collaborative filtering has known weaknesses. New users and new items have no history, the cold start problem, so they get poor recommendations until data builds up. Because it favours items with plenty of ratings, it can reinforce popularity and narrow what people are shown. Content-based filtering, which uses descriptions of the items, handles new items better, and most recommender systems now use a hybrid approach that combines collaborative filtering, content-based filtering and other methods.

Deep learning has produced many newer variants, but a 2019 reproducibility study found that fewer than 40 per cent of the recent research papers it examined could be reproduced, and that six of the seven it reproduced were beaten by simpler, properly tuned older methods. Claims of a breakthrough in recommendation are worth checking against strong baselines.

Common questions

What is the difference between collaborative filtering and content-based filtering?

Collaborative filtering recommends items based on the behaviour of other users with similar tastes, without needing to know anything about the items. Content-based filtering recommends items similar in their features, such as genre or keywords, to ones a user already liked. Many real systems combine the two.

What is the cold start problem?

It is the difficulty of recommending anything useful when there is little data. A new user has not rated enough items for the system to find similar people, and a new item has too few ratings to be recommended to anyone. Systems often fall back on popular items or content-based methods until more data arrives.

Is collaborative filtering a form of machine learning?

Model-based collaborative filtering is: it learns representations of users and items from data, often using matrix factorisation or neural networks. Simpler memory-based versions just compute similarities between users or items, which is closer to a statistical lookup than to training a model.

What was the Netflix Prize?

It was a public competition launched by Netflix in October 2006, offering one million dollars for a 10 per cent improvement in the accuracy of its film rating predictions. BellKor's Pragmatic Chaos won in September 2009. It drew wide attention to collaborative filtering and to combining many models in an ensemble.

Finding more

Search for "collaborative filtering matrix factorization", "recommender systems cold start" or "Netflix Prize" to explore the methods and their history. Reliable sources include university and Google course material on recommendation systems, textbooks on recommender systems and peer-reviewed papers from the ACM RecSys conference. Be cautious of reported accuracy gains that are not compared against well-tuned simple baselines.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.