A study found that one approach often performed best, but struggled with dialect-heavy sentiment analysis.
Researchers compared four ways of splitting Arabic text and tested them on news classification, hate-speech detection, sentiment analysis and natural-language inference. They also examined several vocabulary sizes while keeping model size unchanged.
Byte Pair Encoding combined with Farasa, a tool for separating parts of Arabic words, performed better than the other tested approaches in several tasks. Its performance was less reliable on dialect-heavy sentiment data, where word segmentation and limited dialect material in training created problems.
How the text splitting performed
The study examined four tokenization approaches across four language tasks and developed a pipeline producing 12 models. Byte Pair Encoding with Farasa performed better than the other tested strategies in news classification, hate-speech detection and sentiment analysis. The researchers linked this result to Farasa's use of morphological information—the parts of words that carry meaning in Arabic.
The same approach faced difficulties in sentiment analysis when datasets contained many dialect examples, particularly Egyptian Arabic. The researchers gave the example of an Egyptian expression meaning “he did not speak it” that Farasa did not segment correctly, leaving it as an out-of-vocabulary case. They also found that Byte Pair Encoding with Farasa had stable training behavior.
Across vocabulary sizes of 16,000, 28,000 and 44,000, vocabulary size had limited effects on performance when model size was held constant. The study argues that vocabulary size should therefore be considered together with model size and the domain and dialects represented in the data.
Why Arabic dialects matter
The findings show that a language model's results can depend on how Arabic text is divided before training and testing. A strategy that works well for formal Arabic or some classification tasks may be less effective for dialect-rich data, particularly when the word-splitting tool does not recognize dialect forms.
For Arabic language systems, the results point to the importance of training data that includes both formal Arabic and dialects. They also support further work on tokenization methods that handle dialect variation and unfamiliar words more reliably, while taking possible dialect-related bias in tasks such as sentiment analysis into account.
Evidence and caveats
This was an experimental comparison of four tokenizers and multiple vocabulary sizes using models trained and fine-tuned on downstream tasks. The evidence supports the reported performance differences within the study's tested settings, including the stronger results for Byte Pair Encoding with Farasa in several tasks and the limited effect of vocabulary size when model size was unchanged.
The excerpts do not provide the datasets' sample sizes or detailed numerical performance results. The researchers identified problems with out-of-vocabulary words, Egyptian-dialect segmentation and limited dialect text in training. They also said it remains unclear whether using separate tokenizers for different Arabic dialects would work better than replacing Farasa with a more dialect-independent tool, so the findings do not establish the best approach across all Arabic varieties or domains.
// Source
ACM Transactions on Asian and Low-Resource Language Information Processing · 2026 · DOI: 10.1145/3857908
Authors: Mohamed Taher Alrefaie, Nour Eldin Morsy, Nada Samir
Institutions: University of Bonn, Arab Academy for Science, Technology, and Maritime Transport