Lossy Orthography and Linguistic Inference: Computational Approaches to Arabic Rasm Restoration
作者: Maged S. Al-shaibani, Irfan Ahmad
摘要
Restoring dots to dotless Arabic text, historically known as rasm, is a foundational yet underexplored problem in Arabic NLP. While Arabic diacritization focuses on recovering omitted vowels, rasm restoration addresses a deeper level of orthographic ambiguity in which consonantal distinctions themselves are absent from the written text. Beyond its linguistic and historical significance, the task has applications in representation learning, tokenization, OCR, manuscript digitization, information retrieval, and content moderation. In this paper, we present a large-scale comparative study of Arabic rasm restoration across statistical, neural, pretrained, and prompt-based paradigms. We evaluate n-gram language models, BiLSTMs and Transformers trained from scratch, pretrained character-level CANINE models, and large language models (LLMs) using few-shot prompting. Our experiments were conducted on a diverse corpus exceeding 431M words spanning social media, news, religious texts, poetry, and academic writing. Results show that Transformer models achieve the best overall performance while remaining computationally efficient. BiLSTMs perform competitively, and classical n-gram models remain surprisingly strong despite their simplicity. In contrast, modern LLMs perform substantially below specialized models, with flagship systems only matching the performance of a 4-gram baseline. These findings position rasm restoration as a challenging benchmark for contextual orthographic inference and a natural extension of Arabic diacritization research.