Abstract
Large language models (LLMs) have rapidly evolved as the foundation of various natural language processing (NLP) applications. Despite their wide use cases, their understanding of culturally-related concepts and reasoning remains limited. Meantime, there is a significant need to enhance these models' cultural reasoning capabilities, especially concerning underrepresented regions. This paper introduces a novel pipeline for extracting high-quality, culturally-related instruction tuning datasets from vast unstructured corpora. We utilize a self-instruction generation pipeline to identify cultural concepts and trigger instruction. By integrating with a general-purpose instruction tuning dataset, our model demonstrates enhanced capabilities in recognizing and understanding regional cultural nuances, thereby enhancing its reasoning capabilities. We conduct experiments across three regions: Singapore, the Philippines, and the United States, achieving performance improvement of up to 6%. Our research opens new avenues for extracting cultural instruction tuning sets directly from unstructured data, setting a precedent for future innovations in the field.
Introduction
While Large Language Models (LLMs) like GPT-4 are incredibly versatile, they suffer from a significant "Western bias." Because they are primarily trained on English-language data from North American and European sources, their understanding of regional traditions, social norms, and local history is often shallow or non-existent for underrepresented regions. Expanding cultural knowledge via pre-training is prohibitively expensive, and manual curation of instruction-tuning sets is slow and costly. The CRAFT (Cultural ReAsoning with Fine-Tuning) framework addresses this bottleneck by automatically "mining" cultural wisdom already hidden in the vast, unstructured "wild" of the internet.
Methodology
The CRAFT pipeline transforms raw text into a specialized tuning dataset through a four-stage process:
- Selective Data Extraction: The process begins with the SlimPajama corpus (600B+ tokens). To find "cultural needles in the haystack," the researchers used keyword filtering for specific regions (e.g., terms like "HDB flats" or "Merlion" for Singapore).
- Automated Question Creation: Culturally rich text chunks are processed by an off-the-shelf LLM (Zephyr-7B-Beta) to generate specific questions based on the content.
- Answer Production: ChatGPT-3.5 generates two types of answers: Context-Dependent (factual, derived from the mined text) and Context-Free (creative, based on internal knowledge).
- Hybrid Instruction Tuning: To prevent "catastrophic forgetting" of general abilities, 20,000 new cultural instructions are mixed with 50,000 general-purpose instructions from the OpenHermes-2.5 dataset to fine-tune a Mistral-7B base model.
Experimental Results
The models were evaluated on human-crafted multiple-choice benchmarks for regional knowledge: SG-Eval (Singapore), PH-Eval (Philippines), and US-Eval (USA). General reasoning was monitored via the MMLU benchmark.
Key results include:
- Performance Boost: The CRAFT-tuned Mistral-7B model achieved a 6% improvement on Singapore-related tasks compared to the baseline.
- Competitive Edge: The CRAFT-tuned 7B model outperformed much larger general-purpose models on specific regional benchmarks, reaching 68.3% on SG-Eval and 67.1% on US-Eval.
- Stability: General knowledge (MMLU) scores remained consistent, proving that models can gain cultural expertise without losing generalist capabilities.
Discussion and Key Insights
CRAFT demonstrates that cultural knowledge is often already present in pre-training corpora but remains "latent." Targeted instruction tuning acts as a catalyst to activate this knowledge. The researchers found that context-dependent answers provided a necessary factual "anchor" that significantly improved performance gains.
However, a "documentation gap" was observed: Singaporean concepts were easier to mine and led to higher gains than those from the Philippines, likely due to higher English-language documentation density. This highlights how linguistic representation in training data directly impacts AI fairness and regional performance.
Conclusion
CRAFT provides a scalable path for enhancing the cultural intelligence of LLMs using unstructured data. Future work will focus on expanding this pipeline to multilingual corpora to capture nuances tied to native languages and dialects, as well as addressing the potential for teacher-model bias in generated datasets.
Summary updated