Elamur Research⌕
☰
home / papers / 2024 / Team Curie at HSD-2Lang 2024: Hate Speech Detection in Turkish and Arabic Tweets using BERT-based models

Team Curie at HSD-2Lang 2024: Hate Speech Detection in Turkish and Arabic Tweets using BERT-based models

Paper · 2024 · Ehsan Barkhordar, Işık S. Topçu and Ali Hürriyetoğlu

Summary

The paper describes Team Curie's entry to the HSD-2Lang shared task at CASE 2024. The task is binary hate speech classification of tweets in two settings: Turkish tweets grouped by topic (Subtask A) and Arabic tweets with only a small training set (Subtask B). The team fine-tuned two monolingual BERT models, both trained with AdamW: dbmdz/bert-base-turkish-128k-uncased for Turkish and asafaya/bert-base-arabic for Arabic.

For Turkish, they built a cleaning pipeline. It turns emojis into English descriptions and strips URLs, mentions, hashtags and extra whitespace. They also drew the validation set by stratifying over label and topic. For Arabic, cleaning lowered scores, so the tweets were left nearly raw.

The best public-leaderboard F1 was 0.719 for Turkish (fourth place) and 0.769 for Arabic (third place). The Turkish peak came from a submission made after the deadline. An ablation on Turkish shows which cleaning steps carry the gain and that resampling for balance did not help. The work offers a compact, reproducible baseline for classifying social-media text in lower-resource languages.

Key points

  • Shared training setup: AdamW with learning rate 5×10⁻⁵, weight decay 0.01 and batch size 128, for 3 epochs (Turkish) and 5 epochs (Arabic). Turkish inputs were capped at 128 tokens.
  • Turkish validation set: it was stratified per label and topic, with 70, 60 and 50 tweets per label for the topics Anti-Refugee, Israel-Palestine and Turkey-Greece.
  • Subtask A F1 (public / private):
    • Late "peak" submission: 0.71889 / 0.66129.
    • Official submission: 0.71365 / 0.60790.
    • Competition best: 0.74876 / 0.69644.
  • Subtask B F1 (public / private):
    • Team result: 0.76923 / 0.65853, the same for the official and peak submissions.
    • Competition best: 0.88888 / 0.68354.
  • Turkish ablation:
    • Skipping hashtag processing caused the largest drop (0.67868 / 0.62391).
    • Skipping emoji conversion also hurt (0.69868 / 0.64391).
    • Newline and space cleanup made no difference.
    • Label balancing (0.70646 / 0.64332) and topic balancing (0.63917 / 0.60550) both scored below the unbalanced run.

Interesting ideas

  • I1. Removing one preprocessing step at a time and re-scoring shows which normalizations matter and which are inert, such as whitespace cleanup here.
  • I2. Emojis were not deleted but rewritten as textual descriptions, so a model trained on words can still read their meaning.
  • I3. Cleaning that helped Turkish hurt Arabic, so preprocessing was treated as a choice to verify per language and data type, not a fixed default.
  • I4. The validation split was stratified over label × topic combinations, so held-out data mirrored the thematic mix of training.
  • I5. Official, post-deadline, public and private scores were reported separately, which exposes how much tuning against a public leaderboard inflates results.

For Mova

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

  • I1 (learn): Run the same leave-one-out test on each text-normalization rule before the tagger, so rules that add nothing can be dropped with evidence.
  • I2 (tokens): The tokenizer could map each emoji to a description lemma with a part-of-speech, giving it a node in the UD tree that prag can later use for sentiment or irony cues.
  • I3 (tokens): Keep normalization profiles separate per text source (fables, word problems, web text) and validate each on its own data.
  • I4 (learn): Build evaluation sets stratified by genre × linguistic phenomenon, so a gain on one frequent pattern cannot hide a loss on a rare one.
  • I5 (learn): Keep a sealed test split that is never used during repair-rule induction, and report its score next to the dev score as an overfitting check.

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

 Institutions

 Fields, topics and concepts

Cite

Cite as Ehsan Barkhordar, Işık S. Topçu and Ali Hürriyetoğlu. 2024. Team Curie at HSD-2Lang 2024: Hate Speech Detection in Turkish and Arabic Tweets using BERT-based models. Proceedings of the 7th Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text (CASE 2024).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.case-1.30

@inproceedings{barkhordar2024team,
  title = {{Team Curie at HSD-2Lang 2024: Hate Speech Detection in Turkish and Arabic Tweets using BERT-based models}},
  author = {Ehsan Barkhordar, Işık S. Topçu and Ali Hürriyetoğlu},
  booktitle = {Proceedings of the 7th Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text (CASE 2024)},
  year = {2024},
  doi = {10.18653/v1/2024.case-1.30},
  url = {https://doi.org/10.18653/v1/2024.case-1.30}
}

References

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

  1. İnanç Arın, Zeynep Işık, Seçilay Kutal, Somaiyeh Dehghan, Arzucan Özgür, and Berrin Yanikoğlu. 2023. Siu2023-nst - hate speech detection contest. In 2023 31st Signal Processing and Communications Applications Conference (SIU), pages 1–4. Fatih Beyhan, Buse Çarık, İnanç Arın, Ayşecan Terzioğlu, Berrin Yanikoglu, and Reyyan Yeniterzi. 219 5 2022. A Turkish hate speech dataset and detection system. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 4177– 4185, Marseille, France. European Language Resources Association. find
  2. Nur Bengisu Çam and Arzucan Özgür. 2023. Evaluation of chatgpt and bert-based models for turkish hate speech detection. In 2023 8th International Conference on Computer Science and Engineering (UBMK), pages 229–233. IEEE. find
  3. Zehra Melce Hüsünbeyi, Didar Akar, and Arzucan Özgür. 2022. Identifying hate speech using neural networks and discourse analysis techniques. In Proceedings of the First Workshop on Language Technology and Resources for a Fair, Inclusive, and Safe Society within the 13th Language Resources and Evaluation Conference, pages 32–41, Marseille, France. European Language Resources Association. find
  4. H. Karayiğit, A. Akdagli, and Ç. İ. Aci. 2022. Homophobic and hate speech detection using multilingual-bert model on turkish social media. Information Technology and Control, 51(2):356–375. ↗
  5. Ali Safaya, Moutasem Abdullatif, and Deniz Yuret. 2020. KUISAIL at SemEval-2020 task 12: BERT-CNN for offensive speech identification in social media. In Proceedings of the Fourteenth Workshop on Semantic Evaluation, pages 2054–2059, Barcelona (online). International Committee for Computational Linguistics.
  6. Cagri Toraman, Furkan Şahinuç, and Eyup Yilmaz. 2022. Large-scale hate speech detection with cross-domain transfer. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 2215–2225, Marseille, France. European Language Resources Association. find
  7. Gökçe Uludoğan, Somaiyeh Dehghan, İnanç Arın, Elif Erol, Berrin Yanikoglu, and Arzucan Özgür. 2024. Overview of the Hate Speech Detection in Turkish and Arabic tweets (HSD-2Lang) Shared Task at CASE 2024. In "Proceedings of the 7th Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text (CASE)", Malta. Association for Computational Linguistics. 220 6

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/barkhordar-2024-team-curie-hsd-2lang-2024/