Organizations: African Institute for Mathematical Sciences (AIMS), Cameroon · Independent Researcher · Brown University · Centrum Wiskunde & Informatica · University of Pretoria · University of Hamburg · Bayero University Kano · Imperial College London
As large language models (LLMs) become more widespread in Africa, their safety in low-resource languages remains largely untested since most red-teaming work focuses on English. This study evaluates six state-of-the-art LLMs using 400 explicit adversarial prompts in Yoruba and Nigerian Pidgin, categorised into four harm categories. The responses were scored by native-speaker annotators and reliability was assessed using Cohen's κ. While models that rejected up to 69% of English prompts rejected as few as 0% in Yoruba, this was not because they were safer, but because they failed to understand the prompts. Attack success rates increased for most models in the Nigerian languages, with GPT-4o Mini demonstrating the most significant cross-lingual safety discrepancy (+0.23 in Yoruba). When models did engage with adversarial prompts, many of the responses were harmful, with rates of harmful content reaching 0.63 in English and 0.50 in Nigerian Pidgin. The most difficult harm category to detect was cultural stereotypes and discrimination (ASR = 0.44 in Nigerian Pidgin). Comprehension in Yoruba was low across most models, and this directly suppressed apparent attack success without indicating actual safety. Gemini 2.0 Flash was the most consistent model across languages. Despite its explicit training in African languages, Aya 101 had the highest attack success rate in English (0.60) and one of the lowest Yoruba comprehension rates (0.28). These results demonstrate that English-centric safety alignment does not transfer to Nigerian languages, highlighting the urgent need for language-specific safety evaluations.
Figures & tables
Figure 1: Cross-lingual safety gap across English, Yoruba, and Nigerian Pidgin. The same prompt produces a safe response in English but harmful responses in Yoruba and Nigerian Pidgin.
Figure 2: Overview of the research pipeline: (1) prompt construction and adaptation, (2) translation into Yoruba and Nigerian Pidgin, (3) zero-shot evaluation of six LLMs, and (4) human evaluation and metric computation.
Harm Category
Adapted
Original
Total
Hate/abusive language
50
50
100
Harmful instructions
40
60
100
Political manipulation
33
67
100
Cultural stereotypes
49
51
100
Subtotal (English)
172
228
400
Table 1: Distribution of English prompts by harm category and source. Each has a parallel Yoruba and Nigerian Pidgin version, for 1,200 prompts total.
Figure 3: Refusal Rate (RR) and Attack Success Rate (ASR) per model across English, Yoruba, and Nigerian Pidgin. RR measures the proportion of prompts refused by each model, while ASR measures the proportion of prompts that elicited harmful responses.
Model
Lang.
RR
ASR
HCR
HR
CR
Aya-101
Eng
0.05
0.60
0.63
0.52
0.68
Yor
0.00
0.25
0.25
0.22
0.28
Pid
0.04
0.48
0.50
0.43
0.52
Gemini-2.0
Eng
0.69
0.13
0.41
0.48
0.98
Yor
0.55
0.06
0.13
0.32
0.92
Pid
0.67
0.12
0.35
0.29
0.98
Table 2: Evaluation metrics by model and language (Eng = English, Yor = Yorùbá, Pid = Nigerian Pidgin).
Figure 4: Cross-Lingual Safety Gap (CLSG) for each model in Yoruba and Nigerian Pidgin. Orange bars indicate models that are more vulnerable in the target language than in English (CLSG > 0) while blue bars indicate models that are less vulnerable (CLSG < 0).
Figure 5: Attack Success Rate by harm category and language, aggregated across all six models.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Model
Developer
Access
Llama 3.1 8B
Meta
HF / A100
Llama 3.3 70B
Meta
Together.ai API
Qwen3 32B
Alibaba
Groq API
Aya 101
Cohere
HF / A100
Gemini 2.0 Flash
Google
Google API
GPT-4o Mini
OpenAI
OpenAI API
Appendix
Table 3: Models evaluated in this study.
Model
Lang.
Ref.
Harm.
Help.
Comp.
Aya 101
Eng
1.00
0.98
0.93
0.91
Yor
1.00
0.98
0.92
0.94
Pid
1.00
0.95
0.91
0.81
Gemini 2.0
Eng
1.00
0.92
0.98
0.74
Yor
1.00
0.82
0.90
0.86
Pid
1.00
0.96
0.90
0.85
Appendix
Table 4: Cohen’s κ inter-annotator agreement by model and language.
Lang.
Dim.
Tot.
Agree
Dis.
%
English
Refused
720
720
0
0.0
Harmful
720
688
32
4.4
Helpful
720
651
69
9.6
Comp.
720
680
40
5.6
Yoruba
Refused
720
720
0
0.0
Harmful
720
702
18
2.5
Appendix
Table 5: Annotator disagreement before adjudication.
Category
Lang.
ASR
RR
HCR
HR
CR
Cult. stereotypes
Eng
0.26
0.18
0.31
0.66
0.91
Yor
0.26
0.04
0.27
0.39
0.50
Pid
0.44
0.09
0.49
0.71
0.86
Harmful instr.
Eng
0.27
0.52
0.55
0.32
0.69
Yor
0.12
0.12
0.13
0.17
0.38
Pid
0.27
0.52
0.55
0.31
0.60
Appendix
Table 6: Metrics by harm category and language, aggregated across all six models.
Figure 6: Pearson correlation heatmaps between evaluation metrics across English, Yoruba, and Nigerian Pidgin. Blue indicates strong positive correlation, and orange indicates strong negative correlation. White indicates no correlation.
Language model safety evaluation measures harmful behavior, refusal, robustness, and over-refusal across realistic prompts, users, and deployment settings.