Elamur Research⌕
☰
home / papers / 2020 / iCompass at SemEval-2020 Task 12: From a Syntax-ignorant N-gram Embeddings Model to a Deep Bidirectional Language Model

iCompass at SemEval-2020 Task 12: From a Syntax-ignorant N-gram Embeddings Model to a Deep Bidirectional Language Model

Paper · 2020 · Abir Messaoudi, Hatem Haddad and Moez Ben Haj Hmida

Summary

The paper describes team iCompass's entry to SemEval-2020 Task 12, subtask A for Arabic. The task is a binary decision: is a social-media post offensive (OFF) or not (NOT)? The official data is mostly Egyptian dialect, with some other dialects mixed in. The authors expanded training with two dialectal abuse/hate corpora, L-HSAB (Levantine) and T-HSAB (Tunisian). They cleaned the text with regular expressions, leaving only Arabic script.

Three approaches were compared:

  • Tw-StAR, a shallow syntax-ignorant n-gram embeddings model, tested alone and combined with an offensive-word lexicon;
  • fine-tuned multilingual cased BERT-base;
  • BERT's embedding matrix feeding a BiLSTM classifier.

On the development set, BERT+BiLSTM performed best, with accuracy 0.898 and macro F1 0.825. Tw-StAR had similar accuracy but a macro F1 of only about 0.33. Adding the extra dialect corpora raised macro F1 from 0.784 to 0.825. The work shows that contextual representations and cross-dialect data help for noisy, imbalanced, dialectal Arabic. It also shows that a word lexicon is fragile against negation.

Key points

  • Official splits: TRAIN 7,000, DEV 1,000 and TEST 2,000 comments. With L-HSAB (5,846) and T-HSAB (6,039), the combined training pool was 18,885 items, of which 5,734 were OFF.

  • Annotation reliability of the added corpora, measured by Krippendorff's alpha, was 76.5% for L-HSAB and 75% for T-HSAB. Their original three labels (Normal/Abusive/Hate) were used for the binary task.

  • Dev results (accuracy / macro F1):

    ModelAccuracyMacro F1
    Tw-StAR0.8130.331
    Tw-StAR+Lexicon0.8180.332
    BERT0.8210.791
    BERT+BiLSTM0.8980.825
  • Data ablation for BERT+BiLSTM (macro F1):

    Training dataMacro F1
    SemEval only0.784
    SemEval + L-HSAB0.794
    SemEval + L-HSAB + T-HSAB0.825
  • Settings: BERT used batch 8, sequence length 128 and 3 epochs. BERT+BiLSTM used batch 16, length 128 and 6 epochs. The model used was BERT base multilingual cased (12 layers, 12 heads, 110M parameters).

Interesting ideas

  • I1. A lexicon of insult words flagged a sentence that explicitly denied the insult, roughly "he was good, not a thief or traitor as they claimed." Surface trigger words break under negation and reported speech.
  • I2. Accuracy hid a collapse: the baseline scored around 0.81 accuracy but only about 0.33 macro F1 on imbalanced classes. Reporting both metrics exposed a model that barely detects the minority class.
  • I3. Out-of-domain dialect corpora were added one at a time, with a score recorded after each addition. This makes each source's contribution visible instead of just pooling everything.
  • I4. Extra corpora were justified partly by their reported inter-annotator agreement. Agreement served as a quality gate for borrowed labels.
  • I5. Pretrained BERT embeddings feeding a light BiLSTM head beat plain BERT fine-tuning here. A cheap sequential head on top of rich representations can be a strong combination.

