PersianMind: A Cross-Lingual Persian-English Large Language Model
Pedram Rostami, Ali Salemi, Mohammad Javad Dousti
TL;DR
PersianMind addresses the deficiency of open-source Persian–English LLMs by building a bilingual model on LLaMa2-7B-chat, enhanced with a 10k Persian subword tokenizer and expanded embeddings. It uses LoRA-based parameter-efficient fine-tuning combined with three training phases to minimize catastrophic forgetting of English while acquiring robust Persian capabilities. The model achieves competitive results on Persian reading comprehension and multiple-choice QA, performs competitively in translation with limited parallel data, and delivers strong cross-lingual sentence embeddings, surpassing several baseline models. This work demonstrates a practical, cost-aware approach to bilingual LLM development with meaningful cross-lingual benefits and a measurable carbon footprint.
Abstract
Large language models demonstrate remarkable proficiency in various linguistic tasks and have extensive knowledge across various domains. Although they perform best in English, their ability in other languages is notable too. In contrast, open-source models, such as LLaMa, are primarily trained on English datasets, resulting in poor performance in non-English languages. In this paper, we introduce PersianMind, an open-source bilingual large language model which demonstrates comparable performance to closed-source GPT-3.5-turbo in the Persian language. By expanding LLaMa2's vocabulary with 10,000 Persian tokens and training it on a dataset comprising nearly 2 billion Persian tokens, we show that our approach preserves the model's English knowledge and employs transfer learning to excel at transferring task knowledge from one language to another.
