ANLPers at MAHED2025: From Hate to Hope: Boosting Arabic Text Classification
Paper · 2025 · Yasser Alhabashi, Serry Sibaee, Omer Nacar et al.
Summary
The paper describes a system for Sub-task 1 of the MAHED2025 shared task. The task is to sort short Arabic posts, in MSA or dialect, into hate, hope or not_applicable. The provided corpus has 6,890 texts and is skewed toward not_applicable, which makes up about 54%.
The authors compared three ways of using pre-trained Arabic BERT models:
- a frozen encoder whose mean-pooled embeddings feed a deep feed-forward classifier;
- full end-to-end fine-tuning with a single linear head;
- fine-tuning with two extra fully connected layers on top.
Each architecture was tested on raw text, on text passed through a cleaning pipeline, and on cleaned text plus paraphrases generated by an OpenAI model. The cleaning pipeline drops Latin characters, symbols, emojis and diacritics, and normalizes Unicode and whitespace. The paraphrases were meant to preserve labels and to balance and diversify the training data.
The best run reached macro-F1 0.6747 on the official test set. It used BERT-base-AraBERTv02 + NN with cleaning and generated data.
A manual audit then found that about a fifth of the training labels were wrong. This suggests that annotation quality, not model design, is the main limit on performance.
Key points
- Dataset: 6,890 instances, split into hate 1,301, hope 1,892 and not_applicable 3,697, with a majority/minority ratio of about 2.84. Texts average roughly 22 words.
- Training splits: the authors trained on balanced subsets. Without augmentation this meant 1,000 per class for training and 250 per class for validation. With GPT4-mini paraphrases it grew to 4,000 per class for training and 300 per class for validation.
- Best result: AraBERTv02 + NN with cleaning, generated data, LR 2e-5 and dropout 0.3 reached test macro-F1 0.6747 (validation 0.6394).
- Effect of augmentation: the same setup without generated data, at dropout 0.7, scored 0.6736, so the paraphrases added only a small gain.
- Other configurations: plain fine-tuned AraBERTv02 reached 0.6504. Frozen embeddings with an 8-layer network reached 0.6235.
- Label audit: a manual review of 100 random training samples found 22 mislabeled, with errors in every class. The per-class numbers in the paper's table and text do not fully agree.
Interesting ideas
- I1. Hand-check a small random sample of training labels to estimate how noisy the data is before blaming the model; this audit gives a rough ceiling on achievable scores.
- I2. Use an LLM to paraphrase training items while keeping the label fixed, which adds lexical and structural variety and can rebalance rare classes.
- I3. Run frozen-encoder-plus-head, full fine-tuning and fine-tuning-plus-extra-layers side by side under identical settings, to see where the gain actually comes from.
- I4. Downsample to equal class counts for training and validation, so macro-averaged metrics reflect performance on the minority classes rather than the dominant one.
- I5. Keep the text normalization explicit and step-by-step: strip symbols, normalize Unicode and collapse whitespace as separate, inspectable operations.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): Periodically audit around 100 random silver-data items where the witness parsers agreed, to measure residual noise and decide whether repair rules or relabeling should come before more training.
- I2 (answer): Generate meaning-preserving rewrites of school test questions and fable QA items, then check that Mova's answer stays the same, as a robustness test for the readers.
- I3 (tree): Apply the same three-way comparison to gparse, freezing the transformer versus fine-tuning it, to learn whether the parser's quality depends on encoder adaptation or on the scoring head.
- I4 (frames): Evaluate speech-act or irony detection on class-balanced sets, so that rare acts like threats or sarcasm are not hidden behind the frequent neutral statements.
- I5 (tokens): Log each normalization step in the en crate as its own traceable transform, so any tokenization error can be traced back to a specific cleaning rule.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 3,066 works
Cite
Cite as Yasser Alhabashi, Serry Sibaee, Omer Nacar, Adel Ammar and Wadii Boulila. 2025. ANLPers at MAHED2025: From Hate to Hope: Boosting Arabic Text Classification. Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks.
@inproceedings{alhabashi2025anlpers,
title = {{ANLPers at MAHED2025: From Hate to Hope: Boosting Arabic Text Classification}},
author = {Yasser Alhabashi, Serry Sibaee, Omer Nacar, Adel Ammar and Wadii Boulila},
booktitle = {Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
year = {2025},
doi = {10.18653/v1/2025.arabicnlp-sharedtasks.78},
url = {https://doi.org/10.18653/v1/2025.arabicnlp-sharedtasks.78}
}References
- Firoj Alam, Md. Rafiul Biswas, Uzair Shah, Wajdi Zaghouani, and Georgios Mikros. 2024. Propaganda tonbsp;hate: A multimodal analysis ofnbsp;arabic memes withnbsp;multi-agent llms. In Web Information Systems Engineering – WISE 2024: 25th International Conference, Doha, Qatar, December 2–5, 2024, Proceedings, Part V, page 380–390, Berlin, Heidelberg. Springer-Verlag. find
- Wissam Antoun, Fady Baly, and Hazem Hajj. 2021. Arabert: Transformer-based model for arabic language understanding. Preprint, arXiv:2003.00104. ↗
- Wajdi Zaghouani, Hamdy Mubarak, and Md Rafiul Biswas. 2024b. So hateful! building a multi-label hate speech annotated arabic dataset. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 15044–15055.
- Julian Bäumler, Louis Blöcher, Lars-Joel Frey, Xian Chen, Markus Bayer, and Christian Reuter. 2025. A survey of machine learning models and datasets for the multi-label classification of textual hate speech in english. Preprint, arXiv:2504.08609. ↗
- OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mohammad Bavarian, Jeff Belgum, and 262 others. 2024. Gpt-4 technical report. Preprint, arXiv:2303.08774. ↗
- Serry Sibaee, Abdullah Alharbi, Samar Ahmad, Omer Nacar, Anis Koubaa, and Lahouari Ghouti. 2024. ASOS at KSAA-CAD 2024: One embedding is all you need for your dictionary. In Proceedings of the Second Arabic Natural Language Processing Conference, pages 697–703, Bangkok, Thailand. Association for Computational Linguistics.
- Serry Sibaee, Omer Nacar, Adel Ammar, Yasser Al-Habashi, Abdulrahman Al-Batati, and Wadii Boulila. 2025. From guidelines to practice: A new paradigm for arabic language model evaluation. Preprint, arXiv:2506.01920. ↗
- Wajdi Zaghouani and Md Rafiul Biswas. 2025a. An annotated corpus of arabic tweets for hate speech analysis. arXiv preprint arXiv:2505.11969. Wajdi Zaghouani and Md. ↗
- Rafiul Biswas. 2025b. Emohopespeech: An annotated dataset of emotions and hope speech in english and arabic. Preprint, arXiv:2505.11959. ↗
- Wajdi Zaghouani and Md Rafiul Biswas. 2025c. Emohopespeech: An annotated dataset of emotions and hope speech in english and arabic. arXiv preprint arXiv:2505.11959. ↗
- Wajdi Zaghouani, Md Rafiul Biswas, Mabrouka Bessghaier, Shimaa Ibrahim, Georgios Mikros, Abul Hasnat, and Firoj Alam. 2025. MAHED shared task: Multimodal detection of hope and hate emotions in arabic content. In Proceedings of the Third Arabic Natural Language Processing Conference (Arabic-NLP 2025), Suzhou, China. Association for Computational Linguistics. Wajdi Zaghouani, Hamdy Mubarak, and Md.
- Rafiul Biswas. 2024a. So hateful! building a multi-label hate speech annotated Arabic dataset. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 15044–15055, Torino, Italia. ELRA and ICCL.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/alhabashi-2025-anlpers-mahed2025-hate-hope-boosting/