Recommendation system

A recommendation system is software that predicts which items, such as videos, products, songs or posts, a particular person is likely to want, and ranks them for display.

Every streaming queue, shopping suggestion and social media feed is chosen by a recommendation system. It is a filtering tool: out of a huge catalogue, it picks the few items a given person is most likely to click, watch or buy. There are two classic approaches. Collaborative filtering learns from behaviour: people who liked what you liked also liked this. Content-based filtering matches the attributes of items to a profile of what you have engaged with before. Most modern systems, Netflix's among them, combine both.

At the scale of a large platform, recommendation runs in stages. Google's course on the subject describes three. Candidate generation narrows a corpus, which for YouTube means billions of videos, to hundreds or thousands. A more precise scoring model then ranks those candidates to pick around ten to show. Finally, re-ranking applies rules: dropping items the user has said they dislike, favouring fresh content and adding diversity.

The field goes back to Elaine Rich's Grundy system in 1979, and the GroupLens research group's work won the ACM Software System Award in 2010. Its best-known moment was the Netflix Prize. From 2006 to 2009, Netflix offered $1 million to any team that could make its rating predictions 10% more accurate, releasing more than 100 million ratings for contestants to work with. The team BellKor's Pragmatic Chaos won on September 21, 2009. Privacy concerns about the released data led Netflix to cancel a planned second contest.

The systems have familiar weaknesses. New users and new items have no history, the so-called cold start problem. Most users rate or touch only a tiny share of the catalogue, which leaves the data sparse. And a system learns to predict whatever it is trained on, usually clicks or watch time, so it tends to serve more of whatever already holds attention.

Recommendation systems are among the most commercially important uses of machine learning, and among the least visible. They are predictive rather than generative: they choose from existing items rather than creating new ones. Their design decides what millions of people see each day, which is why what they are built to optimise matters as much as how accurate they are.

Common questions

How do recommendation systems work?

They predict how likely a person is to engage with each item and show the highest-scoring ones. Predictions come from that person's past behaviour, the behaviour of similar users and the attributes of the items. Large platforms first narrow millions of items to a shortlist, then rank the shortlist with a more precise model.

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

Collaborative filtering recommends items that people with similar tastes liked, without needing to know anything about the items themselves. Content-based filtering recommends items whose features resemble ones the user already liked, such as the same genre or author. Most real systems combine the two.

What was the Netflix Prize?

It was a competition Netflix ran from 2006 to 2009, offering $1 million to anyone who could improve the accuracy of its film rating predictions by 10%. Contestants worked with more than 100 million anonymised ratings. The team BellKor's Pragmatic Chaos won in September 2009, and the contest drove a wave of research into recommendation methods.

What is the cold start problem?

It is the difficulty of recommending anything to a new user, or recommending a new item, when there is no history of behaviour to learn from. Systems handle it by asking new users about their preferences, by relying on item attributes, or by showing a mix of items and learning quickly from the response.

Finding more

Search for "recommender systems", "collaborative filtering" or "candidate generation and ranking" for introductions to how they work. Course material from Google and universities and research papers on arXiv and in ACM conference proceedings are reliable on methods. For how a specific platform's feed works, look for the platform's own engineering publications or transparency reports, and treat outside claims about secret algorithms with care.

  • Recommender systemReferenceApproaches, history, the Netflix Prize and common problems such as cold start and sparsity.
  • Recommendation systems overviewReferenceGoogle's explanation of candidate generation, scoring and re-ranking, using YouTube as the example.

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.