Sherkala-Chat: Building a State-of-the-Art LLM for Kazakh in a Moderately Resourced Setting

Fajri Koto, Rituraj Joshi, Nurdaulet Mukhituly, Yuxia Wang, Zhuohan Xie, Rahul Pal, Daniil Orel, Parvez Mullah, Diana Turmakhan, Maiya Goloburda, Mohammed Kamran, Samujjwal Ghosh, Bokang Jia, Jonibek Mansurov, Mukhammed Togmanov, Debopriyo Banerjee, Nurkhan Laiyk, Akhmed Sakip, Xudong Han, Ekaterina Kochmar, Alham Fikri Aji, Aaryamonvikram Singh, Alok Anil Jadhav, Satheesh Katipomu, Samta Kamboj, Monojit Choudhury, Gurpreet Gosal, Gokulakrishnan Ramakrishnan, Biswajit Mishra, Sarath Chandran, Avraham Sheinin, Natalia Vassilieva, Neha Sengupta, Preslav Nakov

TL;DR

This paper introduces Sherkala-Chat (8B), a state-of-the-art, open-weight large language model specifically designed for the Kazakh language. By adapting Llama-3.1 and training on a diverse dataset, Sherkala-Chat (8B) significantly outperforms existing models in Kazakh, while maintaining competitive performance in English and Russian, aiming to bridge the digital divide for Kazakh speakers.

What Problem Does This Paper Address?

The paper addresses the significant underrepresentation of Kazakh and other low-resource languages in the field of Natural Language Processing (NLP) and large language models (LLMs). Despite Kazakh being the state language of Kazakhstan and spoken by a large portion of its population, there's a notable lack of high-quality NLP tools and datasets. This gap limits the ability of Kazakh speakers to fully participate in the AI-driven digital world. Existing multilingual LLMs often underperform in lower-resourced contexts, especially in knowledge-intensive and reasoning tasks relevant to specific regions like Kazakhstan.

Methods

The authors built upon the Llama-3.1-8B model, employing a two-pronged strategy:

  • Continual Pre-training: They continued pre-training the Llama-3.1-8B model on a massive dataset of 45.3 billion tokens, with a significant portion dedicated to Kazakh (19.45 billion tokens), alongside English, Russian, and Turkish. This approach leverages Llama-3.1's cross-lingual transfer capabilities.
  • Custom Tokenizer: To better handle Kazakh, they developed a custom tokenizer that balances Kazakh and English, expanding the vocabulary by 25% to better capture Kazakh-specific words and expressions.
  • Embedding Initialization: A semantic similarity-based method was used to initialize embeddings for new Kazakh tokens, leveraging pre-trained OpenAI embeddings.
  • Instruction Tuning: For fine-tuning, they used a multilingual dataset including translated instruction datasets, a Kazakhstan-specific instruction dataset (semi-automatically constructed and manually verified), and Kazakh-specific safety data. This process was crucial for aligning the model with user intent and ensuring responsible behavior.
  • Safety Alignment: A dedicated safety alignment stage was implemented, focusing on minimizing potential harms and aligning the model with Kazakh cultural and ethical norms.

Datasets

  • Pre-training Data: 45.3 billion tokens comprising:
  • 19.45 billion Kazakh tokens (from Wikipedia, CommonCrawl, CulturaX, and Kazakh news articles, supplemented with synthetic data from English Wikipedia translation).
  • 19.45 billion English tokens (from The Pile and CommonCrawl).
  • 6.4 billion Russian and Turkish tokens (from The Pile and CommonCrawl).
  • Instruction Tuning Data: Approximately 3.5 million Kazakh, 3.8 million English, and 263 thousand Russian prompt-response pairs.
  • Safety Alignment Data: A comprehensive English-language safety prompt collection, translated into Kazakh and Russian, totaling 200K Kazakh and 100K English examples.
  • Evaluation Datasets: A diverse set of benchmarks for downstream tasks, text generation, and safety evaluations, including both translated and native Kazakh/Russian datasets (e.g., MMLU, Hellaswag, KazMMLU, NIS Math, TruthfulQA, CrowS-Pairs, Vicuna-Instructions-80, MT-Instructions-80, and newly constructed Kazakh-specific datasets).

Key Insights and Ideas

  • The Power of Continual Pre-training for Low-Resource Languages: The paper demonstrates that adapting a strong base model like Llama-3.1 through extensive continual pre-training on a low-resource language's data can yield state-of-the-art results, even in moderately resourced settings.
  • Tokenizer Design Matters: A custom tokenizer that balances the needs of multiple languages, especially a low-resource one like Kazakh, is crucial for effective model adaptation and improved efficiency.
  • Multilingualism vs. Specialization: While multilingual models offer broad coverage, specialized fine-tuning and data curation are essential to achieve superior performance in a specific low-resource language, as shown by Sherkala-Chat (8B)'s outperformance of even some Kazakh-specific models.
  • Safety is Paramount for Responsible AI: The paper emphasizes the importance of dedicated safety alignment, especially for culturally specific contexts, to ensure models are not only capable but also responsible and ethical.

Key Results

  • Kazakh Performance: Sherkala-Chat (8B) achieved an average score of 47.6 on Kazakh benchmarks, significantly outperforming general-purpose multilingual baselines and even specialized Kazakh models like KazLLM-1.0 (43.7) and Irbis-v0.1 (7B).
  • English and Russian Performance: The model remained competitive in English (average score of 59.1) and showed improved Russian capabilities after fine-tuning, narrowing the performance gap with top multilingual models.
  • Safety: Sherkala-Chat (8B) demonstrated improved safety over Llama-3.1-KazLLM-1.0-8B across Kazakh, Russian, and English, ranking highly in safety evaluations.
  • Text Generation: Sherkala-Chat (8B) consistently outperformed baseline models in generating Kazakh text, though it still fell behind GPT-40.

Limitations and Future Work

  • English and Russian Performance: While competitive, Sherkala-Chat (8B)'s performance in English and Russian, particularly in text generation, could be further improved.
  • Generalization: The model is primarily optimized for Kazakh and English and should not be assumed to have equal proficiency in other languages or dialects.
  • Potential for Misuse: Like all LLMs, Sherkala-Chat (8B) has the potential for misuse, including generating harmful content or spreading misinformation.
  • Future Work: The authors suggest further research to balance multilingual coverage with strong performance in underrepresented languages and to develop more robust benchmarks for knowledge and reasoning in Kazakh. They also emphasize the importance of continued efforts to minimize biases and ensure responsible AI development.

Summary updated

BibTeX
@inproceedings{koto2025sherkala,
  author = {Fajri Koto and Rituraj Joshi and Nurdaulet Mukhituly and Yuxia Wang and Zhuohan Xie and Rahul Pal and Daniil Orel and Parvez Mullah and Diana Turmakhan and Maiya Goloburda and Mohammed Kamran and Samujjwal Ghosh and Bokang Jia and Jonibek Mansurov and Mukhammed Togmanov and Debopriyo Banerjee and Nurkhan Laiyk and Akhmed Sakip and Xudong Han and Ekaterina Kochmar and Alham Fikri Aji and Aaryamonvikram Singh and Alok Anil Jadhav and Satheesh Katipomu and Samta Kamboj and Monojit Choudhury and Gurpreet Gosal and Gokulakrishnan Ramakrishnan and Biswajit Mishra and Sarath Chandran and Avraham Sheinin and Natalia Vassilieva and Neha Sengupta and Preslav Nakov},
  title = {{Sherkala-Chat: Building a State-of-the-Art LLM for Kazakh in a Moderately Resourced Setting}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=wRcTCcb0H5},
}
Figure