Elamur Research⌕
☰
home / papers / 2025 / Baoflowin502 at MAHED Shared Task: Text-based Hate and Hope Speech Classification

Baoflowin502 at MAHED Shared Task: Text-based Hate and Hope Speech Classification

Paper · 2025 · Nguyen Minh Bao and Dang Van Thin

Summary

The paper addresses three-way classification of Arabic social media posts into hate speech, hope speech, or not-applicable for the MAHED shared task. The task is hard because Arabic has rich morphology, many dialects and heavy cultural nuance. The authors fine-tune three Arabic-specific encoders (AraBERTv2, CAMeLBERT and MARBERT) on a balanced set of 6,889 posts. Before training, they clean the text: emojis become words, URLs and mentions are removed, and the script is normalized. To enlarge the training data, they add three kinds of new examples:

  • paraphrases from a translation round trip through English and French;
  • synthetic posts written by GPT-4 from a few examples;
  • synonym swaps that leave key terms untouched.

For comparison, they also train a bagged XGBoost and an MLP on AraBERTv2 embeddings. Augmentation improves every encoder, and a majority vote over the three fine-tuned models reaches 0.689 Macro-F1 in 5-fold cross-validation. Classical models score close to the transformers. This suggests the difficulty comes from fuzzy class boundaries and limited data rather than model capacity, which is a useful signal for low-resource moderation work.

Key points

  • Data: 6,889 posts split almost evenly: Hate 2,296, Hope 2,301 and Not-applicable 2,292. The reported sources are Twitter, Facebook and regional forums.

  • No-augmentation baselines (5-fold CV Macro-F1):

    ModelMacro-F1
    bagged XGBoost0.626
    MLP0.616
    AraBERTv20.623
    CAMeLBERT0.647
    MARBERT0.639
  • With augmentation at a 50% ratio:

    ModelMacro-F1
    AraBERTv20.665
    MARBERT0.652
    CAMeLBERT0.679
    XGBoost0.656
    hard voting ensemble0.689
  • Augmentation details:

    • Google Translate round trip Arabic→English→French→Arabic, filtered by multilingual embedding similarity.
    • GPT-4 prompts with 3–5 examples per class.
    • Substitution via Arabic WordNet, with POS tagging and NER protecting names and class-bearing words.
  • Setup: Stratified K-Fold, Optuna tuning, NVIDIA Tesla P100.

  • Caveats:

    • The abstract names CAMeLBERT (0.6868) as best, which disagrees with the tables.
    • There is no ablation separating the individual augmentation methods.

Interesting ideas

  • I1. Chaining translation through two pivot languages yields more varied paraphrases than a single hop, and an embedding-similarity filter discards drifted outputs before they pollute training data.
  • I2. Synonym substitution that uses POS and NER to shield proper nouns and decisive words creates lexical variety without changing the label.
  • I3. Hard majority voting across differently specialized models, with ties broken by the most confident member, beat every single model.
  • I4. A classical model on frozen embeddings scoring close to fine-tuned transformers was read as evidence that labels, not capacity, limit accuracy.
  • I5. Turning emojis into textual descriptions keeps their emotional signal available to a text-only model.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): English→X→Y→English paraphrases could serve as invariance probes, where the UD tree may change but the extracted frames must not, giving a cheap consistency check on silver data.
  • I2 (tree): swapping same-POS lemmas in treebank sentences while keeping the gold arcs could augment parser training and test whether gparse relies on memorized word forms.
  • I3 (learn): the same scheme fits the witness-parser agreement step, where a vote decides each arc and the highest-confidence parser settles disagreements.
  • I4 (frames): before scaling irony or speech-act classifiers, a simple embedding baseline could show whether the category boundaries themselves are too fuzzy to learn.
  • I5 (tokens): mapping emojis to word tokens in the en tokenizer would let the tagger and lemmatizer handle them, so prag can later use them as tone or irony cues.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Fields, topics and concepts

📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works

🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works

Cite

Cite as Nguyen Minh Bao and Dang Van Thin. 2025. Baoflowin502 at MAHED Shared Task: Text-based Hate and Hope Speech Classification. Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.arabicnlp-sharedtasks.91

@inproceedings{bao2025baoflowin502,
  title = {{Baoflowin502 at MAHED Shared Task: Text-based Hate and Hope Speech Classification}},
  author = {Nguyen Minh Bao and Dang {Van Thin}},
  booktitle = {Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
  year = {2025},
  doi = {10.18653/v1/2025.arabicnlp-sharedtasks.91},
  url = {https://doi.org/10.18653/v1/2025.arabicnlp-sharedtasks.91}
}

References

10 references, 6 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Muhammad Abdul-Mageed, AbdelRahim Elmadany, and El Moatez Billah Nagoudi. 2021. ARBERT & MARBERT: Deep bidirectional transformers for Arabic. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 7088–7105, Online. Association for Computational Linguistics. ↗
  2. Takuya Akiba, Shotaro Sano, Toshihiko Yanase, Takeru Ohta, and Masanori Koyama. 2019. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2623–2631.
  3. Wissam Antoun, Fady Baly, and Hazem Hajj. Arabert: Transformer-based model for arabic language understanding. In LREC 2020 Workshop Language Resources and Evaluation Conference 11–16 May 2020, page 9. ↗
  4. Nguyen Minh Bao. 2025. baoflowin502 at MarsadLab: Baoflowin502 at mahed2025: Text-based hate and hope speech classification. In Proceedings of the Third Arabic Natural Language Processing Conference (ArabicNLP 2025), Suzhou, China. Association for Computational Linguistics. find
  5. Ashraf Elnagar, Ridhwan Al-Debsi, and Omar Einea. 2020. Arabic text classification using deep learning models. Information Processing & Management, 57(1):102121. ↗
  6. Go Inoue, Bashar Alhafni, Nurpeiis Baimukan, Houda Bouamor, and Nizar Habash. 2021. The interplay of variant, size, and task type in Arabic pre-trained language models. In Proceedings of the Sixth Arabic Natural Language Processing Workshop, Kyiv, Ukraine (Online). Association for Computational Linguistics.
  7. Jae Myung Kim, Jessica Bader, Stephan Alaniz, Cordelia Schmid, and Zeynep Akata. 2024. Datadream: Few-shot guided dataset generation. In European Conference on Computer Vision, pages 252–268. Springer. find
  8. Ahlam Wahdan, Mostafa Al-Emran, and Khaled Shaalan. 2024. A systematic review of arabic text classification: areas, applications, and future directions. Soft Computing, 28(2):1545–1566. ↗
  9. 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.
  10. Wajdi Zaghouani, Hamdy Mubarak, and Md Rafiul Biswas. 2024. 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.

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/bao-2025-baoflowin502-mahed-shared-task-text/