ACM Transactions on Asian and Low-Resource Language Information Processing

Exploring Tokenization Strategies and Vocabulary Sizes for Enhanced Arabic Language Models

Mohamed Alrefaie, Nour Eldin Morsy, Nada Saad El-Din

Key points

From the paper's conclusion
  • 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.

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.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Exploring Tokenization Strategies and Vocabulary Sizes for Enhanced Arabic Language Models — Science Skim