# TikTok Recommendation Algorithm Anatomy

How TikTok's recommendation system chooses each video for your For You feed, from reading your watching, likes and skips to scoring candidates and preloading the next clip\.

By Numa

Topic: Computing, AI &amp; Electronics

[Open the interactive Jig](https://ask.jig.com/j/KsTnTVywvy1x)

## Transcript

### 1. Inside your For You feed

Every time you open TikTok, a recommendation system picks the videos for your For You feed\. Here it is drawn as a machine: clues go in on the left, videos are picked, scored and checked, and your phone plays them on the right\. Drag the paper around the machine to look at it from another side\.

A recommendation system is a computer program that predicts what you are likely to enjoy\.

### 2. A fresh start

A brand\-new account has no history yet, so the machine knows nothing about you\. TikTok may ask you to pick a few interests, like pets or travel\. If you skip that, you first see a mix of popular videos until your likes, comments and replays start to add up\.

Experts call this the cold start problem\.

### 3. Clues go in

The machine reads three kinds of clues\. The pink chute holds what you do: watching to the end, replaying, liking, sharing, commenting, following, or tapping Not interested\. The blue chute holds details about each video, such as captions, sounds and hashtags\. The small yellow chute holds device and account settings like language and country, which count for less\.

TikTok says that finishing a long video is a stronger clue than which country you are in\.

### 4. Fast retrieval

There are far more videos than anyone could ever watch\. So first, a fast step called retrieval scoops a small shortlist of candidates out of the giant pool\. One way it chooses: if people who liked the same videos as you also loved another one, that video may be picked for you too\.

TikTok does not publish the numbers\. Outside estimates say a few hundred candidates are picked from many millions of videos\.

### 5. A drawer for every ID

ByteDance, the company behind TikTok, described a system called Monolith that keeps learning while people use it\. Every user and video ID gets its own memory slot, like its own drawer, so two IDs never get mixed up\. Drawers that go unused are cleared out, which keeps the memory tidy\.

In the Monolith paper, fresh learning reaches the serving computers within minutes\. ByteDance offers Monolith through its BytePlus service; TikTok's exact setup is not public\.

### 6. Predict and rank

Now prediction models give every candidate a score: how likely you are to enjoy it, judged by whether you would watch, like or share it\. Each plunger rises with its video's score\. The highest scores go to the front of the line\.

TikTok does not reveal its exact formulas or how much each clue counts\.

### 7. Check for variety

Before videos reach you, a similarity check and some rules step in\. They drop duplicates and videos you have already seen, avoid two videos in a row from the same creator or with the same sound, and now and then mix in something outside your usual interests\.

TikTok says this mixing helps you discover new things instead of seeing the same kind of video over and over\.

### 8. Instant play

Your phone does not wait for each swipe to start downloading\. A 2022 study of the TikTok app found it loads the opening part of upcoming videos ahead of time, keeping about five ready behind the one you are watching\. Swipe up and the next video plays at once while another starts to load\.

The researchers saw the app receive lists of ten videos at a time\. The app may have changed since\.

### 9. Every swipe teaches it

Whatever you do with a video, watching, replaying, skipping or liking, becomes a new clue\. It flows back to the start of the machine, the models update, and your next picks shift with you\. Then the whole loop runs again\.

It predicts from what you do, not from your thoughts\. Tapping Not interested is one of the clearest clues you can give\.
