AI & Computingarticle2026-11-24

Exploring Tokenization Strategies and Vocabulary Sizes for Enhanced Arabic Language Models

Open access18 citations

Abstract

This paper presents a comprehensive examination of the impact of tokenization strategies and vocabulary sizes on the performance of Arabic language models in downstream natural language processing tasks. Our investigation focused on the effectiveness of four tokenizers across various tasks, including News Classification, Hate Speech Detection, Sentiment Analysis, and Natural Language Inference. Leveraging a diverse set of vocabulary sizes, we scrutinize the intricate interplay between tokenization approaches and model performance. The results reveal that Byte Pair Encoding (BPE) with Farasa outperforms other strategies in multiple tasks, underscoring the significance of morphological analysis in capturing the Arabic's complex nature. However, challenges arise in sentiment analysis, where dialect-specific segmentation issues impact model's efficiency. Computational efficiency analysis demonstrates the stability of BPE with Farasa, suggesting its practical viability. Contrary to conventional assumptions, our study uncovers limited impacts of vocabulary size on model performance while keeping the model size unchanged. This challenges the common understanding among the relationship between vocabulary, model size, and downstream tasks; emphasizing the need for the study of models’ size and their corresponding vocabulary size to generalize across domains and mitigate biases, particularly in dialect-based datasets. Our findings suggest the need for a tokenization strategies to address dialect challenges, enhancing model robustness across diverse linguistic contexts, and expanding datasets to encompass the rich dialect-based Arabic.

// Source

View paper (DOI)Open access versionOpenAlexACM Transactions on Asian and Low-Resource Language Information ProcessingPublished 2026-11-24

Authors: Mohamed Taher Alrefaie, Nour Eldin Morsy, Nada Samir

Institutions: University of Bonn, Arab Academy for Science, Technology, and Maritime Transport