TL;DR
The paper introduces a high-quality, manually verified instruction-following dataset of 10,600 samples for the Kazakh language, specifically targeting localized government procedures and cultural heritage. By leveraging GPT-4o for initial data generation followed by rigorous expert human post-editing, the authors demonstrate that fine-tuning open-weight LLMs significantly boosts their performance on region-specific factual and generative tasks.
What Problem Does This Paper Address?
Large Language Models (LLMs) excel at processing high-resource languages like English, but their performance degrades sharply when applied to low-resource languages. For Kazakh—a language spoken by roughly 20 million people—multilingual LLMs frequently generate generic, inaccurate, or culturally biased responses.
Prior attempts to bridge this gap relied heavily on translating English instruction datasets (like Alpaca) into the target language. However, direct translation fails to capture region-specific socio-political structures, legal frameworks, and cultural nuances. For example, an LLM asked about how to obtain a passport in Kazakhstan might default to generic Western procedures if it lacks localized training data. Building these datasets manually from scratch is prohibitively expensive, creating a critical bottleneck for localized AI deployment.
Methods
To address this data scarcity, the authors developed a hybrid pipeline combining LLM-assisted data generation with comprehensive human validation.
- Source Text Collection: The authors gathered high-quality, unlabeled text directly from the official Kazakhstan e-Government portal (
gov.kz) and cultural pages of Kazakh Wikipedia. - LLM-Assisted Generation: They utilized a single-prompt method instructing an LLM to extract facts from the source texts and formulate corresponding instruction-response pairs in Kazakh. They benchmarked four models (LLaMA 3.1-70B, Gemini 1.5, Claude 3.5 Sonnet, and GPT-4o) and selected GPT-4o as the generation backbone due to its superior fluency and correctness.
- Manual Post-Editing: A team of 12 native Kazakh expert annotators reviewed every single generated pair. They corrected structural, grammatical, and lexical errors, ensuring the text felt natural to a native speaker.
- Fine-Tuning: Using the verified dataset, the authors performed full fine-tuning on three open-weight models: Gemma-2-9b-instruct, Qwen-2.5-7b-instruct, and Falcon-3-10b-instruct.
Datasets
The project introduces two primary datasets, collectively totaling 10,600 high-quality instruction-following pairs:
- GovSet (6,200 pairs): Derived from government data, covering topics like legal assistance, healthcare systems, real estate laws, and public education.
- CultSet (4,400 pairs): Derived from Wikipedia, focusing on Kazakh literature, traditions, historical figures, and media.
For evaluation, the authors used three independent, crowd-sourced multiple-choice benchmarks from the Kazakh NLP community: Dastur-MC (traditions), Kazakh Constitution-MC (legal frameworks), and Kazakh Unified National (human rights and society).
Key Insights and Ideas
- The "Translation Trap": The authors found that generating instructions directly from local, native-language text significantly outperforms translation-based approaches (like the MURI framework). Multi-step translations (e.g., Kazakh $\rightarrow$ English $\rightarrow$ Instruction $\rightarrow$ Kazakh) introduce cumulative inaccuracies.
- Lexical Contamination: Human annotators noted a unique quirk: GPT-4o occasionally replaced Kazakh words with Russian equivalents, even when the correct Kazakh term was present in the source text. This highlights how bilingual web corpora can inadvertently pollute low-resource language generation in commercial LLMs.
- Synergy of General and Domain-Specific Data: The best performance gains were achieved by combining the new localized dataset with a translated general chat dataset (Kazakh Alpaca). This suggests that domain-specific knowledge is most effective when built upon a robust foundation of general conversational capabilities.
Key Results
Fine-tuning on the new dataset yielded substantial, consistent improvements across both multiple-choice and generative tasks:
- Multiple-Choice Accuracy: On the legal-focused Constitution benchmark, Qwen's zero-shot accuracy jumped from 0.520 (Vanilla) to 0.680 when fine-tuned on the combined Alpaca and Kazakh dataset.
- Generative Quality: Automatic metrics showed massive gains. On CultSet, Gemma's ROUGE-L score surged from 15.76 to 24.87 post-fine-tuning.
- Human and LLM Preference: In a 1-to-1 preference evaluation using GPT-4o as a judge, the fine-tuned models soundly defeated their vanilla counterparts, achieving win rates as high as 86.0% (for Gemma on CultSet).
Limitations and Future Work
While highly successful, the authors noted several limitations:
- Cultural Omissions: Sensitive topics, particularly those involving religious matters, were intentionally left out to maintain neutrality and avoid controversy.
- Dialectal Bias: The dataset focuses exclusively on standard Kazakh, meaning regional vocabulary variations and dialects are not represented.
- Data Drift: Government regulations and administrative procedures naturally change over time. To combat this, the authors plan to update the GovSet repository annually.
Future work will focus on automating the pipeline further, expanding the methodology to other low-resource languages, and developing larger, culturally aligned open-source models.
Summary updated