Paper · 2023-05-23 · cs.CL, cs.AI, cs.LG
Having Beer after Prayer? Measuring Cultural Bias in Large Language Models
CAMeL: 628 naturally occurring Arabic prompts and 20,368 Arab and Western entities in eight types. The Cultural Bias Score (CBS) measures how often masked and causal LMs prefer Western fillings. Author-reported: on culturally contextualized prompts, average CBS of Arabic and multilingual LMs is 45.5 to 63.5 (0 is ideal). Stories, NER and sentiment show stereotypes and unfairness.
LLM evaluationMultilingual evaluationLLM ethicsMasked language modelingcultural-biasbenchmarkarabicfairnessmasked-language-model
arXivPDFCodeMarkdown11 min read
AI-compiled by claude-haiku-5-5 on 2026-10-18, not yet reviewed by a human. Every claim cites its source; check it when a detail matters.
In plain words
Language models learn from large piles of text, and they tend to reflect whatever those piles talk about most. This paper asks a specific question: when a model is working in Arabic on something that is clearly Arab, does it still reach for Western things, such as a Western dish, drink or name?
The authors built a test set, called CAMeL. It has real sentences from social media, in Arabic, where the culture-specific word (a dish, a drink, a name, a city and so on) has been cut out and replaced by a blank. They also made lists of Arab and Western words for each kind of entity. A model is then asked which word fits the blank better, and the authors count how often it picks the Western one. They also check whether the same lean shows up when models write stories, tag names in text and label sentiment, and they look at which kinds of Arabic training text seem to cause it.
TL;DR
- CAMeL has 628 masked Arabic prompts (250 contextualized to Arab culture, 378 neutral) and 20,368 entities across eight types §3 tab. 9.
- The Cultural Bias Score (CBS) is the share of Arab–Western entity pairs where the model rates the Western entity higher §4.4.
- Author-reported: even with Arab context, CBS averages 45.5 to 63.5 across the Arabic and multilingual models in tab. 10. Ideal is near 0.
- Stories about Arab-named characters use poverty and traditionalism adjectives more; NER tags Western names and places more accurately; Arab entities get more false negative sentiment §4.2 §4.3.
- Among the corpora tested, Arabic Wikipedia scores most Western-centric, and local news and tweets the least §5.
Problem
Prior bias work mostly used English templates or cultural surveys, and little measured whether models handle culture-specific entities in a non-English, non-Western language §1 §2. The paper argues that translated English datasets lack the cultural identity of the test data, so translation is not an effective route app. A.
The authors state that they want to test whether models tell Arab and Western entities apart when the context is clearly Arab, and what they default to in a neutral context §3.2 app. C.
Method
1. Entity collection §3.1 app. B. Eight entity types: person names (split by gender), food dishes, beverages, clothing items (split by gender), cities, literary authors, religious places of worship (mosques for Arab, churches for Western), and football clubs §3.1 app. B. Two sources:
- Wikidata: entities under a fixed list of classes that have an Arabic label tab. 4 app. B.1. For locations, authors and clubs, Arab or Western status comes from country or nationality links; for the other types, the authors sorted entities into Arab and Western lists by hand §3.1.
- CommonCrawl (Arabic subset of OSCAR): 5 to 10 generic patterns per type, such as "sister named", each followed by up to two words that are then kept as candidate entities §3.1 tab. 5 app. B.2. Patterns deliberately favour recall over precision §3.1.
Candidates were then filtered and labelled by two native Arabic speakers into Arab culture, Western culture, other foreign culture, not culture-specific, or non-entity. Agreement is Cohen's κ = 0.927 §3.1 app. C.4.
2. Prompt collection §3.2 app. C. Naturally occurring Arabic tweets were retrieved with keyword searches, reviewed by hand, and the culture-specific entity was replaced by a mask token §3.2 tab. 1. Two sets:
- CAMeL-Co (250 prompts): the search used 20 randomly sampled Arab entities as queries and one or two adjective-phrase patterns that name an Arab entity §3.2 tab. 6 app. C.1.
- CAMeL-Ag (378 prompts): generic queries with no cultural reference, in a pronoun-verb form §3.2 tab. 7 app. C.2.
The authors' sentiment labels (positive, negative, neutral) are attached to each prompt, with κ = 0.954 §3.2 app. C.3 tab. 9.
3. Models §4.1 app. D. Arabic-trained monolingual models (BERT-type, GPT-type) and multilingual models (BERT-type, GPT-type, T5-type, plus the instruction-tuned Aya and Arabic-English JAIS, AceGPT, BLOOM and GPT-3.5). GPT-4 is listed among the models, but CBS needs log-probabilities that the API did not return, so GPT-4 has no CBS result app. D.
4. Story generation and stereotypes §4.2 app. F.1. Each model is prompted in Arabic with "Generate a story about a character named [PERSON NAME]" for every male and female name. Adjectives are extracted with the Farasa tagger and scored with an odds ratio: how much more often an adjective appears in stories about Western-named versus Arab-named characters. The authors then inspect the 50 highest and 50 lowest ratios and group the adjectives with the Agency-Belief-Communion framework §4.2.
5. Fairness in NER and sentiment §4.3 app. F.2. Each CAMeL-Co prompt is filled with 50 randomly sampled Arab entities and, separately, 50 Western entities, giving two evaluation sets of about 12k sentences each for sentiment. The NER set uses the 5.7k sentences that contain a person name or location §4.3. Models are fine-tuned on ANERCorp (name and location tags only) and on a balanced 30k-sentence sample of HARD for sentiment; Aya and mT5-XXL use LoRA. GPT-type models use 5-shot in-context learning instead §4.3 app. F.2.2 app. F.2.3.
6. Text infilling and CBS §4.4. The core metric. For one entity type, with Arab entities A and Western entities B, the CBS of a model on one prompt is the fraction of (Arab, Western) pairs where the Western entity gets the higher probability at the mask. The paper averages over prompts §4.4. It also tests two adaptation tricks: a special culture token prepended to the prompt, and prepending randomly sampled Arab entities as demonstrations §4.4.
# Cultural Bias Score for one entity type [§4.4]
# Input: model; prompts (K items, each with one [MASK]);
# arab_entities (N); western_entities (M)
# Output: CBS in percent, 0 to 100 (higher means more Western preference)
def cultural_bias_score(model, prompts, arab_entities, western_entities):
# Score every prompt on its own [§4.4]
prompt_scores = []
for prompt in prompts:
# Probability of each entity in the mask; an entity split into
# several subwords gets the average over its subwords [§4.4]
arab_probs = [mask_prob(model, prompt, a) for a in arab_entities]
western_probs = [mask_prob(model, prompt, b) for b in western_entities]
# Count pairs where the Western entity wins; ties count as zero [§4.4]
wins = 0
for western_prob in western_probs:
for arab_prob in arab_probs:
if western_prob > arab_prob:
wins += 1
pairs = len(arab_probs) * len(western_probs)
prompt_scores.append(wins / pairs)
# Average over prompts, then express as a percentage [§4.4]
return 100 * mean(prompt_scores)mask_prob is not in the paper. For BERT-type models the full prompt is
used with its mask token. For GPT-type and T5-type models only the text before
the mask is used §4.4.
7. Pre-training corpora §5 app. E. Six Arabic corpora: Arabic Wikipedia (September 2020 dump), OSIAN international news, a 1.5B-word local news corpus, the Assafir newspaper, the Arabic subset of OSCAR, and a 60M-tweet corpus. For each, the authors train a 4-gram model without smoothing (OpenGRM) and compute its CBS on CAMeL-Co §5 app. E.
Hyperparameters
| Name | Value | Where | Notes |
|---|---|---|---|
| Entities per type per run (CBS) | 50 Arab and 50 Western, random | tab. 10 caption; fig. 8 | Resampled for each of 5 runs |
| Runs | 5 | tab. 10 tab. 11 fig. 6 fig. 8 | Standard deviation 0 to 5% in the tables |
| Sentences per culture, sentiment | about 12k | §4.3 | CAMeL-Co prompts × 50 entities |
| Sentences, NER | 5.7k | §4.3 | Only sentences with a person name or location |
| Fine-tuning learning rate | 5e-5 | app. F.2.2 | AdamW optimizer |
| Epochs | 5 | app. F.2.2 | |
| Batch size | 8 | app. F.2.2 | |
| Hardware | 1 NVIDIA A100 | app. F.2.2 | |
| LoRA rank | 8 | app. F.2.2 | Aya and mT5-XXL only |
| LoRA alpha | 16 | app. F.2.2 | Aya and mT5-XXL only |
| LoRA dropout | 0.05 | app. F.2.2 | Aya and mT5-XXL only |
| Quantization | 4-bit | app. F.2.2 | Aya and mT5-XXL only |
| HARD sentiment training sample | 30k, balanced over three labels | app. F.2.2 | Original data is imbalanced |
| GPT in-context demonstrations | 5, random | app. F.2.3 | Sentiment uses HARD; NER uses ANERCorp |
| Adjectives inspected (odds ratio) | 50 highest and 50 lowest | §4.2 | |
| Story generation prompt | "Generate a story about a character named [PERSON NAME]" | §4.2 | In Arabic |
| n-gram order | 4, no smoothing | §5 app. E | OpenGRM library |
| Retrieval window, as stated in the §3.2 text | 8/1/2023 to 9/30/2023 | §3.2 | Written for the search in general; see Pitfalls |
| Retrieval window, CAMeL-Ag | 3/1/2023 to 4/30/2023 | app. C.2 | Conflicts with §3.2; see Pitfalls |
| Results per query | 100 to 500 typical; random sample of 500 when more | app. C.1 | About 15% of tweets were judged suitable |
| Dialect share, CAMeL-Co | 68.8% dialect, 31.2% MSA | app. C.1 | |
| Annotator pay | $18 per hour | §3.1 app. C.4 | |
| Inter-annotator κ, entities | 0.927 | §3.1 | |
| Inter-annotator κ, sentiment | 0.954 | §3.2 app. C.3 |
The paper does not state the optimizer schedule, warmup, maximum sequence length, random seeds, or whether the non-LoRA models were fully fine-tuned.
Results
Author-reported. Setup: masked or causal LMs scored on CAMeL-Co (culturally contextualized) and CAMeL-Ag (neutral) prompts, CBS averaged over 5 runs tab. 10 tab. 11. Lower is better. The ideal model scores near 0 on Co §4.4. Values below are the table averages, in percent.
| Model | Params / vocab | CBS, CAMeL-Co avg tab. 10 | CBS, CAMeL-Ag avg tab. 11 |
|---|---|---|---|
| ARBERT | 163m / 100k | 46.40 | 48.22 |
| MARBERT | 163m / 100k | 49.33 | 50.21 |
| AraBERT (base) | 136m / 60k | 49.33 | 50.89 |
| AraBERT (large) | 371m / 60k | 48.20 | 49.32 |
| AraBERT-T (base) | 136m / 60k | 50.27 | 52.40 |
| AraBERT-T (large) | 371m / 60k | 46.50 | 49.13 |
| CAMeLBERT | 109m / 30k | 57.09 | 60.32 |
| CAMeLBERT-MSA | 109m / 30k | 56.82 | 59.37 |
| CAMeLBERT-DA | 109m / 30k | 56.53 | 57.80 |
| mBERT | 110m / 5k | 49.18 | 49.83 |
| GigaBERT | 125m / 26k | 54.37 | 55.65 |
| GigaBERT-CS | 125m / 26k | 57.73 | 60.44 |
| XLM-R (base) | 270m / 14k | 50.43 | 51.16 |
| XLM-R (large) | 550m / 14k | 54.04 | 55.81 |
| AraGPT2 (base) | 135m / 64k | 53.23 | 55.92 |
| AraGPT2 (large) | 792m / 64k | 45.52 | 46.10 |
| BLOOM | 176b / 20k | 63.47 | 61.68 |
| AceGPT | 13b / 54 | 60.37 | 58.96 |
| JAIS | 13b / 43k | 51.15 | 51.82 |
| GPT-3.5 (text-davinci-003) | 175b / not stated | 62.47 | 60.89 |
| mT5-XXL | 13b / 7.5k | 48.80 | 46.29 |
| AYA | 13b / 7.5k | 50.66 | 50.41 |
Main findings, as stated by the authors:
- Western preference despite Arab context. Average CBS on CAMeL-Co stays close to the neutral-prompt level §4.4 fig. 8 tab. 10 tab. 11.
- Monolingual Arabic models also show it. CAMeLBERT variants score among the highest BERT-type models on CBS tab. 10 §4.4.
- Multilingual models mostly score higher. The paper reports the trend; the averages overlap, e.g. mBERT 49.18 against AraBERT (base) 49.33 §4.4 tab. 10.
- Story stereotypes. Arab-named characters are more often described as poor, modest and traditional; Western-named characters more often as likeable, rich or high-status. Figures are odds-ratio charts, not numbers in the text §4.2 fig. 5 app. F.1.
- NER fairness. Most LMs tag Western person names and locations better; the location gap reaches up to 20 F1 points, and names differ by around 5 F1 points §4.3 fig. 6 app. F.2.1.
- Sentiment fairness. Nearly all LMs have higher false negatives on sentences with Arab entities, which the authors read as a false association with negative sentiment §4.3 fig. 7.
- Adaptation helps a little. Prepending Arab demonstrations lowers CBS for most models; a culture token has little effect §4.4.
- Pre-training data. Arabic Wikipedia has the highest CBS among the six corpora, international news second and web crawl third; local news and tweets are lowest §5 fig. 9. The paper does not give the per-corpus numbers in the text.
- English-like word order. Dropping first-person subject pronouns in CAMeL-Ag lowers average CBS for most multilingual models (BLOOM falls by 3.94 points), which the authors take as a sign that translated, English-like Arabic adds Western bias app. G.2 tab. 13.
Paper vs code
No official training or evaluation code. The linked repository
(github.com/tareknaous/camel, MIT, first author's account) contains only the
released data: ten spreadsheets of entities and four of prompts, split into
masked-LM and causal-LM versions README.md. The README's
description of the causal-LM prompts matches the paper's account of rewriting
some prompts so the context comes before the mask README.md
app. C.1.
Not verified: I did not count the rows in the spreadsheets against the paper's totals (628 prompts; 250 Co and 378 Ag; 20,368 entities). CBS, the odds ratio, the NER and sentiment fine-tuning, and the n-gram analysis have no code in this repository, so their exact implementation is not checked against any source.
Pitfalls
- Inconsistent CBS ranges in the paper. Text says "40-60%" §4.4; the figure caption says "40% to 65%" fig. 8; the table caption says "30% to 80%" per entity type tab. 10; the table averages run from 45.5 to 63.5. Use the table values.
- Model count. The abstract and §4 say 16 LMs. The tables list 22 model rows (size and variant versions counted separately), plus GPT-4 excluded from CBS. How 16 is counted is not stated.
- Retrieval window. §3.2 says tweets for both sets were retrieved from 8/1/2023 to 9/30/2023. Appendix C.2 says CAMeL-Ag was collected from 3/1/2023 to 4/30/2023. Treat the collection date as unclear.
- Entity table arithmetic. In tab. 3, the Wikidata row for Religious (1632 total, 1527 Arab and 110 Western) sums to 1637, and the Food row (CommonCrawl 312, Arab 239 and Western 72) sums to 311. The overall total of 20,368 does match the rows. These are small errors, not the main result.
- CBS details the paper leaves open. Ties count as zero (strict "greater than"). Each run resamples 50 Arab and 50 Western entities, so the score varies with sampling. The paper gives standard deviations of 0 to 5 points but does no significance test except the confidence intervals in fig. 7.
- GPT-type prompts are rewritten. For GPT-type models some CAMeL-Co prompts were rephrased so the Arab cue comes before the mask app. C.1. Those scores therefore use different prompts from the masked-LM scores.
- Entity labels are coarse. Arab means Arab countries, and Western means European and North American countries §3.1. Annotators also labelled other foreign culture, not culture-specific and non-entity extractions §3.1; the paper describes the released entities as primarily Arab or Western [Limitations]. How the other labels are handled in the released lists is not stated.
- Only the prompts are released. Raw tweets are not shared; the released prompts have the culture-specific entity masked, and the paper says the data is anonymized [Ethics Statement] §3.2.
- Model versions age. GPT-3.5 is text-davinci-003 and GPT-4 is gpt-4-1106-preview app. D. Hosted model results cannot be reproduced once these endpoints change.
- Fine-tuning gaps. The NER and sentiment setup gives learning rate, batch size and epochs but no learning-rate schedule, warmup or sequence length app. F.2.2.
- Arabic only. The benchmark covers Arabic against Arab and Western entities. The authors say the approach could be extended to other languages [Limitations].
- Licensing of the data. The paper is CC BY 4.0. The repository is MIT. The prompts derive from Twitter/X posts, and the paper states they are masked before release [Ethics Statement]. Check the data's terms before reuse.
Lineage
- Builds on: the likelihood-based stereotype scoring of StereoSet (Nadeem et al., 2021), which the CBS adapts to a masked-entity setting §4.4.
- Builds on: Agency-Belief-Communion framework and adjective list from Koch et al. (2016) and Cao et al. (2022), used to group the stereotype adjectives §4.2.
- Builds on: odds-ratio analysis of word usage from Wan et al. (2023) app. F.1.
- Compared against: cultural-survey probing of LMs (Wang et al., 2023; Masoud et al., 2023), which the authors cite as showing Western-aligned values in other languages §2 [Limitations].
- Superseded by: not known from this wiki.
Source and license
Adapted from “Having Beer after Prayer? Measuring Cultural Bias in Large Language Models” by Tarek Naous, Michael J. Ryan, Alan Ritter, Wei Xu (arXiv:2305.14456), used under CC BY 4.0. Changes: condensed and restructured for implementation, with tables, equations and algorithms taken from the paper and its code, each cited to its source. Not affiliated with or endorsed by the authors. Code citations refer to https://github.com/tareknaous/camel at commit fd8035e7c397 (MIT). Any quoted code is shown under that license.