Abstract
The ability of Natural Language Processing (NLP) methods to categorize text into multiple classes has motivated their use in online content moderation tasks, such as hate speech and fake news detection. However, there is limited understanding of how or why these methods make such decisions, or why certain content is moderated in the first place. To investigate the hidden mechanisms behind content moderation, we explore multiple directions: 1) training classifiers to reverse-engineer content moderation decisions across countries; 2) explaining content moderation decisions by analyzing Shapley values and LLM-guided explanations. Our primary focus is on content moderation decisions made across countries, using pre-existing corpora sampled from the Twitter Stream Grab. Our experiments reveal interesting patterns in censored posts, both across countries and over time. Through human evaluations of LLM-generated explanations across three LLMs, we assess the effectiveness of using LLMs in content moderation. Finally, we discuss potential future directions, as well as the limitations and ethical considerations of this work.
Introduction
Content moderation is often described as the "black box" of the digital age. While platforms like X (formerly Twitter) enforce policies to mitigate harm, the actual mechanisms behind these decisions are frequently hidden within proprietary algorithms or influenced by varying government interventions. There is a significant gap in our understanding of why specific content is moderated in different regions. Most existing NLP tools for moderation focus on surface-level keyword detection, often failing to distinguish between the usage of a slur and the mention of it (e.g., in counterspeech). This research seeks to move beyond simple detection to explain the underlying rationales and geopolitical patterns that drive censorship across different nations.
Methodology
The study approaches the problem of opaque moderation through two primary tasks:
- Reverse-Engineering Decisions: The researchers trained multi-label classifiers to predict whether a post was censored and to which of six categories it belonged (Political, Religious, Harmful, Corporate, Military, or Other). They compared traditional encoder-based models (like BERT and RoBERTa) against smaller decoder-based LLMs (Pythia 1B and Llama 3.2 1B).
- Explaining the "Why":
- Shapley Values (SHAP): This technique was used to identify which specific tokens (words) most influenced a model's decision to flag a post.
- LLM-Guided Explanations: The authors prompted state-of-the-art models (GPT-4o, Llama-3.1, and Aya-23) to generate natural language rationales for moderation decisions, which were then validated by human experts.
Data and Taxonomy
The study utilized a subset of the Twitter Stream Grab, a 1% subsample of all tweets and retweets between 2011 and July 2020. The researchers focused on five countries with diverse national contexts: Germany, France, India, Turkey, and Russia. The final dataset included tens of thousands of posts per country (e.g., ~39k for Germany), though the number of censored samples varied significantly, from 16% in Germany to just 1.8% in Russia.
To categorize censored posts, the researchers used GPT-4o-mini to apply a six-type taxonomy based on Reporters Without Borders (RSF) methodology. This allowed for a granular look at what kind of speech triggers moderation in different jurisdictions.
Key Insights: Geopolitical Fingerprints
The analysis reveals that censorship is far from uniform across the globe. Moderation priorities shift based on geopolitical contexts:
- European Context: Germany and France show a high prevalence of "Harmful Content" moderation (hate speech, racism), likely driven by strict European laws like NetzDG.
- South Asian and Middle Eastern Context: In contrast, moderation in India and Turkey is heavily skewed toward "Political" and "Religious" categories.
- XAI as a Historical Mirror: By plotting the most influential tokens (Shapley values) over time, the researchers found that censorship patterns act as a mirror to real-world events. For example, tokens related to the "Kavanaugh Hearings" spiked in German and French moderation in 2018, while terms related to the "Kashmir conflict" dominated Indian moderation.
Results and Performance
The predictive models demonstrated high accuracy in identifying censored content. The best-performing model, Pythia 1B, achieved a remarkably high Weighted F1 score of 93.39 on the aggregated test set. Interestingly, zero-shot LLMs (models not specifically trained on this data) struggled, with GPT-4o-mini reaching only a 53.6 F1 score. This highlights that moderation remains a non-trivial task requiring specific regional and historical context.
In human evaluations, LLM-generated explanations were rated as "helpful" approximately 72% of the time. The Aya-23 model, specifically designed for multilingual tasks, outperformed others in explanation quality, suggesting that multicultural training is vital for global moderation tools. However, models struggled most with the "Other" category—ambiguous or spam-like posts that do not fit neatly into primary buckets.
Limitations and Future Directions
While the study provides a new lens into moderation, several limitations remain. The research focused primarily on English-language tweets, potentially missing localized discourse patterns in multilingual countries. Furthermore, the findings are limited to Twitter's specific policies and user demographics between 2011 and 2020; they may not translate directly to platforms like TikTok or Instagram. There is also the ongoing challenge of "unfaithful explanations," where an LLM might generate a plausible rationale that does not actually reflect its internal processing logic.
Future work may explore "activation patching" to better understand how LLMs process moderation logic and expand the analysis to more recent data to capture the impact of evolving AI-driven moderation policies. The code and data for this project are available at https://github.com/causalNLP/censorship.
Summary updated