Detecting Propaganda Techniques in Code-Switched Social Media Text

Muhammad Umar Salman, Asif Hanif, Shady Shehata, Preslav Nakov

TL;DR

This paper introduces the novel task of detecting propaganda techniques in code-switched social media text, specifically focusing on mixtures of English and Roman Urdu. The authors release a newly annotated corpus of 1,030 text samples and demonstrate that directly modeling multilinguality significantly outperforms translation-based pipelines, with specialized cross-lingual models yielding the best overall performance.

What Problem Does This Paper Address?

While automatic propaganda detection has advanced significantly in recent years, most existing systems are designed for high-resource, monolingual datasets—typically English news articles. However, real-world social media communication looks very different, especially in multilingual communities. Users frequently engage in code-switching, alternating between multiple languages (such as English and Roman Urdu, which is Urdu written using the Latin script) within a single post or sentence.

This informal, mixed-language text presents a major challenge for standard NLP pipelines. When propaganda is woven into code-switched text, traditional monolingual models fail, and simply translating the text into English often erases the subtle emotional and cultural nuances that make the propaganda effective in the first place.

Methods

The authors frame propaganda detection as a multi-class, multi-label classification problem. To evaluate how best to handle code-switched data, they compare three distinct fine-tuning strategies across a variety of pre-trained language models (PLMs) and Large Language Models (LLMs):

  1. Out-of-Domain Strategy: Models are trained on text extracted from an existing meme dataset to test zero-shot generalization.
  2. Translated Strategy: Code-switched text is translated entirely into English using Google Cloud's Translation API before being fed into English-centric models.
  3. Code-Switched Strategy: Models are fine-tuned directly on the raw, code-switched training data.

The model architecture lineup includes monolingual BERT, multilingual BERT (mBERT), XLM-RoBERTa, specialized bilingual models like RUBERT (trained on Roman Urdu), and few-shot prompting with GPT-3.5-Turbo.

Datasets

The authors introduce a brand-new, publicly available dataset consisting of 1,030 code-switched text examples sourced from Twitter (60%), Facebook (25%), Instagram (10%), and YouTube (5%).

Expert annotators labeled the dataset at the fragment level using a taxonomy of 20 distinct propaganda techniques (e.g., Loaded Language, Smears, Name Calling/Labeling). In total, the dataset contains 2,577 labeled spans. The dataset exhibits a realistic but challenging class imbalance, where the top four techniques account for 77.6% of all instances.

Figure 1: Example of code-switched text annotated at the fragment level. Here, the entire text is labeled as Smears and Black and White Fallacy/Dictatorship Translation of the code-switched text: There are only two types of fans. Those toxic people who till death will not leave this rubbish team’s side and people like me who realize this team is dung.

Key Insights and Ideas

  • Translation is a Information Bottleneck: Translating code-switched text into a high-resource language like English degrades performance. The translation process fails to preserve the inherent propagandistic characteristics and emotional weight embedded in the original low-resource language fragments.
  • Cross-Lingual Transfer Wins: Models that leverage cross-lingual pre-training and are further adapted to the specific low-resource language (e.g., XLM-RoBERTa adapted for Roman Urdu) perform best because they can effectively map contextual representations across both language spaces simultaneously.
  • LLMs Excel at the Long Tail: While fine-tuned models achieved better overall exact match scores, few-shot LLMs (GPT-3.5-Turbo) demonstrated remarkably high macro-recall. Thanks to their massive pre-training corpora, LLMs are much better at identifying rare, underrepresented propaganda techniques that fine-tuned models miss due to data scarcity.
Figure 3: Histogram of the number of techniques per example.

Key Results

  • Best Overall Model: Model $\mathcal{M}_{11}$ (XLM-RoBERTa fine-tuned specifically on Roman Urdu datasets) achieved the highest Micro F1-Score of 0.53, an Accuracy of 0.910, and an Exact Match Ratio of 0.135.
  • The Baseline Comparison: Direct code-switched fine-tuning ($\mathcal{M}_{11}$) outperformed the best translation-based model ($\mathcal{M}_6$, XLM-RoBERTa on English translations) which only achieved a Micro F1-Score of 0.46.
  • LLM Performance: GPT-3.5-Turbo in a 20-shot setting ($\mathcal{M}_{13}$) achieved the highest Macro F1-Score (0.28) and Macro Recall (0.42) across the board, proving its strength in handling highly imbalanced label distributions.

Limitations and Future Work

The authors note several key limitations:

  • Dataset Scale & Imbalance: The corpus is relatively small (1,030 examples), and severe class imbalance makes it noisy to evaluate rarer propaganda techniques.
  • Orthographic Variance: Roman Urdu lacks standardized spelling rules. The same word can be spelled multiple ways by different users, which artificially inflates the vocabulary size and dilutes token embeddings.
  • Structural Mismatch: English follows a Subject-Verb-Object (SVO) structure, while Urdu follows a Subject-Object-Verb (SOV) structure. This grammatical friction makes fragment-level span selection highly complex when the languages interlock.

Future Directions: The team plans to scale up the corpus, expand the task to other low-resource code-switched language pairs, and transition from text-level classification to token-level sequence labeling to pinpoint exact propaganda spans.

Summary updated

BibTeX
@inproceedings{salman2023detecting,
  author = {Muhammad Umar Salman and Asif Hanif and Shady Shehata and Preslav Nakov},
  title = {{Detecting Propaganda Techniques in Code-Switched Social Media Text}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.1044},
}
Figure