Matina: A Large-Scale 73B Token Persian Text Corpus
Sara Bourbour Hosseinbeigi, Fatemeh Taherinezhad, Heshaam Faili, Hamed Baghbani, Fatemeh Nadi, Mostafa Amiri
TL;DR
The paper tackles the underrepresentation of Persian in NLP by introducing Matina, a large-scale Persian corpus totaling 72.9B tokens, built from web, books/papers, and social media with a rigorous preprocessing and deduplication pipeline. It demonstrates the corpus’s value by continual pretraining an MLM (XLM-RoBERTa Large) and assessing domain-adaptive pretraining for LLMs (LLaMA 3.2 Instruct 8B) across Persian tasks and domains, yielding measurable improvements. By releasing both the dataset and preprocessing code, the work provides a scalable resource to advance Persian NLP, including downstream tasks like translation, sentiment analysis, and NER, and supports broader multilingual modeling efforts. The study also highlights practical considerations such as data quality, language-specific filtering, and domain relevance, underscoring Matina’s potential to accelerate open-source Persian LLM development.
Abstract
Text corpora are essential for training models used in tasks like summarization, translation, and large language models (LLMs). While various efforts have been made to collect monolingual and multilingual datasets in many languages, Persian has often been underrepresented due to limited resources for data collection and preprocessing. Existing Persian datasets are typically small and lack content diversity, consisting mainly of weblogs and news articles. This shortage of high-quality, varied data has slowed the development of NLP models and open-source LLMs for Persian. Since model performance depends heavily on the quality of training data, we address this gap by introducing the Matina corpus, a new Persian dataset of 72.9B tokens, carefully preprocessed and deduplicated to ensure high data quality. We further assess its effectiveness by training and evaluating transformer-based models on key NLP tasks. Both the dataset and preprocessing codes are publicly available, enabling researchers to build on and improve this resource for future Persian NLP advancements.
