Methodology of Adapting Large English Language Models for Specific Cultural Contexts

Wenjing Zhang, Siqi Xiao, Xuejiao Lei, Ning Wang, Huazheng Zhang, Meijuan An, Bikun Yang, Zhaoxiang Liu, Kai Wang, Shiguo LianarXiv 2024 · DOI

Introduction

Advanced Large Language Models (LLMs) like LLaMA3 are predominantly trained on English-centric corpora, with non-English data often accounting for less than 5% of the total training set. This imbalance creates a "cultural blind spot," where models lack specific regional facts and fail to align with local ethical norms or safety standards. While training a model from scratch on local data is ideal, it is often prohibitively expensive. Researchers from China Unicom have proposed a rapid, two-stage instruction-tuning methodology to bridge this gap efficiently.

The authors liken this process to a "foreign expert" moving to a new country. A doctor arriving in China already possesses medical expertise (the base model's reasoning capabilities) but requires targeted learning of the local language and cultural nuances to practice effectively.

Rapid Adaptation Methodology

The proposed pipeline focuses on transforming an English-centric model into a culturally aware assistant through a streamlined three-step process:

  1. Instruction-Tuning Data Collection: A hybrid "human-model" approach is used to curate high-quality Chinese datasets. This involves manual verification to strip English-specific contexts and using models like GPT-4 to refine responses to meet local cultural standards.
  2. Knowledge and Capabilities Enhancement: The base model undergoes full-parameter fine-tuning using knowledge-based instructions. This stage targets text understanding, information extraction, and reasoning within the specific cultural context.
  3. Safety and Values Alignment: Following knowledge acquisition, the model is fine-tuned on safety-oriented instructions to ensure it rejects harmful content and adheres to local ethical orientations.
The two-stage rapid adaptation pipeline for cultural alignment.

The researchers utilized LLaMA3-8B as the base model, opting for full-parameter fine-tuning over parameter-efficient methods like LoRA to fully leverage the model's latent capabilities.

Datasets and Evaluation

The study employed several specialized datasets for the Chinese context:

  • Knowledge/Capabilities: alpaca_gpt4_data_zh and RefGPTDatasetV1CN, supplemented by 6.6K custom instructions.
  • Safety/Values: safetyprompts and hallu (adversarial questions on Chinese history and customs).

Performance was measured using A-Eval for knowledge dimensions (Understanding, Extraction, Generation, Reasoning, Planning) and CHisafetybench for safety compliance.

Key Results and Insights

The adaptation process yielded significant improvements across all metrics. The base LLaMA3-8B model initially demonstrated poor Chinese proficiency, which was rectified through the two-stage tuning process.

Performance comparison across knowledge dimensions (A-Eval) showing the leap from base to adapted models.

As shown in the results, the overall knowledge accuracy jumped from a baseline of 8.70% to 44.54% after the knowledge enhancement stage (LLaMA3-8B-KG). Safety performance also saw a dramatic increase; the final "SAFE" model reached 72.06% in identifying risk content on CHisafetybench, compared to the baseline's 19.63%.

Efficiency and Synergy

A critical finding of this research is the efficiency of the method. Using 32 A100 GPUs, the team completed the training in just 15.67 hours. Furthermore, the researchers observed that "knowledge aids safety"—the model enhanced with knowledge (KG) naturally performed better in safety tasks because it could better recognize the nuances of risky prompts. However, a slight trade-off was noted: safety alignment can marginally decrease performance in certain knowledge tasks while improving text generation quality.

Conclusion

This methodology demonstrates that English-centric LLMs can be successfully adapted to specific cultural contexts with minimal computational overhead. Future work will focus on coordinating the two adaptation phases to minimize the safety-knowledge trade-off and applying this pipeline to larger models and diverse global cultures.

Summary updated

Abstract

The rapid growth of large language models(LLMs) has emerged as a prominent trend in the field of artificial intelligence. However, current state-of-the-art LLMs are predominantly based on English. They encounter limitations when directly applied to tasks in specific cultural domains, due to deficiencies in domain-specific knowledge and misunderstandings caused by differences in cultural values. To address this challenge, our paper proposes a rapid adaptation method for large models in specific cultural contexts, which leverages instruction-tuning based on specific cultural knowledge and safety values data. Taking Chinese as the specific cultural context and utilizing the LLaMA3-8B as the experimental English LLM, the evaluation results demonstrate that the adapted LLM significantly enhances its capabilities in domain-specific knowledge and adaptability to safety values, while maintaining its original expertise advantages.
BibTeX
@misc{zhang2024methodology,
  author = {Wenjing Zhang and Siqi Xiao and Xuejiao Lei and Ning Wang and Huazheng Zhang and Meijuan An and Bikun Yang and Zhaoxiang Liu and Kai Wang and Shiguo Lian},
  title = {{Methodology of Adapting Large English Language Models for Specific Cultural Contexts}},
  year = {2024},
  eprint = {2406.18192},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.18192},
}
Figure