UrduLM: A Resource-Efficient Monolingual Urdu Language Model
Syed Muhammad Ali, Hammad Sajid, Zainab Haider, Ali Muhammad Asad, Haya Fatima, Abdul Samad
TL;DR
UrduLM tackles the lack of Urdu monolingual LLMs by building a 100M-parameter decoder-only model trained on a curated 33GB Urdu corpus. It introduces a script-aware 32k BPE tokenizer that reduces tokenization overhead and demonstrates competitive few-shot and LLM-as-a-Judge performance versus much larger multilingual models, achieving 66.6% sentiment accuracy and 30.59 BLEU on grammar correction. The work provides a complete, openly released pipeline (data, tokenizer, model weights, benchmarks) that serves as a baseline and scalable framework for other low-resource languages. It discusses design trade-offs and establishes generalizable principles for corpus size, tokenizer design, and model scale, arguing for monolingual pretraining when data and resources permit. The results suggest practical impact for efficient, culturally aware NLP in Urdu and similar underrepresented languages.
Abstract
Urdu, spoken by 230 million people worldwide, lacks dedicated transformer-based language models and curated corpora. While multilingual models provide limited Urdu support, they suffer from poor performance, high computational costs, and cultural inaccuracies due to insufficient training data. To address these challenges, we present UrduLM, a pretrained Urdu monolingual language model trained in low-resource settings. We curate a 33GB Urdu corpus from diverse sources, develop a custom BPE tokenizer that reduces tokenization overhead by atleast 20-30% compared to multilingual alternatives, and pretrain a 100M-parameter decoder-only model. In few-shot evaluations, UrduLM achieves competitive performance with multilingual models up to 30x its size, reaching 66.6% accuracy on sentiment classification and BLEU scores exceeding 30 on grammar correction tasks. The complete methodology -- including corpus, tokenizer, model weights, and evaluation benchmarks -- is released openly to establish a baseline for Urdu NLP research and provide a scalable framework for other underrepresented languages.
