Artificial intelligence · Article

How Recommendation Algorithms Work: The AI That Shapes Your Feed

Published:

In brief

Recommendation algorithms rank content by predicting how likely a specific user is to watch, click, or engage with it, based on past behaviour, similar users' choices, and the content's own attributes. Platforms such as YouTube and TikTok describe this directly: YouTube optimises for viewer "satisfaction," while TikTok weighs signals like video completion more heavily than likes. The result is a feed that is different for every user, built from methods researchers call collaborative filtering, content-based filtering and, increasingly, deep learning.

Every time someone opens YouTube, TikTok, or a similar app, software ranks thousands of possible videos, songs or posts in a fraction of a second and decides which handful to show first. This is a recommendation system: a set of algorithms designed to predict which items a specific user is most likely to want, out of a catalogue too large for any person to browse manually.

The two basic ideas behind every recommender

According to NVIDIA's technical glossary on recommendation systems, most engines combine two basic approaches. Collaborative filtering assumes that if people made similar choices in the past, they will likely agree on future ones too, so the system looks for users with matching behaviour patterns and recommends what those similar users liked. Content-based filtering instead looks at the attributes of the items themselves — genre, actors, audio features, tags — and suggests items similar to ones a user already engaged with.

NVIDIA's glossary adds a third layer used by some platforms: context filtering, which factors in situational details such as device type, time of day or location. As an example, it cites Netflix's practice of weighing the country, device, date and time when a title was watched, alongside the viewing itself.

Modern systems increasingly replace or supplement these approaches with deep learning. NVIDIA describes methods such as Neural Collaborative Filtering, which combines matrix factorisation with multilayer neural networks to capture non-linear relationships between users and items, and sequence-based models using recurrent networks or Transformers to learn patterns in the order a user watches or listens to things.

What platforms say their own algorithms optimise for

Companies rarely publish their full ranking code, but some describe the goals and signals behind it. TikTok's Newsroom states that its For You feed ranks videos using three signal categories: user interactions (likes, shares, follows, comments, and what a person creates), video information (captions, sounds, hashtags) and device or account settings (language, country, device type). TikTok says these signals are weighted differently — a strong signal, such as watching a longer video to completion, counts for more than a weak one, such as sharing a general geography with other viewers.

TikTok explicitly states that follower count and a creator's history of high-performing videos are not direct factors in whether a given video gets recommended. The company also says it deliberately mixes in content outside a user's expressed interests and avoids showing back-to-back videos from the same creator or using the same sound, describing this as a way to give people "additional opportunities to stumble upon new content categories" rather than being confined to a narrow feed.

YouTube's official "How YouTube Works" site frames its recommendation system's goal as understanding what a viewer needs and delivering a viewing experience that leaves them satisfied, rather than simply maximising watch time. It lists the inputs feeding recommendations as viewing behaviour and watch history, explicit engagement such as likes and dislikes, subscriptions and direct feedback, a channel's reputation and quality, and broader trends among the wider audience, not just one person's history. YouTube says it supplements behavioural data with satisfaction surveys and external evaluator teams to check whether recommended content is genuinely high quality, and that for sensitive subjects such as news, finance, health or science it places extra weight on authoritative sources.

How two platforms describe their own ranking systems
PlatformStated top signalFactor the platform says does NOT countOfficial goal
YouTubeOverall viewer satisfaction, inferred from behaviour and surveysNot specified on the platform's own pageA viewing experience users won't regret, not just more watch time
TikTokCompletion rate of a video (watching it to the end)Follower count and past video performanceA personalized feed while limiting filter-bubble effects

Why two people never see the same feed

Because collaborative filtering compares a user's behaviour to other users', and content filtering compares items to a person's own history, no two accounts carry an identical mix of signals — different watch histories, different follows, different devices and locations. TikTok states directly that no two users will see the same combination of videos on their For You feed. Both YouTube and TikTok also say the system keeps updating with every new interaction, so a feed observed in the morning can already look different by evening based on what was watched, skipped or marked "not interested" in between.

How accurate do people think these systems are?

Research into how people actually perceive algorithmic personalization is more limited than the engineering literature. A Pew Research Center survey published on January 16, 2019, asked Facebook users about the interest and trait categories the platform had assigned them for ad targeting. It found that 74% of users did not know this list of traits existed until the survey pointed them to it, and only 12% were aware of it beforehand. Once shown their own categories, 59% said the labels reflected their real-life interests reasonably or very accurately, while 27% disagreed; 51% said they felt uncomfortable with the platform compiling such lists even when they considered them accurate. The survey covered 963 U.S. Facebook users, ages 18 and older, polled from September 4 to October 1, 2018.

Can users influence or limit the algorithm?

Both companies describe user-facing controls. YouTube's official page notes that signed-in users can pause, edit or delete their search and watch history at any time, which feeds directly into what the recommendation system learns. TikTok says likes, follows, comments, hashtag exploration and explicit "Not Interested" taps all adjust future recommendations, in addition to the interest categories a person can select when first setting up an account.

Bringing a diversity of videos into your For You feed gives you additional opportunities to stumble upon new content categories, discover new creators, and experience new perspectives and ideas as you scroll through your feed.

— TikTok Newsroom, on why some recommended videos fall outside a user's usual interests

Questions

What data do recommendation algorithms actually use?
According to YouTube and TikTok's own descriptions, systems combine explicit signals (likes, follows, ratings, "not interested" taps) with implicit behavioural signals (watch time, completion rate, search history, skips) and item or context data such as video tags, device type, language and location.
Do recommendation algorithms create filter bubbles?
TikTok says it deliberately mixes in videos outside a user's usual interests and avoids consecutive clips from the same creator or sound specifically to reduce this effect; it frames this as giving users chances to discover new content categories, though it does not publish data measuring how effective this is.
Why does my feed look different from a friend's feed for the same app?
Because collaborative and content-based filtering personalize results to each account's own history, device and context, and because, per TikTok, no two users see an identical combination of videos even on the same platform at the same time.
Is Netflix's 'Because You Watched' row the same kind of system as YouTube or TikTok's feed?
NVIDIA's technical glossary cites Netflix as an example of combining viewing-history-based collaborative filtering with context filtering (country, device, date and time of viewing), which is conceptually the same family of techniques YouTube and TikTok describe, even though each company tunes it differently.
Can I find out what categories a platform has assigned to me?
On Facebook, interest and trait categories used for ad targeting are viewable on an "ad preferences" page; a 2019 Pew Research Center survey found most users (74%) did not know this page or the list of traits on it existed before being shown it.

Sources

  1. TikTok Newsroom — "How TikTok recommends videos #ForYou"
  2. YouTube — "How YouTube Works: Recommendations"
  3. NVIDIA — "What is a Recommendation System?"
  4. Pew Research Center — "Facebook Algorithms and Personal Data" (Jan. 16, 2019)

This piece was prepared with artificial intelligence and passed an automated source check before publication. If you see an error, ask for a correction. Request a correction or reply · How we make this

Related