Causally estimating the effect of YouTube's recommender system using counterfactual bots

Homa Hosseinmardi, Amir Ghasemian, Miguel Rivera-Lanas, Manoel Horta Ribeiro, Robert West, Duncan J. Watts

Abstract

The "rabbit hole" narrative suggests that YouTube’s recommendation algorithm radicalizes users by leading them toward increasingly extreme content. However, distinguishing between user preference and algorithmic influence is challenging. This study employs "counterfactual bots"—automated agents that mimic real-world viewing histories—to isolate the algorithm's causal effect. The findings reveal that YouTube’s recommender system generally acts as a moderating force, recommending less extreme content than users choose for themselves. Furthermore, while sidebar recommendations quickly "forget" partisan preferences, homepage recommendations remain "sticky" for longer periods.

The Challenge of Causal Inference in Recommendations

For years, public discourse has been dominated by the idea that YouTube’s recommendation engine lures users into ideological corners. Proving this is difficult because of a "counterfactual" problem: if a user watches a series of far-right videos, is the algorithm trapping them, or are they simply following their own interests? Previous research often lacked a control group or failed to account for how the algorithm reacts to specific, personalized user histories.

Methodology: Counterfactual Bots

To disentangle user preference from algorithmic influence, the authors introduced a novel experimental design using counterfactual bots. These bots were "trained" in a Learning Phase by watching the exact same sequence of 60 videos as a specific real-world user from the Nielsen Desktop Web Panel.

In the subsequent Observation Phase, these bots were split into groups. A "Control Bot" continued to follow the real user’s actual viewing path, while "Counterfactual Bots" followed strict algorithmic rules, such as always clicking the "Up Next" video or picking a random video from the sidebar or homepage. By comparing the partisanship of content seen by "algorithmic" bots versus "real user" bots, researchers isolated the algorithm's specific contribution.

The Algorithm as a Moderating Force

Contrary to the "rabbit hole" theory, the study found that the algorithm generally pushes users toward the center. This moderation effect is most significant for the most extreme users; the more partisan a user's own choices are, the more the algorithm tries to "pull" them back toward moderate content.

Comparison of real user trajectories versus algorithmic recommendations across different levels of partisan consumption.

As shown in Figure 3, for users in the "far-right high" consumption archetype (Panel D), the content they actually chose to watch (grey line) was significantly more partisan than what the "Up Next" (cyan) or "Homepage" (pink) algorithms recommended to them. This suggests that "bursts" of partisan consumption are typically driven by user preference rather than algorithmic steering.

Algorithmic Memory: Sidebar vs. Homepage

The researchers also tested how long it takes for the algorithm to "forget" partisan preferences after a user switches to moderate content. They found a stark difference between the sidebar and the homepage.

Average partisan score over time in the observation phase, comparing the persistence of recommendations for users with long versus short partisan histories.

As illustrated in Figure 6, the sidebar and "Up Next" recommendations are highly reactive. Within approximately 30 videos of switching to moderate content, the sidebar recommendations for a former "far-right" bot became indistinguishable from those of a bot that had only ever watched moderate content. However, the homepage is "sticky"; if a user has a long history of watching partisan content, the homepage will continue to suggest it for much longer, even after the user has changed their viewing habits.

Conclusion and Limitations

The findings suggest that YouTube's 2019 algorithmic updates have been effective in reducing the promotion of extreme content. While the algorithm does not appear to drive radicalization, the study notes several limitations. The data is based on desktop usage, which may differ from mobile app dynamics. Additionally, while the algorithm might not drive users to extreme content, such content remains hosted and easily accessible on the platform. Future work is needed to understand how these dynamics play out over longer real-world timescales where external events might influence user behavior.

Summary updated

BibTeX
@inproceedings{hosseinmardi2024causally,
  author = {Homa Hosseinmardi and Amir Ghasemian and Miguel Rivera-Lanas and Manoel Horta Ribeiro and Robert West and Duncan J. Watts},
  title = {{Causally estimating the effect of YouTube's recommender system using counterfactual bots}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2024},
  doi = {10.1073/pnas.2313377121},
}
Figure