SENIT at AraFinNLP2024: trust your model or combine two
Paper · 2024 · Abdelmomen Nasr and Moez Ben HajHmida
Summary
The paper describes the SENIT team's entry to Subtask 1 of the AraFinNLP 2024 shared task, which is multi-dialect intent detection for banking queries. The training data comes from ArBanking77, a translation of the English Banking77 into MSA and Palestinian Arabic, with 77 intent labels. The test set, however, also covers dialects that never appear in training. The authors fine-tuned several BERT-style encoders: CAMeLBERT, MARBERTv1 and MARBERTv2. They also built a two-encoder model that joins the [CLS] vectors of CAMeLBERT and a MARBERT variant and passes the result through a single linear classifier. Each model was trained for 3, 5 and 7 epochs with batch size 16. The best single model, MARBERTv2 at 5 epochs, also beat the fused model, so it became the final submission and placed sixth on the leaderboard. The main lesson is that simply stacking two encoders does not guarantee a gain. The authors suggest that attention-based weighting or a meta-model would be needed to get benefit from the combination.
Key points
- The Subtask 1 data has 24,018 labelled sentences: 21,554 for training and 2,464 for validation. The split between MSA and Palestinian is roughly even, and there are 77 intent classes.
- MARBERTv2 at 5 epochs scored the best results, with dev F1 0.8417 and test F1 0.8204. CAMeLBERT reached at most 0.8346 dev and 0.7744 test.
- The fused CAMeLBERT+MARBERT models came in lower, at 0.8106 and 0.8134 dev F1 and about 0.804–0.805 test F1.
- SENIT ranked 6th of 11 teams with micro-F1 0.82041, just behind fifth place (0.82083). The winning team scored 0.87731.
- In every model family, 5 epochs worked best, and training ran on a Kaggle Tesla P100.
Interesting ideas
- I1. When two encoders are fused by concatenating their [CLS] outputs into a flat linear layer, the result can be worse than the stronger encoder used alone, which shows that naive combination is a risky default.
- I2. The authors propose a learned gate, either attention over the combined representations or a separate meta-model on top of frozen feature extractors, that decides how much to trust each source.
- I3. The task trains on two language varieties and then tests on dialects that were never seen, which makes it an honest check of robustness to distribution shift.
- I4. A short sweep over epoch counts (3/5/7) showed one consistent sweet spot, but the gap between dev and test scores was still noticeable.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): When merging the verdicts of several witness parsers into silver data, always compare the merged result against the best single witness, and weight each witness rather than treating them all as equal.
- I2 (tree): gparse could use a small learned arbiter that chooses between the perceptron parser and the transformer parser for each arc, instead of using a fixed voting rule.
- I3 (tree): Keep a held-out treebank in a different dialect or genre after UD dialect conversion, so that parser accuracy is not measured only on in-distribution data.
- I4 (learn): Report test results next to dev results for every training setting, so that tuning to the dev set shows up as a measurable gap rather than being hidden.
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 Abdelmomen Nasr and Moez Ben HajHmida. 2024. SENIT at AraFinNLP2024: trust your model or combine two. Proceedings of the Second Arabic Natural Language Processing Conference.
@inproceedings{nasr2024senit,
title = {{SENIT at AraFinNLP2024: trust your model or combine two}},
author = {Abdelmomen Nasr and Moez Ben HajHmida},
booktitle = {Proceedings of the Second Arabic Natural Language Processing Conference},
year = {2024},
doi = {10.18653/v1/2024.arabicnlp-1.39},
url = {https://doi.org/10.18653/v1/2024.arabicnlp-1.39}
}References
- 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.
- Kenton Lee Jacob Devlin, Ming-Wei Chang and Kristina Toutanova. 2019. In 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),, page 4171–4186. 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.
- Mustafa Jarrar, Nizar Habash, Faeq Alrimawi, Diyam Akra, and Nasser Zalmout. 2017. Curras: an annotated corpus for the palestinian arabic dialect. Lang. Resour. Evaluation, 51(3):745–775. ↗
- Dongfu Jiang, Xiang Ren, and Bill Yuchen Lin. 2023. LLM-blender: Ensembling large language models with pairwise ranking and generative fusion. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14165–14178, Toronto, Canada. Association for Computational Linguistics.
- 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. ↗
- AbdelRahim Elmadany Muhammad Abdul-Mageed and El Moatez Billah Nagoudi. 2021. Arbert marbert: Deep bidirectional transformers for arabic. Computing Research Repository, arXiv:2101.01785. ↗
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/nasr-2024-senit-arafinnlp2024-trust-your-model/