Anatomy of a scroll: Inside TikTok’s AI-powered algorithms


This article is part of a series, Bots and ballots: How artificial intelligence is reshaping elections worldwide, presented by Luminate.

When Hamas attacked Israel on Oct. 7, many sought updates from their main source for news: social media. 

But unlike previous global conflicts, where the digital discourse was dominated by Facebook and X (formerly Twitter), the ongoing Middle East crisis has seen people flock to TikTok, in their millions, to relate news and express opinions.

Even as the video-sharing app’s popularity has ballooned, the inner workings of its complex, artificial intelligence-powered algorithms remain a mystery.

Individuals see only a fraction of what is posted daily on TikTok. And what they do see is highly curated by the company’s automated systems designed to keep people glued to their smartphones. Using AI technology known as machine learning and so-called recommender systems, these systems determine, within milliseconds, what content to display to social media users.

POLITICO set out to shed light on how TikTok’s algorithms work, and to root out which side in the war in the Middle East — Israeli or Palestinian — was winning hearts and minds on the social network now heavily favored by young people. 

That’s become a hot political question after pro-Israeli groups and some Western lawmakers accused TikTok — owned by Beijing-based ByteDance — of unfairly promoting pro-Palestinian content for potential political impact. TikTok denies the accusations.

The conflict’s political effects are already evident in partisan clashes across Western democracies as people pick sides in the war — and decide how to vote. U.S. President Joe Biden’s support for Israel has drawn criticism from Arab-Americans, and it could eventually cost him the November election. In the United Kingdom, the populist independent candidate George Galloway harnessed pro-Palestinian sentiment to win a seat in the British parliament in March. University campus protests have erupted on both sides of the Atlantic. 

TikTok’s algorithms are crucial to how all kinds of political content reaches social media feeds. Examining the company’s algorithms is a good proxy for how artificial intelligence is now a key player in determining what we see online.

POLITICO teamed up with Laura Edelson, a researcher at Northeastern University in Boston, to track pro-Palestinian and pro-Israeli TikTok content over four months between Oct. 7, 2023, and Jan. 29, 2024. 

That involved creating a list of 50 popular hashtags like #IStandWithIsrael or #SavePalestine that could be directly associated with either side. More apolitical hashtags, like #Gaza or #Israel, were used to collect data on posts that did not have a specific leaning.

In total, Edelson analyzed 350,000 TikTok posts from the United States.

To make the data more digestible, she broke down the posts into three-day windows around specific events. That includes the initial Hamas attacks (Oct. 7-9); Israel’s invasion of Gaza (Oct. 27-29); and the release of the first Israeli hostages (Nov. 24-27.) As a control for bias, she also included Nov. 6-8 in the analysis, as a proxy for periods when no major events took place.

“TikTok, like other social media platforms, amplifies some content more than others,” said Edelson. “That can have a distorting effect on what people see in their feeds.”

What emerged was evidence of TikTok grappling with its role — in real-time — as one of the main global digital town squares where people gather to express their opinions and, often, disagree. 

Over the four-month period, Edelson’s research found approximately 20 times more pro-Palestinian content produced, based on the hashtags analyzed, compared with pro-Israeli material. Yet that didn’t necessarily equate to more pro-Palestininan posts winding up in the average person’s TikTok feed.

Instead, Edelson found three distinct times when the likelihood of people seeing pro-Israeli or pro-Palestinian content in their TikTok feeds changed markedly — no matter how much overall material was being produced by either side. 

TikTok did not respond to specific requests for comment about the Northeastern University research. In a blog post in April, the company said it had removed more than 3.1 million videos and suspended more than 140,000 livestreams in Israel and Palestine for violating its terms of service.

Much about how these social media algorithms work is unknown. It is unclear who within companies — engineers, policy officials or top executives — determines how they function. It’s also difficult to determine when changes are made, although regulatory efforts by the European Union and the United States are trying to shine a larger spotlight on these practices. 

What follows below is an example of how, when you dig into the numbers, much of what users see on social media relies heavily on complex algorithms that are regularly tweaked with little — if any — oversight. 

The TikTok posts were collected separately via Junkipedia, a repository of social media content managed by the National Conference on Citizenship, a nonprofit organization. They represent the most viewed partisan posts over each time period.

Oct. 7 – Oct. 27: Pro-Palestinian content dominates

For the first three and a half weeks of the conflict, views per post — the number of times actual content was served up into people’s TikTok feeds — skewed toward pro-Palestinian content. 

Over that time, generally apolitical material like mainstream news garnered the most actual views. But between pro-Israeli and pro-Palestinian posts, the latter was likelier to make it into someone’s feed, no matter their view on the conflict.

Oct. 7-9: Hamas’ opening attacks against Israel

As soon as Hamas attacked Israel, TikTok was flooded with pro-Palestinian viewpoints, many of which showed solidarity for the Palestinian cause despite the violent attacks.

Oct. 13-15: Israel warns Palestinians to leave Northern Gaza

