Elamur Research⌕
☰
home / papers / 2025 / Dialect-Aware Sentiment Analysis for Ahasis Challenge

Dialect-Aware Sentiment Analysis for Ahasis Challenge

Paper · 2025 · Hasna Chouikhi and Manel Aloui

Summary

The paper tackles three-way sentiment classification (positive, negative, neutral) of Arabic hospitality reviews written in two very different dialects, Saudi and Moroccan Darija, for the AHaSIS shared task. Instead of building a separate model per dialect, the authors train one model and give it the dialect label as an extra input. They fine-tune Qarib, a BERT-style Arabic model. A learned 64-dimensional dialect vector is joined to the 768-dimensional sentence representation, and the result feeds a small residual classifier with GELU and layer normalization. Before encoding, text goes through general Arabic orthographic normalization plus hand-written mappings for each dialect, which unify common intensifiers and negators. Focal loss and class weighting handle the uneven class sizes. On the test set the system reaches 0.770 macro F1. The same model without dialect features scores 0.72, MARBERT 0.70 and ARBERT 0.67. This suggests that telling a shared model which language variety it is reading is a cheap and effective way to handle variation with very little data.

Key points

  • Data: 860 training samples (430 per dialect) and 216 test samples (108 per dialect). The training labels are 336 negative, 308 positive and 216 neutral.
  • Setup: ahmedabdelali/bert-base-qarib with max length 128 and LR 2e-6, using linear warmup over 15% of steps. Batch size is 16, made effectively 64 by accumulating gradients over 4 steps. Training runs 10 epochs with early-stopping patience 3, dropout 0.2 and focal loss with gamma 2.0. Lower layers get smaller learning rates than the task layers.
  • Overall test results: macro F1 0.770 and balanced accuracy 0.775. Adding dialect features gives a 5-point absolute gain over the plain model.
  • Results by dialect: Saudi scores 0.787 F1 and Darija 0.752. The authors attribute the gap to Darija's mixing with Berber, French and Spanish.
  • Results by class: the neutral class is weakest (F1 0.734). It has the lowest precision (0.678) but the highest recall (0.800), so ambiguous items tend to be pushed into neutral.
  • Error analysis: the main failure sources were
    • sarcasm, especially in Darija;
    • sentiment that depends on cultural context;
    • wrongly identified dialect;
    • doubtful neutral labels that actually carry implicit polarity.

Interesting ideas

  • I1. Feed the language variety to one shared model as a small learned vector instead of training a separate model per variety, so common patterns are shared while variety-specific behaviour can still be learned.
  • I2. Normalize variant spellings of a few high-value function words (intensifiers, negators) to one canonical form, while deliberately keeping the words that signal sentiment rather than stripping them.
  • I3. Judge a feature by removing it from an otherwise identical model, then break the scores down by variety and by class instead of reporting a single number.
  • I4. A neutral or default class with high recall but low precision acts as a sink for uncertain inputs, and this asymmetry is a useful diagnostic.
  • I5. Sort errors into named causes (sarcasm, missing world context, wrong variety detection, label noise) instead of treating them as one mass.

For Mova

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

  • I1 (tree): gparse could take a treebank/register embedding (e.g. EWT vs GUM vs web text, or a source-dialect tag in UD dialect conversion) so a single parser learns both shared and variety-specific attachment preferences.
  • I2 (tokens): the en crate could map informal variants ("sooo", "nope", "gonna") to canonical lemmas while keeping a feature recording the original marker, so later intensity or negation logic still sees it.
  • I3 (learn): every new feature in training could be checked with a same-model-without-it control plus per-genre and per-class tables, so a gain cannot hide a regression in one slice.
  • I4 (frames): the speech-act and irony detectors in prag could watch whether the "literal/neutral" reading silently absorbs hard cases, and send those to explicit uncertainty instead.
  • I5 (answer): failed school-test or fable-QA items could be tagged with a cause from a similar fixed taxonomy, pointing each failure to the stage (frames, world, or data) that needs repair.

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

Also on the byline: Université Tunis Carthage.

 Fields, topics and concepts

Cite

Cite as Hasna Chouikhi and Manel Aloui. 2025. Dialect-Aware Sentiment Analysis for Ahasis Challenge. Proceedings of the Shared Task on Sentiment Analysis for Arabic Dialects.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{chouikhi2025dialect,
  title = {{Dialect-Aware Sentiment Analysis for Ahasis Challenge}},
  author = {Hasna Chouikhi and Manel Aloui},
  booktitle = {Proceedings of the Shared Task on Sentiment Analysis for Arabic Dialects},
  year = {2025},
  doi = {10.26615/978-954-452-109-7-007},
  url = {https://doi.org/10.26615/978-954-452-109-7-007}
}

References

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

  1. Ahmed Abdelali, Sabit Hassan, Hamdy Mubarak, Kareem Darwish, and Younes Samih. 2021. Pre-training bert on arabic tweets: Practical considerations. ↗
  2. 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.
  3. 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. ↗
  4. Oumaima Oueslati, Erik Cambria, Moez Ben HajHmida, and Habib Ounelli. 2020. A review of sentiment analysis research in arabic language. Future Generation Computer Systems, 112:408–430.
  5. Muhammad Abdul-Mageed, Sandra Kuebler, and Mona Diab. 2012. SAMAR: A system for subjectivity and sentiment analysis of Arabic social media. In Proceedings of the 3rd Workshop in Computational Approaches to Subjectivity and Sentiment Analysis, pages 19–28, Jeju, Korea. Association for Computational Linguistics.
  6. Nora Al-Twairesh, Hend Al-Khalifa, AbdulMalik Al-Salman, and Yousef Al-Ohali. 2017. Arasenti-tweet: A corpus for arabic sentiment analysis of saudi tweets. Procedia Computer Science, 117:63–72. Arabic Computational Linguistics. find
  7. Maram Alharbi, Salmane Chafik, Saad Ezzini, Ruslan Mitkov, Tharindu Ranasinghe, and Hansi Hettiarachchi. 2025a. Ahasis: Shared task on sentiment analysis for arabic dialects. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing (RANLP).
  8. Maram Alharbi, Saad Ezzini, Hansi Hettiarachchi, Tharindu Ranasinghe, and Ruslan Mitkov. 2025b. Evaluating large language models on arabic dialect sentiment analysis. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing (RANLP). find
  9. Wissam Antoun, Fady Baly, and Hazem Hajj. 2020. AraBERT: transformer-based model for Arabic language understanding. In Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language ↗

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/chouikhi-2025-dialect-aware-sentiment-analysis-ahasis/