English

Hakim: Farsi Text Embedding Model

Computation and Language 2025-10-10 v3 Artificial Intelligence Machine Learning

Abstract

Recent advancements in text embedding have significantly improved natural language understanding across many languages, yet Persian remains notably underrepresented in large-scale embedding research. In this paper, we present Hakim, a novel state-of-the-art Persian text embedding model that achieves a 8.5% performance improvement over existing approaches on the FaMTEB benchmark, outperforming all previously developed Persian language models. As part of this work, we introduce three new datasets - Corpesia, Pairsia-sup, and Pairsia-unsup - to support supervised and unsupervised training scenarios. Additionally, Hakim is designed for applications in chatbots and retrieval-augmented generation (RAG) systems, particularly addressing retrieval tasks that require incorporating message history within these systems. We also propose a new baseline model built on the BERT architecture. Our language model consistently achieves higher accuracy across various Persian NLP tasks, while the RetroMAE-based model proves particularly effective for textual information retrieval applications. Together, these contributions establish a new foundation for advancing Persian language understanding.

Keywords

Cite

@article{arxiv.2505.08435,
  title  = {Hakim: Farsi Text Embedding Model},
  author = {Mehran Sarmadi and Morteza Alikhani and Erfan Zinvandi and Zahra Pourbahman},
  journal= {arXiv preprint arXiv:2505.08435},
  year   = {2025}
}
R2 v1 2026-06-28T23:31:10.620Z