Abstract
Llama-3.1-Sherkala-8B-Chat, or Sherkala-Chat (8B), is a state-of-the-art instruction-tuned open generative large language model (LLM) designed for Kazakh. Adapted from the LLaMA-3.1-8B model, Sherkala-Chat (8B) is trained on 45.3B tokens across Kazakh, English, Russian, and Turkish. It demonstrates strong knowledge and reasoning abilities in Kazakh, significantly outperforming existing open Kazakh and multilingual models of similar scale while achieving competitive performance in English. To ensure effective and responsible alignment, the researchers leveraged translated instruction datasets, a native Kazakhstan-specific instruction dataset, and Kazakh-specific safety data. Sherkala-Chat (8B) is released as an open-weight model to support research and real-world applications for Kazakh speakers.
TL;DR
Sherkala-Chat (8B) is a new state-of-the-art, open-weight large language model specifically optimized for the Kazakh language. By adapting Llama-3.1-8B through custom tokenization and a curated 45.3-billion-token multilingual corpus, the model significantly outperforms existing Kazakh-centric and multilingual models while remaining competitive in English and Russian.
Addressing the Representation Gap
Despite being spoken by approximately 80% of Kazakhstan’s 20 million people, the Kazakh language remains "moderately resourced" and significantly underrepresented in NLP research. Most global LLMs are English-centric; when they do support Kazakh, they often struggle with local cultural nuances, specific reasoning tasks, and linguistic efficiency. The authors identify a "representation gap" where even powerful multilingual models underperform in knowledge-intensive tasks relevant to Kazakhstan. The challenge lies in building a high-performing model when high-quality native data is limited compared to "high-resource" languages like English.
Methodology: Adaptation and Efficiency
The development of Sherkala-Chat (8B) involved a two-pronged strategy of model adaptation and data curation:
- Continual Pre-training: The team started with the Llama-3.1-8B base and continued training it on 45.3 billion tokens.
- Vocabulary Expansion: Standard tokenizers are often inefficient for Kazakh, requiring many subwords to represent a single word. The authors expanded the Llama-3.1 vocabulary by 25%, adding Kazakh-specific tokens. This reduced the "fertility score" (tokens per word) for Kazakh by over 56%, effectively doubling the model's processing efficiency.
- Smart Initialization: To help the model understand these new tokens, they used the WECHSEL method, initializing new embeddings by taking a weighted average of the most semantically similar existing English tokens.
- Instruction & Safety Tuning: The model underwent Supervised Fine-Tuning (SFT) using a mix of translated and native Kazakh instructions, followed by a dedicated safety alignment stage to ensure respect for local ethical and cultural norms.
Data Strategy and Curation
The researchers utilized a diverse data mix for different stages:
- Pre-training: A mix of Wikipedia, CommonCrawl, news articles, and synthetic data (English Wikipedia translated into Kazakh). The final ratio was roughly 3 parts Kazakh/Turkic/Russian to 3 parts English.
- Instruction Tuning: 3.5 million pairs in Kazakh (translated and native), 3.8 million in English, and 263k in Russian. They introduced CultSet and GovSet, native datasets extracted from cultural wikis and government data.
- Safety: A newly constructed Kazakh-specific safety dataset covering 17 harm categories, localized to capture regional sensitivities.
- Evaluation: Benchmarks included KazMMLU (9.8k high-school level questions) and NIS Math, alongside translated versions of standard benchmarks like Hellaswag and ARC.
Key Insights: The "English Anchor"
One of the most significant findings was the "Data Mixture" experiment. While one might assume more Kazakh data is always better, the authors found that a 3:1:3 ratio (Kazakh : Russian+Turkish : English) yielded the best results. Including English alongside Kazakh actually improved Kazakh performance, likely due to cross-lingual transfer of reasoning capabilities—a phenomenon the researchers refer to as the "English Anchor."
Furthermore, by halving the number of tokens needed to represent Kazakh text, the model doesn't just run faster; it can effectively "see" more information within its context window, leading to better coherence in long-form generation.
Performance Evaluation
Sherkala-Chat (8B) establishes a new state-of-the-art (SOTA) for Kazakh language models:
- Kazakh SOTA: It achieved an average score of 47.6 on Kazakh benchmarks, a significant lead over the previous best, Llama-3.1-KazLLM-1.0 (43.7).
- Multilingual Balance: It outperformed all similar-scale multilingual models (like Qwen-2.5 and BLOOM) on Kazakh tasks while maintaining competitive performance in English (scoring 59.1 on English benchmarks).
- Safety: In safety evaluations, Sherkala-Chat (8B) handled sensitive topics more responsibly than other open-weight models, ranking just behind closed-source giants like Claude and GPT-4o.
Limitations and Future Work
While Sherkala-Chat is SOTA for its size, it still trails behind massive models like GPT-4o in complex reasoning. Additionally, while the model is competent in Russian, it does not yet match models specifically optimized for the Russian language. Future work will explore scaling the model further, incorporating more diverse native data, and refining the alignment process to handle even more complex, multi-turn local interactions.
Summary updated