MA at AraFinNLP2024: BERT-based Ensemble for Cross-dialectal Arabic Intent Detection
Paper · 2024 · Asmaa Ramadan, Manar Amr, Marwan Torki et al.
Summary
The paper tackles banking intent detection across Arabic dialects for subtask-1 of the AraFinNLP 2024 shared task. ArBanking77, the only Arabic banking intent dataset, covers just MSA and Palestinian, so systems trained on it struggle with other dialects. The authors expanded the training data by machine-translating the MSA queries into further dialects with the distilled 600M NLLB model. They then removed stray diacritics and symbols that the translation introduced. On this enlarged data they fine-tuned six BERT classifiers built on AraBERTv0.2-Twitter and MARBERTv2. Some classifiers combined cross-entropy with an NT-Xent contrastive term. The six models were made deliberately different in backbone, loss, data cleaning and dialect coverage. Their predicted probabilities are averaged with equal weight. The ensemble reached an F1 of about 0.877 and ranked first in the subtask, beating every single member. The work shows that cheap synthetic dialect data and a carefully diversified ensemble can make up for missing dialect resources in a narrow domain.
Key points
- ArBanking77 has 31,404 MSA and Palestinian queries over 77 intents. After augmentation, the training set holds 85,957 samples across eight varieties: MSA, PAL, South and North Levantine, Egyptian, Tunisian, Moroccan and Saudi, with roughly 10.7k samples each. The shared-task test set contains 11,721 queries.
- The ensemble has six members: four AraBERTv0.2-Twitter models (about 136M parameters) and two MARBERTv2 models (about 160M parameters). Each member has a single linear classification head, and outputs are combined by averaging the probabilities.
- The loss is cross-entropy plus α·NT-Xent, with α set to 10. A custom batch sampler limits how many distinct classes appear in each batch, so every sample has both positives and negatives.
- Ensemble test F1 is 0.8773 in the results table; the abstract reports 0.8771. The best single model is m3 (AraBERT, preprocessed data, contrastive loss) at 0.8578. The worst is m4, trained only on MSA and PAL, at 0.7913.
- Preprocessing helped, raising F1 from 0.8434 (m2) to 0.8547 (m1). With identical settings, AraBERTv0.2-Twitter outperformed MARBERTv2, 0.8434 (m2) against 0.8198 (m5).
Interesting ideas
- I1. Use an MT model to turn labelled standard-language examples into dialect copies that keep their labels, giving cheap coverage of unseen varieties despite translation noise.
- I2. Build ensemble diversity on purpose by varying the backbone, the loss, cleaned versus raw data, and dialect subsets, because members that err differently make averaging more effective.
- I3. Train some models on raw text and others on cleaned text, so the group as a whole tolerates imperfect input.
- I4. Control batch composition so that a contrastive objective always has in-class positives and out-of-class negatives, instead of relying on random batches.
- I5. Keep a control member trained only on the original narrow data (m4) to measure directly what augmentation adds.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): Paraphrasing silver sentences into informal, regional or non-native English could widen training coverage. Labels that survive the rewrite would need to be checked by witness-parser agreement before use.
- I2 (learn): Witness parsers for silver data should be chosen to fail in different ways. Their agreement then carries more evidence than votes from near-identical models.
- I3 (tokens): Training tagger and lemmatizer variants on both normalized and noisy text could make the pipeline robust to typos and odd symbols. A disagreement between the variants would also flag a suspicious token in an explainable way.
- I4 (frames): If frames or VerbNet classes are ever learned with a contrastive objective, a class-limited sampler would ensure rare roles meet real contrasts in every batch.
- I5 (learn): Every augmentation or repair-rule experiment should be compared against a baseline trained without it, which serves as a built-in negative control.
Institutions
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 Asmaa Ramadan, Manar Amr, Marwan Torki and Nagwa El-Makky. 2024. MA at AraFinNLP2024: BERT-based Ensemble for Cross-dialectal Arabic Intent Detection. Proceedings of the Second Arabic Natural Language Processing Conference.
@inproceedings{ramadan2024ma,
title = {{MA at AraFinNLP2024: BERT-based Ensemble for Cross-dialectal Arabic Intent Detection}},
author = {Asmaa Ramadan, Manar Amr, Marwan Torki and Nagwa El-Makky},
booktitle = {Proceedings of the Second Arabic Natural Language Processing Conference},
year = {2024},
doi = {10.18653/v1/2024.arabicnlp-1.41},
url = {https://doi.org/10.18653/v1/2024.arabicnlp-1.41}
}References
- 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. ↗
- Bushra Algotiml, AbdelRahim Elmadany, and Walid Magdy. 2019. Arabic tweet-act: Speech act recognition for Arabic asynchronous conversations. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 183–191, Florence, Italy. Association for Computational Linguistics.
- Wissam Antoun, Fady Baly, and Hazem Hajj. 2021. Arabert: Transformer-based model for arabic language understanding. Preprint, arXiv:2003.00104. ↗
- Sanad Malaysha, Mo El-Haj, Saad Ezzini, Mohammad Khalilia, Mustafa Jarrar, Sultan Nasser, and Ismail Berrada. 2024. AraFinNlp 2024: The first arabic financial nlp shared task. In Proceedings of the 2nd Arabic Natural Language Processing Conference (Arabic-NLP), Part of the ACL 2024. Association for Computational Linguistics. ↗
- Ridha Mezzi, Aymen Yahyaoui, Mohamed Wassim Krir, Wadii Boulila, and Anis Koubaa. 2022. Mental health intent recognition for arabic-speaking patients using the mini international neuropsychiatric interview (mini) and bert model. Sensors, 22(3). ↗
- Anbang Xu, Zhe Liu, Yufan Guo, Vibha Sinha, and Rama Akkiraju. 2017. A new chatbot for customer service on social media. find
- Cecilia Ying and Stephen Thomas. 2022. Label errors in BANKING77. In Proceedings of the Third Workshop on Insights from Negative Results in NLP, pages 139– 143, Dublin, Ireland. Association for Computational Linguistics. ↗
- Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient intent detection with dual sentence encoders. Preprint, arXiv:2003.04807. ↗
- Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. Preprint, arXiv:2002.05709. ↗
- Marta R Costa-jussà, James Cross, Onur Çelebi, Maha Elbayad, Kenneth Heafield, Kevin Heffernan, Elahe Kalbassi, Janice Lam, Daniel Licht, Jean Maillard, et al. 2022. No language left behind: Scaling human-centered machine translation. arXiv preprint arXiv:2207.04672. ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. Preprint, arXiv:1810.04805. ↗
- Thomas G Dietterich. 2000. Ensemble methods in machine learning. In International workshop on multiple classifier systems, pages 1–15. Springer. find
- Mustafa Jarrar, Ahmet Birim, Mohammed Khalilia, Mustafa Erden, and Sana Ghanem. 2023. Arbanking77: Intent detection neural model and a new dataset in modern and dialectical arabic. In Proceedings of ArabicNLP 2023, Singapore (Hybrid), December 7, 2023, pages 276–287. Association for Computational Linguistics.
- Xianzhi Li, Will Aitken, Xiaodan Zhu, and Stephen W. Thomas. 2022. Learning better intent representations for financial open intent classification. In Proceedings of the Fourth Workshop on Financial Technology and Natural Language Processing (FinNLP), pages 68–77, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/ramadan-2024-ma-arafinnlp2024-bert-based-ensemble/