VOOZH about

URL: https://thenewstack.io/what-makes-tiktoks-algorithms-so-effective/

⇱ What Makes TikTok's Algorithms So Effective? - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-01-24 07:41:35
What Makes TikTok's Algorithms So Effective?
AI / Data / Operations

What Makes TikTok’s Algorithms So Effective?

TikTok's recommendation system is incredibly good at understanding what users want — so good that it's the envy of tech titans like Elon Musk. But what makes TikTok tick?
Jan 24th, 2025 7:41am by Joab Jackson
👁 Featued image for: What Makes TikTok’s Algorithms So Effective?

On Tuesday, the newly-elected U.S. President Donald J. Trump signed an executive order that gave TikTok a 75-day reprieve from being shut down in the U.S. by the Justice Department, much to the delight of fervent TikTok users.

But, during the signing, the President made his intention clear: TikTok would have to sell half of itself to the U.S., by way of a U.S.-owned entity of some sort, to remain operating in the U.S.

The transactionally-minded President then added, as an aside, “Every rich person has called me about TikTok.”

Half can be tricky, though. You want to make sure you get the right half. Otherwise, you’ll end up with the empty husk of a media service, ala Friendster.

The company now has about 170 million users in the U.S. But that audience can vanish quickly. You want the part that keeps users logging in. The valuable part is the algorithm that runs the recommendation service.

TikTok’s massive user base is a testament to its addictive nature. The key to keeping users engaged? It’s powerful algorithms. These algorithms drive the recommendation system, constantly feeding users a stream of content tailored to their interests.

As University of Zurich researchers Maximilian Boeker and Aleksandra Urman noted in their study, “An Empirical Investigation of Personalization Factors on TikTok,” the platform’s recommendation system is arguably its most important success driver.

TikTok, and its parent company, the Bejing-based ByteDance, has been tight-lipped when it comes to the design and operation of the algorithms that feed their users content.

Those willing to dive into a research paper from ByteDance engineers and other researchers may find some hints into how TikTok keeps its users coming back.

Unveiling the Monolith

The paper, “Monolith: Real Time Recommendation System With Collisionless Embedding Table,” presented at the 2022 ACM Conference on Recommender Systems (RecSys), offers valuable insights. While not claiming to describe TikTok’s exact algorithms, it reveals ByteDance engineer’s approach to designing a highly -effective recommendation system.

The paper details the “unorthodox” trade-offs the researchers made that led to significant performance improvements, resulting in a recommendation system called “Monolith” that consistently outperforms other systems with the same memory usage, the researchers asserted.

Former TikTok engineer Arman Khondker pointed to this paper as being fundamental to understanding TikTok’s approach. Khondker hailed the TikTok algorithm as “years ahead of the competition” and “without question, the most valuable piece of software in existence.” Elon Musk himself responded to this claim with a succinct “For now.”

👁 Image

The Goals of TikTok’s Algorithm

A 2021 internal TikTok document obtained by the New York Times revealed the four main goals of the company’s algorithm: user value, long-term user value, creator value, and platform value. Essentially, TikTok prioritizes keeping users engaged and spending time on the platform.

The algorithm considers various factors, including likes, comments, and video watch time, to determine which content to show users. It also aims to diversify recommendations to prevent users from getting bored and losing interest.

For analysts familiar with user retention, it all looked like pretty routine stuff. “Totally reasonable, but traditional stuff,” quipped Julian McAuley, a professor of computer science at the University of California San Diego.

So perhaps the true power of the TikTok algos come not only from the user analysis but also the the considerable speed at which they are executed.

The Power of Real-Time Feedback

The “Monolith” paper highlights the challenges of building recommendation systems that can keep up with users’ rapidly changing preferences.

In a nutshell, the job of a recommendation engine is to predict users’ interests and future behavior, using the latest interactions as the primary input for training the model.

To do this, traditional systems often rely on complex models that are slow to adapt to new data.

The conventional wisdom for building such systems has been to maintain individual models for each task. “Predicting clicks” would get one model, and “predicting watch time” would get another model. Analysis is usually done by batch processing, slowing the rate at which the system learns about the user. The models can’t interact with customer feedback in real time.

The more frequently someone uses TikTok, “the more accurate the algorithm will be.”

— Zhengwei Zhao, Sun Yat-sen University

Deep learning frameworks like Pytorch and TensorFlow, built for general usage, aren’t really geared for the urgent production demands of online recommendations. Tensorflow separates training from inference, which cuts the model off from the latest input from users. As a result, any competitive system design has to build all sorts of workarounds to jam these batch frameworks into real-time systems.

Monolith, on the other hand, utilizes a single model for all tasks and incorporates real-time feedback through online training. This allows the system to quickly learn and adapt to users’ evolving interests.

The paper describes how Kafka can be used to log actions of users, and, in a parallel operation, log features. An Apache Flink job “concatenates features with labels from user actions and produces training examples, which are then written to a Kafka queue. The queue for training examples is consumed by both online training and batch training.”

👁 Monolith architecture
The Monolith architecture emphasizes faster online training.

‘Doomscrolling’ and Table Size

Another challenge for recommendation systems is dealing with “sparse features” and “concept drift.” Sparse features mean that users are only interested in a small subset of content, while concept drift refers to the tendency for users’ interests to change over time as they scroll through an endless stream of videos.

“The same user interested in one topic could shift their zeal every next minute,” the paper states.

If you were to put everything into the embedding table, it would be too large to fit into memory. And traditional fixed-sized models don’t take kindly to being enlarged, which they would have to constantly be as new users came aboard.

Monolith tackles these issues by:

  • Rapidly incorporating user feedback into the training process.
  • Keeping the data table manageable through a “collisionless hash table” and fancy feature eviction mechanisms.

Meeting these objectives ensures that the system can keep up with users’ changing preferences without it being overwhelmed by the sheer volume of data.

To mash the wide array of sparse features into computer memory, the researchers advocated using a Cuckoo Hashmap design, which minimizes collisions, or two keys inadvertently occupying the same space.

To further reduce memory usage, seldomly-used IDs are trimmed away.

Personalized Content Fast

In essence, Monolith represents a shift away from the traditional microservices approach to building systems, opting instead for a more unified, monolithic architecture.

While ByteDance has not confirmed whether the Monolith architecture is used in TikTok (or the Chinese version, Douyin), all the company’s services depend on the ability to deliver personalized content at lightning speed.

TikTok enjoys nearly 2 billion users, along with its Chinese version Douyin, operated as an independent entity just for China. The company also runs Toutiao, a news and personal content aggregator app. There’s a long-form video platform, Xigua Video, as well as a gaming division, a hosted recommendation service (BytePlus Recommend), an enterprise collaboration suite (Lark) and the popular CapCut video editing tool and hosted service.

On TikTok, there is almost no work needed on the part of the user to find compelling content, observed researcher Zhengwei Zhao, Sun Yat-sen University, China. As soon as the user starts swiping, the app starts learning.

The more frequently someone uses TikTok, “the more accurate the algorithm will be.”

TRENDING STORIES
Joab Jackson is a senior editor for The New Stack, covering cloud native computing and system operations. He has reported on IT infrastructure and development for over 30 years, including stints at IDG and Government Computer News. Before that, he...
Read more from Joab Jackson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Real.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.