Introduction
Large Language Models (LLMs) such as GPT-4 and Llama 3 have demonstrated remarkable capabilities across numerous languages. However, their performance often degrades significantly when applied to low-resource languages, a phenomenon largely attributed to "Anglocentric bias." For languages like Kazakh, these models frequently struggle with local nuances, administrative procedures, and cultural heritage, often providing generic or factually incorrect responses.
The primary obstacle is the "data desert"—a scarcity of high-quality, instruction-tuned data. Previous attempts to address this for Kazakh relied on machine-translating English datasets like Alpaca. While efficient, these translations often fail to capture the cultural context and linguistic precision required for local governance and traditions. This paper presents a novel approach: developing a high-quality, manually verified instruction-following dataset of 10,600 samples specifically tailored to the Kazakh context by mining local government portals and cultural archives.
Methodology
The researchers implemented a multi-stage pipeline combining LLM-assisted generation with rigorous human validation.
1. Source Extraction
Raw text was gathered from two primary sources: the official Kazakhstan e-Government portal (gov.kz) and Kazakh-specific entries from Wikidata. These sources provided a foundation of factual, domain-specific information regarding legal frameworks, citizen services, and cultural history.
2. Synthetic Generation
To transform raw text into instruction-response pairs, the authors benchmarked several state-of-the-art models, including Llama 3.1-70B, Claude 3.5, Gemini 1.5, and GPT-4o. GPT-4o was ultimately selected as the "teacher" model due to its superior correctness and fluency in Kazakh compared to its peers.
3. Human-in-the-Loop Validation
To establish a "gold-standard" dataset, 12 native Kazakh expert annotators manually reviewed every entry. This stage was critical for correcting structural, grammatical, and lexical errors. Notably, annotators had to correct the model's tendency to substitute Kazakh terms with Russian equivalents—a common artifact of the regional linguistic landscape.
4. Fine-tuning
The resulting dataset was used to fine-tune three popular open-weight models: Gemma-2-9B, Qwen-2.5-7B, and Falcon-3-10B.
Dataset Composition
The final dataset comprises 10,600 samples divided into two specialized subsets:
- GovSet (6,200 samples): Focused on institutional knowledge, including legal frameworks, public administration, and citizen services (e.g., passport renewal procedures).
- CultSet (4,400 samples): Focused on Kazakh traditions, literature, historical practices, and regional media.
Key Insights
Localization vs. Translation
The study demonstrates that data grounded in local reality significantly outperforms translated English instruction sets. Models fine-tuned on this localized data consistently surpassed those trained on "Kazakh Alpaca" (a translated baseline), highlighting the importance of cultural and administrative specificity.
The Challenge of Structural Errors
Manual post-editing revealed that "structural" errors were the most prevalent issue, occurring in approximately 30% of cases. These errors involved responses that were grammatically correct but logically disorganized or phrased in a way that felt unnatural to native speakers. This underscores the necessity of human oversight in low-resource language data preparation.
Teacher Model Selection
The authors found that closed-source models like GPT-4o currently outperform large open-weight models like Llama 3.1-70B in generating high-quality synthetic data for Kazakh. This suggests that for low-resource languages, the most capable models are still required to serve as effective "teachers."
Results
The impact of the new dataset was evaluated using three benchmarks: Dastur MC (traditions), Kazakh Constitution MC (legal), and Human Rights and Society.
- Performance Gains: On the Kazakh Constitution benchmark, the Qwen-2.5-7B model's accuracy improved from 0.52 (vanilla) to 0.68 after fine-tuning.
- Generative Preference: Using GPT-4o as a judge alongside human evaluators, the fine-tuned models achieved win rates between 63% and 80% over their base versions.
- Fine-tuning vs. RAG: Interestingly, fine-tuned models often outperformed vanilla models using Retrieval-Augmented Generation (RAG). This suggests that internalizing domain knowledge through fine-tuning is more effective than external retrieval for languages the model has not fully mastered.
Conclusion and Future Work
This research provides a blueprint for improving LLM performance in low-resource languages by prioritizing localized, high-quality data over simple translation. While the current dataset focuses on standard Kazakh, future work aims to incorporate dialectal diversity and automate more of the pipeline. The authors also note the need for annual updates to account for changes in government procedures and laws, ensuring the models remain factually accurate over time.
Summary updated