Manuscript Offprint

arXiv:2610.39590

Red-Teaming Large Language Models in Low-Resource African Languages: A Case Study of Yoruba and Nigerian Pidgin

Paula Chikaodinaka Anyanwu, Valdini Douglace Lemofouet, Blessing Ngozi Uzor, Ifeoluwa Dorcas Awotunde, Danielle Blanche Kapsa, Tassallah Abdullahi, Clemencia Siro, Idris Abdulmumin, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad

Abstract

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 κ\kappa. 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.

Content Warning: This paper contains adversarial prompts and model outputs involving harmful, offensive and discriminatory content. This content is included strictly for research purposes.

Figure

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.

1 Introduction

Large language models (LLMs) are now embedded in educational, healthcare, customer service, and social media applications across Africa, with millions of people interacting with them daily (Abdullahi et al., 2026). As their use increases, so does concern about their safety (Abdullahi et al., 2026). In one well-known example, attackers manipulated Microsoft’s Tay chatbot into generating racist and provocative content within hours of its release (Purpura et al., 2025), demonstrating how easily an insufficiently guarded system can be exploited for malicious purposes.

Safety alignment is the process of training a model to recognise harmful requests and refuse them. This process typically combines reinforcement learning from human feedback (RLHF), supervised fine-tuning on safer data, and red-teaming (Ouyang et al., 2022). As a result, modern LLMs are considerably safer than earlier generations, but alignment remains imperfect, and models continue to exhibit harmful behaviour under careful adversarial testing (Ganguli et al., 2022). Importantly, almost all of this testing has been conducted in

English (Singhania et al., 2025), leaving open the question of how well safety alignment generalises to the languages spoken by the majority of the world’s population.

Yoruba and Nigerian Pidgin are two of the most widely spoken languages in Nigeria and West Africa. Yoruba, spoken by around 42 million people in Nigeria, Benin, and Togo, is a tonal language with a rich tradition of oral literature and proverbs which often have no direct equivalent in English. In contrast, Nigerian Pidgin is a creole language formed through constant code-switching between English and indigenous Nigerian languages. It is documented as the major Nigerian language with the least NLP support (Rashid et al., 2025). Despite their combined reach of tens of millions of speakers, both languages are underrepresented in LLM training data and safety evaluation benchmarks, which affects our understanding of model behaviour in Nigerian deployment contexts. This underrepresentation has measurable consequences: unsafe output rates are known to rise as language resource availability falls. Low-resource languages elicit harmful output roughly three times as often as high-resource languages, as demonstrated by models such as ChatGPT and GPT-4 (Deng et al., 2024).

This paper red-teams six LLMs in English, Yoruba and Nigerian Pidgin using an explicit adversarial benchmark comprising 400 prompts. The benchmark comprises 400 prompts originally authored in English, of which 172 (43%) were adapted from four existing red-teaming datasets: Do-Not-Answer (Wang et al., 2024), HARM-FULQA (Bhardwaj and Poria, 2023), AdvBench (Zou et al., 2023), and HarmBench (Mazeika et al., 2024), while the remaining 228 (57%) were newly authored to reflect Nigeria-specific harm scenarios not adequately covered by existing benchmarks. These 400 English prompts were then translated into Yoruba and Nigerian Pidgin, creating a total of 1,200 prompts across the three languages. Model responses were assessed by native-speaker annotators along three dimensions: harmfulness, helpfulness, and comprehension. All prompts are single-turn and explicitly state harmful intent, rather than relying on role-play or indirect phrasing. This design allows us to compare model safety in English with that in the two target languages and establish whether existing safety mechanisms can recognise and appropriately handle explicit harmful requests, before we examine more sophisticated jailbreak strategies.

Problem. Several gaps motivate this work. Safety evaluation remains English-centric (Singhania et al., 2025). Multilingual training alone does not guarantee safety, since multilingual models have been shown to produce more toxic output than general models in some low-resource settings (Hu et al., 2025). African languages are particularly vulnerable under policy-compliance testing (Abdullahi et al., 2026), but this differs fundamentally from adversarial red-teaming, where prompts are deliberately designed to elicit harmful output. Finally, models that fail to comprehend a low-resource-language prompt may appear safe simply because they cannot engage with it at all (Shen et al., 2024). Therefore, it is essential to distinguish between safety failure and comprehension failure. However, this distinction has not been sufficiently explored in red-teaming studies focusing specifically on Yoruba and Nigerian Pidgin.

References (19)