In the early days of the war, social media users posted harrowing videos of life in Gaza or demonstrations favoring the Palestinian cause.

Oct. 18-20: U.S. President Joe Biden visits the Middle East

As the American president toured the region, pro-Palestinian content dominated people’s feeds, based on the average views per post. That included rallying calls for the wider Muslim world to support Gaza.

Oct. 27 – Dec. 15: Pro-Israel material takes the lead

In late October, without warning, things started to change on TikTok. 

Between Oct. 27 and Dec. 15, pro-Israeli content overtook pro-Palestinian material, based on views per post data, despite the overall volume of pro-Palestinian content still far out-stripping pro-Israeli material. 

In short, over that seven-week period, TikTok users, on average, were a lot likelier to see material that favored Israel. The likeliest explanation — based on overall pro-Palestinian content still outpacing pro-Israeli posts — is an adjustment to how the company’s algorithms populated people’s feeds. Edelson, the academic, told POLITICO more research was needed to replicate her results.

Oct. 27-29: Israel invades the Gaza Strip

On TikTok, influencers pushed back at those who accused them of copying Israeli government talking points or attacking well-known celebrities for their alleged pro-Palestinian bias.

Nov. 6-8: Quiet period

American pro-Israeli groups created viral videos that portrayed pro-Palestinian campaigners as callously ignoring the plights of hostages, while others championed the country’s law enforcement agencies.

Nov. 15-17: Israeli troops enter Gaza City’s Al Shifa hospital

Given the U.S.’s close ties to Israel, American social media influencers — many with ties to the country’s evangelical churches — took up the cause on TikTok. Others associated the Middle East conflict with domestic American politics. 

@aipac

There are reportedly hundreds of Palestinians being treated in Al Shifa hospital, and more than 1,000 internally displaced Gazans inside. None of them have been killed – as Israel targets the terrorists and takes unparalleled measures to protect civilians. #StandWithIsrael

♬ original sound – AIPAC

Nov. 24-27: Hamas releases first hostages

By far the most-viewed content over this period related to the freeing of Israeli hostages. That included emotional reunions between family members and pro-Israeli TikTok users explaining what had just happened.

Nov. 30-Dec. 2: End of Hamas-Israeli ceasefire

Official social media accounts made their presence felt as hostilities resumed in late November. That included the Israeli Defense Forces, whose posts were collectively viewed hundreds of thousands of times.

Dec. 15 – Jan. 29: Both sides lose their audience

And then, after Dec. 15, TikTok’s algorithmic approach to these posts changed — again. 

Progressively, as the conflict continued without an end in sight, both pro-Israeli and pro-Palestinian content often failed to reach TikTok users, based on views per post. In part, that’s down to war apathy as the world’s attention began to turn elsewhere.

But the fall-off in views — for content from either side — dropped faster than would have been expected by the reduction in TikTok posts created about the war, Edelson said. There could be explanations other than the company tweaking its content algorithms. But the change in viewing patterns did not match the change in the volume of material produced over the same period.

Dec. 15-17: Israeli Defense Forces accidentally kill three hostages

Despite the drop in views, pro-Israeli posts still provided vivid first-person accounts of what life was like in the country amid the ongoing war.

Jan. 2-4: Israel kills Hamas deputy leader Salih al-Arouri in Beirut

Tel Aviv wasn’t averse to using TikTok to get its political message out to the world, especially after a South Africa-led push to hold Israel legally accountable for alleged genocide.

Jan. 20-22: Israeli Prime Minister Benjamin Netanyahu says there is no two-state solution

Four months into the conflict, social media influencers tried to drum up global support for Palestine via so-called TikTok challenges that were replicated by multiple accounts.

Jan. 26-29: U.N. agency for Palestinian refugees accuses some workers of links with Hamas

Part of the crowdsourced pro-Palestinian strategy was to highlight supporters worldwide while calling out the alleged hypocrisy of those who favored Israel in the conflict. 

The TikTok effect

Many — especially those above the age of 30 — see the video-sharing network as fluff, mostly dance crazes and digital fads with nothing to do with politics. 

They’re mistaken. 

Edelson said that TikTok was similar to other social media giants in that its algorithms were designed to promote what is popular. The reasoning: to serve up what people want to see so they stick around as long as possible.

That’s OK when it’s viral videos of dogs or cute babies. It’s something completely different when it’s highly charged political content about a geopolitical hotspot where people are dying every day. Such events leave social networks like TikTok and their automated curation models in the unenviable position of determining what is popular — at the risk of crowding out minority opinions.

“When it comes to politics, like anything else, the discourse of social media prioritizes the majority,” added Edelson. “We should think very seriously about what that means.”

This article is part of a series, Bots and ballots: How artificial intelligence is reshaping elections worldwide, presented by Luminate. The article is produced with full editorial independence by POLITICO reporters and editors. Learn more about editorial content presented by outside advertisers.


Leave a Reply

Your email address will not be published. Required fields are marked *