For Mova

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

  • I1 (frames): prag should check whether an evaluative predicate falls under negation or is attributed to another speaker before assigning it to the speaker. Such denial sentences make a ready-made test set.
  • I2 (learn): every evaluation should report per-class or macro scores next to overall accuracy. A majority-class predictor should serve as a negative control, so that rare labels or relations cannot be silently ignored.
  • I3 (tree): when mixing treebanks or converted UD dialects for gparse or the perceptron parser, add them incrementally and keep an ablation table. That shows which sources actually help.
  • I4 (learn): silver data could likewise be admitted or weighted by how many witness parsers agree, with low-agreement items held back.
  • I5 (tree): gparse could compare a small recurrent or biaffine head over frozen transformer features against full fine-tuning, to trade cost against accuracy.

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

Cite

Cite as Abir Messaoudi, Hatem Haddad and Moez Ben Haj Hmida. 2020. iCompass at SemEval-2020 Task 12: From a Syntax-ignorant N-gram Embeddings Model to a Deep Bidirectional Language Model. Proceedings of the Fourteenth Workshop on Semantic Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.semeval-1.260

@inproceedings{messaoudi2020icompass,
  title = {{iCompass at SemEval-2020 Task 12: From a Syntax-ignorant N-gram Embeddings Model to a Deep Bidirectional Language Model}},
  author = {Abir Messaoudi, Hatem Haddad and Moez Ben Haj Hmida},
  booktitle = {Proceedings of the Fourteenth Workshop on Semantic Evaluation},
  year = {2020},
  doi = {10.18653/v1/2020.semeval-1.260},
  url = {https://doi.org/10.18653/v1/2020.semeval-1.260}
}

References

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

  1. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June.
  2. Hatem Haddad, Hala Mulki, and Asma Oueslati. 2019. T-HSAB: A tunisian hate speech and abusive dataset. In Kamel Smaı̈li, editor, Arabic Language Processing: From Theory to Practice - 7th International Conference, ICALP 2019, Nancy, France, October 16-17, 2019, Proceedings, volume 1108 of Communications in Computer and Information Science, pages 251–263. Springer. find
  3. Hamdy Mubarak, Ammar Rashed, Kareem Darwish, Younes Samih, and Ahmed Abdelali. 2020. Arabic offensive language on twitter: Analysis and experiments. arXiv preprint arXiv:2004.02192. Team ALAMI Hamza alt Galileo iCompass Rank 1 2 3 14 macro F1-score 0,9017 0,9015 0,8988 0,8519 *Table 8: Ranking and results on SemEval Test set.* Hala Mulki, Hatem Haddad, Mourad Gridach, and Ismail Babaoğlu. 2017. Tw-star at semeval-2017 task 4: Sentiment classification of arabic tweets. In Proceedings of the 11th International Workshop on Semantic Evaluation, pages 664–669, Vancouver, Canada, August. ↗
  4. Hala Mulki, Chedi Bechikh Ali, Hatem Haddad, and Ismail Babaoğlu. 2018. Tw-StAR at SemEval-2018 task 1: Preprocessing impact on multi-label emotion classification. In Proceedings of The 12th International Workshop on Semantic Evaluation, pages 167–171, New Orleans, Louisiana, June. ↗
  5. Hala Mulki, Hatem Haddad, Chedi Bechikh Ali, and Halima Alshabani. 2019a. L-HSAB: A Levantine twitter dataset for hate speech and abusive language. In Proceedings of the Third Workshop on Abusive Language Online, pages 111–118, Florence, Italy, August. Association for Computational Linguistics.
  6. Hala Mulki, Hatem Haddad, Mourad Gridach, and Ismail Babaoğlu. 2019b. Syntax-ignorant n-gram embeddings for sentiment analysis of Arabic dialects. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 30–39, Florence, Italy, August.
  7. Marcos Zampieri, Preslav Nakov, Sara Rosenthal, Pepa Atanasova, Georgi Karadzhov, Hamdy Mubarak, Leon Derczynski, Zeses Pitenis, and Çağrı Çöltekin. 2020. SemEval-2020 Task 12: Multilingual Offensive Language Identification in Social Media (OffensEval 2020). In Proceedings of SemEval. ↗

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/messaoudi-2020-icompass-semeval-2020-task-12/