Mela at A r AIE val Shared Task: Propagandistic Techniques Detection in A rabic with a Multilingual Approach (2024)

Abstract: This paper presents our system submitted for Task 1 of the ArAIEval Shared Task on Unimodal (Text) Propagandistic Technique Detection in Arabic. Task 1 involves identifying all employed propaganda techniques in a given text from a set of possible techniques or detecting that no propaganda technique is present. Additionally, the task requires identifying the specific spans of text where these techniques occur. We explored the capabilities of a multilingual BERT model for this task, focusing on the effectiveness of using outputs from different hidden layers within the model. By fine-tuning the multilingual BERT, we aimed to improve the model’s ability to recognize and locate various propaganda techniques. Our experiments showed that leveraging the hidden layers of the BERT model enhanced detection performance. Our system achieved competitive results, ranking second in the shared task, demonstrating that multilingual BERT models, combined with outputs from hidden layers, can effectively detect and identify spans of propaganda techniques in Arabic text.

## introduction propaganda is a powerful tool often used to influence public opinion and manipulate perceptions by spreading biased or misleading information. it employs a range of persuasive techniques to shape attitudes and beliefs, typically to benefit a particular agenda or cause. in today's digital age, the dissemination of propaganda has become more prevalent, particularly on social media and other online platforms. detecting and analyzing propaganda in text is essential for mitigating its impact and promoting informed decision-making among the public. this paper presents our approach to the unimodal (text) propagandistic technique detection task at araieval 2024 @xcite . our approach leverages a multilingual bert model @xcite , known for capturing rich contextual information across multiple languages. the motivation for exploring mbert was to examine the capabilities of a multilingual model for this task on arabic. inspired by the findings in @xcite we experimented with both the multilingual capabilities of the model and the use of outputs from different hidden layers to explore their effectiveness for identifying propaganda techniques in arabic text. to assess mbert's strengths and weaknesses, we compared it to arabert. while our experiments revealed that arabert achieved superior overall performance compared to mbert, interestingly, mbert's earlier hidden layers exhibited significantly better performance than its later layers. note that arabert was trained after the evaluation cycle, thus, only mbert was submitted for the leaderboard. ## related work propaganda detection has seen significant advancements through various shared tasks and studies focusing on fine-tuning transformer models and exploring multilingual approaches. the wanlp 2022 shared task @xcite , which centered on detecting propaganda techniques in arabic tweets, had top-performing submissions predominantly using fine-tuned transformer models like arabert and marbert @xcite . the ngu_cnlp @xcite team achieved first place with an ensemble of arabert models combined with data augmentation techniques. meanwhile, the iitd @xcite team employed the multilingual xlm-r @xcite model but did not surpass the performance of the specialized monolingual models. similarly, in the araieval 2023 shared task @xcite , most submissions focused on fine-tuning advanced transformer models, with common approaches including arabert and marbert. many teams, such as hte @xcite , utilized multitask learning. preprocessing techniques and data augmentation were also widely used to improve model performance. some teams employed multilingual models in their systems. for example, the legend team @xcite implemented xlm-roberta, addressing class imbalance through weighted learning and dynamic learning rate adjustment, and the redaspersuasion (qachfar and verma, 2023) team combined a multilingual transformer model with a feature engineering module to extract language-agnostic features for persuasion detection. despite these efforts, the performance of multilingual models like xlm-roberta was generally moderate compared to top-performing systems that used monolingual models specifically fine-tuned for arabic. these consistent results across both tasks highlight the effectiveness of monolingual models for detecting propaganda techniques in arabic text, while multilingual models show promise but require further refinement to match their performance. recent work on propaganda detection also includes studies on the capabilities of large language models. one such study @xcite investigated @xcite ability to annotate propaganda spans in text, demonstrating its potential to act as both a general and expert annotator, with improved performance when given more information. building on this, a more recent study @xcite introduced the arpro dataset, the largest dataset for fine-grained propaganda detection in arabic, annotated for 23 techniques. additionally, the armeme dataset @xcite was introduced to explore propagandistic content in arabic memes. this dataset focuses on visual and textual propaganda techniques within memes, providing a unique resource for understanding how propaganda operates in multimodal formats. this work adds to the growing body of research emphasizing the need for diverse datasets and advanced methodologies to tackle propaganda across different media and languages. ## data for this task we have used the data provided for the task @xcite , collected from tweets and news articles. the organizers provided the data in jsonlines format and already split into train, test and validation sets. there are almost 7000 samples in the training set, with each sample containing the text and the character level span of different propaganda techniques used in the text. it is a multi-label, multi-class dataset. ## task overview araieval shared task 1 @xcite involves identifying various propaganda techniques in arabic text and pinpointing the exact character level spans where these techniques occur. arabic, a low-resource language for this task, presents unique challenges for natural language processing (nlp) due to its rich morphology and syntactic complexity. traditional nlp techniques often struggle with the diverse expressions and structures found in arabic text. the formal definition for the task is as follows: given an input sequence x of length n , denoted as @xmath0, x 2 , . . . , x n , generate an output sequence y of length 23, with one element for each class. each element in the output sequence, y c , is an ndimensional vector where each element is either 1 or 0. consecutive 1's in y c define the span for that class. ## our methodology we approached the sequence tagging task as a multi-label, multi-class classification problem. the classes correspond to the original 23 classes from the dataset. for tokenization, we used the pre-trained bert subword tokenizer from huggingface. 1 since the subword tokenizer produces more tokens than words in the document, we trained and inferred on the first 256 tokens. we truncated or padded the input sequence to be 256 tokens, ensuring a uniform input length for the model. the formal definition for the task is as follows: given an input sequence x of length n , denoted as @xmath1, x 2 , . . . , x n , generate an output sequence y of length 23, with one element for each class. each element in the output sequence, y c , is an ndimensional vector where each element is either 1 or 0. consecutive 1's in y c define the span for that class. we focused on fine-tuning pre-trained bert models @xcite . specifically, we ran our experiments on the base version of multilingual bert cased with 110m parameters from hugging-face. 2 the training loss function was a modified binary cross-entropy that ignores pad tokens. we conducted our experiments using pytorch on a single rtxa6000 gpu. 3 the experiments aimed to find the best hyperparameters and the optimal hidden representation from the bert output for training the classifier layers, inspired by @xcite . we first performed a hyperparameter search using optuna for 5 epochs on the dev set and then re-trained the system for additional epochs using the optimal hyperparameters found. 4 optuna was configured to use nsga-ii algorithm @xcite . our best-performing system on the leaderboard was trained on a single gpu for 400 epochs with a batch size of 32, a learning rate of 6.91 × 10 -05 , a weight decay of 0.00358, and 226 warmup steps. we used feature representation from the 10th hidden layer of the bert model. we evaluated our system using a modified f1 measure provided by the shared task organisers. this measure accounts for the partial matching of spans between the gold standard and the hypothesis, ensuring a more accurate evaluation of the system's performance. ## results we evaluated the performance of our system using different hidden layers from mbert on both the development and test sets, and included results from arabertv2 (antoun et al.) for comparison. the results, detailed in interestingly, the performance of the mbert layers, especially the 8th layer, is not far behind that of arabertv2. this indicates that multilingual models like mbert have significant potential, particularly when fine-tuning involves selecting the most effective hidden layers. arabertv2, while consistently performing better, highlights the benefits of a model specifically fine-tuned for arabic. while the arabert and mbert's 8th layer achieved better performances, we only submitted the result from 10th layer (mbert) to meet the submission deadline. both models demonstrated higher recall compared to precision, indicating a tendency to identify many relevant spans but also produce numerous false positives. the performance trends were consistent across both development and test sets, indicating robustness in the observed patterns. overall, these results align with the findings of the study by @xcite on the effectiveness of different hidden layers. their study also found that exploring hidden layers can significantly enhance model performance. these results suggest that multilingual models like mbert have substantial potential, and that careful selection and experimentation with hidden layers can yield significant performance improvements. ## discussion we evaluated the model's performance on the test set by categorizing spans into short (maximum 3 words) and long (more than 3 words) segments. the model performed better on short spans, with a precision, recall, and f1-score of 0.10. in contrast, for long spans, the precision, recall, and f1-score were 0.02. this indicates the model is more effective at identifying shorter spans, likely due to their reference ar en tunisia aspires for africa to become its second-largest trading partner, by finding solutions to all the issues and obstacles. prediction ar en tunisia aspires for africa to become its second-largest trading partner, by finding solutions to all the issues and obstacles. prediction we picked a sample from the test set for a qualitative analysis to understand the model's performance in detail. we found several instances where the model identified propaganda techniques that were not present in the gold labels but seemed logical and potentially correct. in sample 2a, the phrase " " (finding solutions to all issues and obstacles) could be seen as exaggeration, implying a comprehensive and possibly unrealistic promise. another example in sample 2b, the word " " (uphold) within the context of terrorism cases may suggest a bias or specific stance, potentially serving a propagandistic purpose. the model identifies this as loaded language, highlighting a possible implicit bias. the model also showed segmentation issues, identifying propaganda with larger spans than necessary. for example, in 2b, the reference label marked " " (terrorism) as name calling, while the model predicted " " (terrorism cases). although the model's prediction is not necessarily incorrect, as it relates to the context, it doesn't match the reference label precisely. ## conclusion in this study, we explored the use of a multilingual bert model to detect propaganda techniques in arabic text. our approach involved fine-tuning the bert model and utilizing representations from different hidden layers to improve detection accuracy. despite the challenges posed by arabic's complex morphology and syntax, our system performed well, securing the second position in the araieval shared task. the results indicate that multilingual bert models, when properly fine-tuned, can effectively identify and locate various propaganda techniques in arabic texts. future work could focus on further refining these models and addressing class imbalance to enhance detection performance.