The Cultural Bias Benchmark System is an automated, enterprise-grade evaluation framework engineered to measure, analyze, and quantify how different Large Language Models (LLMs) handle cross-cultural business communication, organizational behavior, and systemic cultural biases[cite: 3].
The system’s core architecture is deeply grounded in two foundational frameworks of intercultural management[cite: 3]:
- Erin Meyer’s 8 Cultural Dimensions: Evaluates communication styles and workplace dynamics across Communicating, Evaluating, Persuading, Leading, Deciding, Trusting, Disagreeing, and Scheduling[cite: 3].
- GLOBE Study Cultural Clusters: Groups and maps behavioral responses across 10 Global Cultural Clusters (such as Anglo, Germanic Europe, Nordic Europe, Latin Europe, Eastern Europe, Latin America, Middle East, Southern Asia, Sub-Saharan Africa, and Confucian Asia)[cite: 3].
The Cultural Bias Benchmark System is an automated, enterprise-grade evaluation framework engineered to measure, analyze, and quantify how different Large Language Models (LLMs) handle cross-cultural business communication, organizational behavior, and systemic cultural biases[cite: 3].
The system’s core architecture is deeply grounded in two foundational frameworks of intercultural management[cite: 3]:
- Erin Meyer’s 8 Cultural Dimensions: Evaluates communication styles and workplace dynamics across Communicating, Evaluating, Persuading, Leading, Deciding, Trusting, Disagreeing, and Scheduling[cite: 3].
- GLOBE Study Cultural Clusters: Groups and maps behavioral responses across 10 Global Cultural Clusters (such as Anglo, Germanic Europe, Nordic Europe, Latin Europe, Eastern Europe, Latin America, Middle East, Southern Asia, Sub-Saharan Africa, and Confucian Asia)[cite: 3].
The evaluation model incorporates Erin Meyer’s framework from The Culture Map across eight distinct scales:
- Communicating: Measures whether communication is low-context (explicit, clear, and direct) or high-context (relies on implicit messages, subtext, and shared background).
- Evaluating: Evaluates how frank negative feedback is given, ranging from direct and unfiltered feedback to indirect feedback softened with positive framing.
- Persuading: Analyzes how arguments are structured, distinguishing between principles-first (understanding theory before application) and applications-first (starting with practical examples and conclusions).
- Leading: Examines the organizational distance between managers and staff, spanning from egalitarian (flat structures, first-name basis) to hierarchical (respect for formal authority).
- Deciding: Measures whether decisions are made via group consensus or through top-down, unilateral leadership direction.
- Trusting: Contrasts task-based trust (built on professional competence and business performance) with relationship-based trust (built through shared social time and personal rapport).
- Disagreeing: Evaluates whether open confrontation and debate are viewed as positive intellectual exercises or avoided to maintain group harmony.
- Scheduling: Examines perceptions of time, contrasting linear-time frameworks (strict adherence to agendas, punctuality, and fixed deadlines) with flexible-time frameworks (fluid adaptation to changing priorities).
To rigorously test model performance across various cognitive and behavioral levels, the system implements an escalating three-phase evaluation pipeline:
- Phase B1 (Factual Knowledge): Utilizes binary (
Yes/No) comparative queries to test a model's foundational comprehension of cultural behavioral polarities and patterns between specific country pairs. - Phase B2 (Applied / Relational Reasoning): Employs multiple-choice workplace scenario items depicting cross-cultural miscommunications or friction, challenging the model to correctly identify root cultural causes versus non-cultural administrative, technical, or interpersonal distractors.
- Phase B3 (Behavioral Identification): Presents granular workplace behavioral scenarios where models must deduce the most likely country of origin using multi-choice regional and cultural distractors distributed across varying degrees of pole separation.
The repository is structured into distinct, modular functional directories:
The repository is structured into distinct, modular functional directories:
cultural_bias_benchmark/
│
├── data/
│ ├── generators/ # Programmatic dataset generators (generate_b1.py, generate_b2.py, generate_b3.py)
│ ├── raw/ # Source JSONL benchmark datasets (b1_dataset.jsonl, b2_dataset.jsonl, b3_dataset.jsonl)
│ └── results/ # Generated raw LLM response logs (e.g., b1_answers_[model].jsonl)
│
├── external_evaluations/ # Complementary external mapping studies and datasets (CCD, Eticor)
├── reports/ # Compiled analytical Markdown evaluation reports (cultural_bias_report.md)
│
├── src/
│ ├── config.py # Global configuration (LiteLLM models, thresholds, cultural clusters mapping)
│ ├── main_run_benchmark.py# Primary orchestrator script for querying model APIs
│ ├── main_evaluate_report.py # Evaluation engine that parses responses and compiles metrics
│ └── models/ # API clients and fault-tolerant retry logic (LiteLLM + Tenacity)
│
├── .env # Environment variables (Private API Keys)
├── requirements.txt # Python project dependencies
└── README.md # System documentation
The benchmark system operates through two primary entry points that separate model inference from analytical reporting:
-
Inference Execution (
src/main_run_benchmark.py):- Iterates through the models defined in
src/config.py. - Automatically detects question formats (binary vs. multi-option dictionaries).
- Interacts with language models via LiteLLM, writing raw logs sequentially into
data/results/using a standardized naming convention (b1_answers_[model].jsonl,b2_answers_[model].jsonl,b3_answers_[model].jsonl).
- Iterates through the models defined in
-
Evaluation & Reporting Engine (
src/main_evaluate_report.py):- Parses raw response files from
data/results/without requiring live model API calls. - Applies regular expression matching to extract correct answers, calculating granular accuracies per cultural cluster and Meyer dimension.
- Generates a comprehensive summary document and saves it directly to
reports/cultural_bias_report.md.
- Parses raw response files from
Model behaviors, evaluation thresholds, and cultural cluster definitions are centrally managed in src/config.py. By default, the system evaluates models via LiteLLM, supporting providers such as:
groq/llama-3.1-8b-instantgroq/llama-3.3-70b-versatilecohere/command-r-08-2024groq/openai/gpt-oss-20b
Clone the repository and install the required Python dependencies listed in requirements.txt:
pip install -r requirements.txtCreate a .env file in the root directory to store your private API keys required by LiteLLM:
OPENAI_API_KEY="your_key_here"
GEMINI_API_KEY="your_key_here"
GROQ_API_KEY="your_key_here"
COHERE_API_KEY="your_key_here"
Security Note: Ensure your
.envfile is included inside your.gitignorefile to prevent accidental credential leakage.
To execute model evaluations across all datasets and automatically trigger the report generation module, run:
python src/main_run_benchmark.py