reemim / Hofstedes_CAT

Towards diagnosing cultural alignment in LLMs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📌 Project Highlight: Hofstede's Cultural Alignment Test (Hofstede's CAT )

📖 Abstract:

The deployment of large language models (LLMs) raises concerns regarding their cultural misalignment and potential ramifications on individuals and societies with diverse cultural backgrounds. While the discourse has focused mainly on political and social biases, our research proposes a Cultural Alignment Test (Hoftede's CAT) to quantify cultural alignment using Hofstede's cultural dimension framework, which offers an explanatory cross-cultural comparison through the latent variable analysis. We apply our approach to quantitatively evaluate LLMs—namely Llama 2, GPT-3.5, and GPT-4—against the cultural dimensions of regions like the United States, China, and Arab countries, using different prompting styles and exploring the effects of language-specific fine-tuning on the models' behavioural tendencies and cultural values. Our results quantify the cultural alignment of LLMs and reveal the difference between LLMs in explanatory cultural dimensions. Our study demonstrates that while all LLMs struggle to grasp cultural values, GPT-4 shows a unique capability to adapt to cultural nuances, particularly in Chinese settings. However, it faces challenges with American and Arab cultures. The research also highlights that fine-tuning LLama 2 models with different languages changes their responses to cultural questions, emphasizing the need for culturally diverse development in AI for worldwide acceptance and ethical use.

🔍 Key Features of CAT:

  • Hofstede’s Framework: A trusted base for cross-cultural comparison.
  • In-depth Analysis: Coverage of diverse prompting styles and hyperparameter settings.
  • Quantifiable Metrics: Measures the cultural alignment of LLMs.

🌍 Cultures Analyzed:

  • United States
  • China
  • Arab Countries

🔬 Methodology:

The methodology behind Hofstede's CAT was designed to provide a quantifiable measure of cultural alignment in LLMs. Here's an overview of our approach:

  1. Framework Adoption: We began by integrating Hofstede’s cultural dimension framework to assess cultural alignment in LLMs, which involves 30 questions, including 24 on cultural dimensions and 6 on demographics. The ranking of these dimensions serves as a benchmark.
  2. Prompting:
    1. Model Level: Assesses default cultural values in English, Chinese, and Arabic.
    2. Country Level: Prompts LLMs in English to act like a person from specific countries.
    3. Hyperparameter: Examines temperature and top-p settings in GPT-3.5.
    4. Response Level: Analyzes consistency of responses.
    5. Language Correlation: Compares cultural values of LLMs fine-tuned for English and Chinese.
  3. Cultural Dimensions: Six index scores are computed from the VSM13 responses.
  4. Correlation and Misclassification: The Kendall Tau coefficient is used to rank correlations, and misclassification errors identify culturally misaligned countries.

🧪 Experiments:

We evaluated the cultural alignment of three Large Language Models (LLMs): GPT-3.5, GPT-4, and Llama 2, focusing on the United States, China, and Arab countries, using Hofstede's cultural dimensions.

Model Level Comparison:

We compared the models' rankings with the original VSM13 values in English, Chinese, and Arabic:

  • GPT-4 outperforms GPT-3.5 in understanding and adapting to cultural nuances, showing superior performance without needing a specified persona.
  • GPT-3.5 struggles with specific cultural nuances and shows poor adaptation when personas are used.

Country Level Comparison:

We then assessed how the models performed when acting as individuals from specific countries:

  • GPT-4 shows better adaptability across different cultures, notably in the MAS (Masculinity vs. Femininity) dimension.
  • Llama 2 and GPT-3.5 perform poorly when specific personas are involved in cultural contexts.
  • The percentage of mis-ranked dimensions was highest for the United States.

Hyperparameter Comparison:

We examined the impact of adjusting temperature and top-p settings in GPT-3.5 on cultural alignment:

  • Adjusting temperature and top-p settings significantly affects cultural alignment; lower temperature combined with either high top-p or moderate settings generally improves alignment.
  • This highlights the importance of hyperparameters for cultural sensitivity.

Language Correlation:

We compared Llama 2 models fine-tuned on English and Chinese:

  • There are notable differences in cultural reflections between English and Chinese models.
  • The English models of both GPT-4 and LLama-2 tend to be more neutral, while the Chinese versions respond more positively.
  • LLama-2's performance is generally lower compared to GPT models, with distinct variations between its English and Chinese versions.

📊 Results:

  • Performance Insights: Variability in GPT-4's cultural performance—poor in the U.S., better in China, problematic in Arab Countries.
  • Red-Teaming Effects: Suggests that the impact of red-teaming affects cultural sensitivity and performance of LLMs, with less red-teaming possibly benefiting performance in non-English contexts.
  • Ethical and Economic Impacts: Cultural misalignment risks ethical issues and economic setbacks, affecting AI's global trust and adoption.
  • Need: Culturally aligned AI is crucial for ethics, trust, and global adoption. This requires appropriate data, advanced techniques, interdisciplinary collaboration, and education.

📽️ Demo:

Try out our demo on Google Colab to explore the cultural alignment of your desired LLMs.

🤝 Collaborators:

📄 Publication:

Citation


@inproceedings{
masoud2024cultural,
title={Cultural Alignment in Large Language Models: An Explanatory Analysis Based on Hofstede's Cultural Dimensions},
author={Reem Masoud and Ziquan Liu and Martin Ferianc and Philip Colin Treleaven and Miguel R. D. Rodrigues},
booktitle={Global AI Cultures  @ ICLR 2024},
year={2024},
url={https://openreview.net/forum?id=HFt68VRiCb}
}

🙏 Thank you for stopping by! Don't forget to ⭐️ star this repository if you find it interesting.

About

Towards diagnosing cultural alignment in LLMs