AfriGuard: Safety and Robust Refusal for African LanguagesAfriGuard: Safety and Robust Refusal For African Languages
AFriGuard covers English and 10 African languages, evaluating safety classification and refusal; the authors state that the guardrails are weaker than general-purpose LLMs, and low-quality outputs are often treated as refusals.
- The authors want to know whether existing guardrails and LLMs can, in African languages and local contexts, recognize harmful intent, distinguish risk categories, and appropriately refuse unsafe requests while responding normally to safe requests. They argue that translation-based data and smaller African-language benchmarks cannot cover local expressions of risk.
- AFriGuard uses Grok 3 to generate paired safe and unsafe prompts and responses according to a 10-category safety taxonomy and 10 country/language contexts, then machine-translates and manually verifies them. Test contexts do not overlap with training. The authors also synthesize AFriGuard-XL for 40 countries, and fine-tune a 270M guardrail, a refusal detector and several instruction models.
- In Figure 12, GPT-5.6 Luna's ten-language average binary F1 is 93.03 for native languages and 94.10 for English, and ShieldGemma-9B is 53.07. In Figure 13, its native-language ten-category average is 58.89. The authors state that low-quality outputs manifest as incidental non-assistance.
- The authors leave correlation analyses of judges, humans, and refusal detection, as well as comprehensive evaluation of AFriGuard-XL and comparison of data versions, for future work. Refusal evaluation includes only selected models. Fine-tuning did not use a dedicated hyperparameter search or multi-seed evaluation. The main evaluation languages are 10 African languages plus English.
- Evaluated models
- GPT-5.6 LunaGemini 3.6 FlashClaude Opus 5DeepSeek v4 FlashAfriqueQwen3.5 4B (50L, Inst)AfriqueQwen3.5 9B (50L, Inst)Tiny Aya Earth 3.5BTiny Aya Global 3.5BSunflower Qwen3.8 27BGemma 4 31BGemma 4 E4BLlama 3.1 8BQwen3.5 4BShieldGemma 9BShieldGemma 27BAfroXLMR-Guard 270MAfriGuard-mmBERT-small-rd
- Benchmarks
- AFriGuardAFriGuard-XL
- Metrics
- Weighted F1over-flagging ratemissed-harm rateSafety & RiskCultural UnderstandingLinguistic Response Quality
The researchers release AfriGuard, a culturally adapted multilingual dataset covering 10 African languages and English, for studying harmful intent, understanding of safety categories, and refusal behavior. The evaluation finds that guardrail models are inferior to open-source and closed-source large models on safe intent and safety category classification, and that models have limited understanding of appropriate safe behavior, with F1 below 60%. When faced with unsafe prompts, models often do not explicitly refuse but instead give linguistically inadequate answers, resulting in incidental non-assistance rather than appropriate refusal. Based on this dataset, the authors develop a guardrail model whose performance is comparable to models with about 30 times its parameter count; its refusal detector improves average performance by 43.9% over existing detectors, and they show that supervised fine-tuning can markedly improve overall safety performance.
Paper analysis
What problem does this paper attempt to solve?
Existing mechanisms need to recognize harmful intent, classify risk, and appropriately refuse in African languages.
Whether existing safety mechanisms can identify harmful intent, determine risk categories, and make appropriate refusals in African language and cultural contexts.
- Scenario: The authors argue that user-facing LLMs need to identify harmful or toxic content and respond appropriately, but linguistic and cultural differences change how risk is expressed and understood. The authors state that African perspectives are underrepresented in AI safety research, and that linguistic and cultural diversity requires mechanisms to operate across contexts.
- Existing data: The authors state that multilingual evaluations often translate existing resources and lack local cultural grounding; African language benchmarks typically have only a few hundred entries per language, which neither covers the diverse forms of harmful expression nor supports safety training. Predefined categories may also not transfer to these contexts.
- Four questions: RQ1 examines whether harmful intent identification is robust; RQ2 examines category discrimination and the gap between native languages and English; RQ3 examines the extent to which language ability determines refusal of unsafe requests while responding to safe requests; RQ4 examines whether multilingual safety–response fine-tuning can improve cross-lingual safety performance.
- This paper's output: Proposes AFriGuard, using a human-in-the-loop process covering 10 African languages and English, providing country contexts, paired safe/unsafe prompts, category labels and responses. It also synthesizes AFriGuard-XL with 40-country variants for training, and trains lightweight guardrails, a refusal detector, and performs supervised fine-tuning.
What related research exists?
Related work focuses on multilingual safety benchmarks, risk classification, and refusal evaluation.
The paper discusses prior work along three lines in the introduction and Related Work.
Multilingual and African-language benchmarks
- Cross-language gaps: Zhang et al. (2024), Shen et al. (2024), and Yong et al. (2025) discuss weaker protections outside English, especially in low-resource languages. The introduction also cites Peppin et al. (2025), Lemofouet et al. (2026), Alabi (2026), and Segun et al. (2025), noting the multilingual gap and insufficient African perspectives.
- Translation-based extension: MultiJail (Deng et al., 2024) extends jailbreak evaluation to ten languages, including Swahili. The authors state that its translated prompts lack local and cultural grounding.
- African-language data: TukaBench (Akinode et al., 2026) contains culturally grounded jailbreak scenarios as well as harmful and benign prompts, used to evaluate refusal. UbuntuGuard (Abdullahi et al., 2026) uses policy-aligned adversarial queries for African-language safety evaluation. The authors state that these benchmarks typically have only a few hundred entries per language.
Safety taxonomies
- Broad risk domains: JailbreakBench (Chao et al., 2024) and Rastegar et al. (2026) group harmful prompts into broad risk domains. The authors state that predefined categories may not generalize across diverse linguistic and sociocultural contexts, and point to Abdullahi et al. (2026)'s discussion of low-resource African languages.
Refusal and evaluation tools
- Boundaries of refusal: Yuan et al. (2025) and Maskey et al. (2026) examine whether models can recognize harmful intent and avoid generating harmful content. The authors relay recent views: looking only at refusal is incomplete, since surface refusals may still provide harmful information, and overly conservative models also refuse benign requests (Muhamed et al., 2026); Zhang et al. (2026) emphasize evaluating both harmful compliance and over-refusal.
- Automation and human review: guard models judge inputs or outputs according to safety policies (Dong et al., 2025; Llama Guard, Inan et al., 2023); refusal detectors judge whether a request is refused (Liu et al., 2026); LLM judges and humans are used for finer behavioral criteria (Han et al., 2024; Yong et al., 2025; Jalan et al., 2026). Wen et al. (2025) discuss abstention.
Baselines and benchmarks
- Baseline methods: Guardrail comparisons include Llama Guard, ShieldGemma, PolyGuard, DynaGuard, WildGuard, and Nemotron-3.5-Content-Safety; the refusal-detection comparison is multilingual-e5-small. Open-weight and closed-source instruction models are the evaluated subjects. Benchmark/dataset is this paper's AFriGuard; training additionally uses AFriGuard-XL.
The authors place the distinction in: the same set of culturally grounded, manually verified contexts and paired prompts simultaneously supports safe/unsafe classification, 10-category risk classification, and refusal evaluation, and is used to train African-language guardrails and refusal detectors.
How does the paper address this problem?
AFriGuard uses a unified pipeline to generate contexts, paired prompts and responses, then manually verifies them.
AFriGuard uses one pipeline to produce shared contexts, prompts, and responses for binary classification, 10-category risk classification, and refusal evaluation; these data are then used to train lightweight guardrails and refusal detectors, and to compare two supervised fine-tuning settings.
Languages, categories, and contexts
- Ten languages: Amharic, Hausa, Igbo, Oromo, Shona, Swahili, Twi, Wolof, Yoruba, Zulu, plus English. Selection was based on speaker population, online resources, typological and geographic diversity, existing data coverage, and annotator availability. Nine mainly correspond to the Anglophone sphere, and Wolof mainly to the Francophone sphere (Table 3).
- Ten-category taxonomy: Synthesized from JailbreakBench, OpenAI and Anthropic policies, discussions with two African AI ethics and governance experts, and materials from Segun et al. (2025) and Research ICT Africa. The categories are criminal and exploitation, ethical and moral risk, hate harassment and discrimination, intellectual property and content integrity, political and social manipulation, privacy and data misuse, sexual exploitation content, unsafe or high-risk advice, violence and physical harm, and systemic risk. Appendix D gives the sources; the authors state that the gray categories among them are less covered in English-centric data.
- Contexts: Grouped by the country corresponding to each language, with Grok 3 generating English contexts based on country, category, and subcategory. Three annotators who are native speakers and nationals of the respective countries independently rate realism/usefulness and cultural authenticity. In Table 7, the Good proportion for most languages is 98.8%–100%; Wolof is 84.8% for plausibility and 86.0% for cultural authenticity.
Prompts, labels, responses, and translation
- Paired intents: For each context, Grok 3 generates two safe and two unsafe English prompts, with the context fixed and the intent varied. The authors state that the target is about 2,000 per language, and the final counts differ due to quality filtering and generation refusals.
- Labels: Three paid native speakers independently label safe/unsafe. Categories are labeled by three native speakers organized by a language coordinator; when there are multiple violations, the most obvious category is taken, followed by majority vote with the coordinator. In Table 8, the safe/unsafe All-3 average is 0.988, and the 10-category average is 0.970; Oromo's 10-category All-3 is 0.898.
- Responses and translation: Grok 3 generates refusals explaining the reason for unsafe prompts, and non-refusal responses for safe prompts. Scenarios, prompts, and responses are translated into the target languages via Advanced Google Translate, then revised by annotators for language, naturalness, and intent preservation. Test-set contexts do not overlap with training or validation (Table 1).
Scale and training extension
- Splits: In Table 1, test prompts are about 982–1000 per language, validation prompts are all 20, and training prompts are 948–980; test contexts are 246–250.
- AFriGuard-XL: Country variants are synthesized from 40 countries, without manual annotation and without translation into African languages, for training and further adaptation. The main evaluation uses the manually verified AFriGuard.
Evaluation protocol and adapted models
- Classification prompts: Safe/unsafe and the 10 categories each use 5 prompt templates, with open models averaged; paid models use only 1 to reduce cost (Section 4). Reasoning mode is disabled; generation decoding is do_sample=False, temperature=0 (Appendix G).
- Refusal judge: Judges are first compared on a sample. The authors state that some judges block unsafe native-language prompts, so GPT-5.6 Sol is chosen. Each model is evaluated on 2,500 entries, then a sample is manually checked. The judge scores safety and risk handling, cultural understanding, and language quality as 1, 3, 5, or 7, and performs a safety–quality four-way classification and a behavior six-way classification (Appendices H, P).
- Self-trained models: AfroXLMR-base (270M) is used for binary classification and category classification separately, trained on the combined AFriGuard and AFriGuard-XL for 10 epochs, learning rate 5e-5, three random seeds. Refusal detection fine-tunes mmBERT-small, also 10 epochs. SFT uses LLaMAFactory full-parameter fine-tuning for 1 epoch, 46,306 entries, learning rate 1e-5; it compares structured safety instruction output with a plain setting that directly maps unsafe prompts to refusals (Appendix G).
What experiments did the paper conduct?
The authors state that guardrails are weaker than general-purpose LLMs on intent and category classification, and that low-quality native-language outputs often manifest as incidental non-assistance.
Experimental setup
- Evaluated models: Closed-source APIs include GPT-5.6 Luna, Gemini 3.6 Flash, Gemini 3.5 Flash, Claude Opus 5, and DeepSeek-V4-Flash. Open weights include the Gemma 4 series, Llama 3.1/3.2/3.3, Qwen3.5 and Qwen2.5, Tiny Aya Earth/Global, aya-expanse-32b, GPT-OSS 20B, as well as AfriqueQwen, AfriqueGemma, and Sunflower. Guardrails include ShieldGemma 9B/27B, Llama Guard-3 1B/8B, WildGuard, DynaGuard 1.7B/4B/8B, PolyGuard-Qwen-Smol, and Nemotron-3.5-Content-Safety. The main text writes Sunflower as Qwen3.5 27B, while Figure 5 and the appendix figures write Qwen3.8 27B.
- Data and metrics: The main evaluation uses AFriGuard native languages and English translations, with unseen test contexts (Table 1). The classification metric is weighted F1. The lower panel of Figure 3 splits errors into over-flagging (safe misclassified as unsafe) and missed-harm (unsafe misclassified as safe); the main text does not give specific rates for each model. Responses use three GPT-5.6 Sol scores, normalized to 0–100 (Table 2).
- Prompts and judging: Open models average over 5 prompts, paid models use 1 (Section 4). Refusal-related evaluation uses 2,500 entries per model. Manual review covers Amharic, Swahili, and Yoruba, 150 entries per reviewer, of which 50 are shared by all three (Appendix I).
- Fine-tuning: The main text focuses on comparing Tiny Aya Earth and AfriqueQwen3.5 4B (50L, Inst); Appendix Figure 10 additionally has Tiny Aya Global and Qwen3.5 4B. The refusal-detection comparison is multilingual-e5-small.
Main results
Ten-language average weighted F1, according to Appendix Figure 12 (binary) and Figure 13 (ten-category). Paid closed-source models use 1 prompt, the rest average over 5 prompts; the figure captions do not restate this row by row.
Swipe horizontally to read the table
Model Prompts Native binary English binary Native ten-category English ten-category GPT-5.6 Luna 1 93.03 94.10 58.89 61.28 AfriqueQwen3.5 9B-50Langs-v1 5 90.64 94.22 45.64 52.47 Sunflower-Qwen3.8-27B 5 59.92 68.99 55.34 58.02 ShieldGemma-9B 5 53.07 82.16 39.51 53.10 WildGuard 5 40.88 92.95 6.94 21.70 Llama Guard-3-1B 5 29.29 29.29 1.34 1.34 The 9B row in the table corresponds to the main text's AfriqueQwen3.5 9B (50L, Inst), whose 90.64 matches the main text's 90.6%. Other models in Figures 12 and 13 are omitted, such as Claude Opus 5, DeepSeek-V4-Flash, the Gemma 4 series, Tiny Aya, DynaGuard, PolyGuard, and Nemotron.
- The authors state that closed-source models are overall stronger, but state that DeepSeek-V4-Flash has a gap of about 15%; in Figure 12 its ten-language average is 81.88 for native languages and 89.52 for English. The authors state that only African-pretrained models show a gap where native languages are higher than English, and name AfriqueQwen3.5 4B (50L, Inst); in Figure 12 the AfriqueQwen3.5 4B-50Langs row is 64.88 for native languages and 55.15 for English. The paper does not state whether that row is the Inst version.
- The authors state that nearly half of the guardrail models have F1 at or below 53.10%. The native-language averages of the guardrails listed in Figure 12 all do not exceed 53.07; ShieldGemma-27B is 48.27, lower than 9B. The authors state that 9B is higher than the much larger 27B.
- The authors state that on the ten categories, closed-source and guardrail models have F1 below 55.10%, and state that GPT-5.6 Luna and Gemini 3.6 Flash are close to 58.9%. In Figure 13, Gemini 3.6 Flash's native-language average is 55.63. The authors state that systemic risk and ethical risk repeatedly become low-scoring points in native languages; the Worst column of Figure 5 also includes Sexual, Privacy, IP, Violence, Hate, and Criminal. LlamaGuard 3 8B's Gap is +0.6.
Whether responses are appropriate
- Three scores: In Table 2, GPT-5.6 Luna's native-language Safety & Risk, Cultural, and Linguistic are 96.7, 93.4, and 86.2, and English is 98.8, 96.7, and 99.0. The authors state that its native-language average is 92.1%, and the strongest African-adapted model is about 56%. In the same table, AfriqueQwen3.5 9B's native-language three scores are 55.1, 67.3, and 46.3; Llama 3.1 8B's language quality is 8.4 for native languages and 74.1 for English; GPT-OSS 20B's native-language language quality is 6.4.
- Behavior distribution: In Figure 4, GPT-5.6 Luna's native-language HH is 96, INA is 1, ARR is 52, and ASC is 45. Llama 3.1 8B's native-language LL is 92 and INA is 78, and English HH is 73 and ARR is 50. Gemma 4 E4B's native-language INA is 55 and LL is 66. The authors state that English responses more often have both high safety and high language quality; much non-assistance comes from language degradation, incompleteness, or no response, rather than refusing after recognizing unsafety.
- Human review and blocking: In Table 11, Yoruba safety/quality agreement is 393/450 (0.87), and behavior agreement is 404/450 (0.90); Amharic and Swahili agreement rates are 0.92–0.96. The authors state that overall agreement exceeds 87%. In Table 9, Claude Fable 5 blocks 408/576 (70.83%) of native-language unsafe prompts, Gemini 3.8 Flash blocks 354/976 (36.27%), and GPT-5.6 Sol blocks 1/928 (0.11%).
Lightweight guardrails and refusal detection
- Encoder guardrails: The authors state that AfroXLMR-Guard (270M) is comparable to guardrail LLMs such as ShieldGemma on binary and category tasks, and is higher in English than in African languages. The abstract states it is comparable to models up to 30 times larger. The columns of Figure 6 cannot be reliably aligned in plain text, so cell numbers are not transcribed.
- Refusal detection: Figure 7 labels AfriGuard-mmBERT-small-rd's Avg. as 0.941, and multilingual-e5-small as 0.654. The abstract states an average improvement of 43.9%. The main text states that the former exceeds 90 F1 in both English and African languages, and E5 is below 70 F1. Appendix L discusses E5's 512-token context and lack of African-language coverage.
Supervised fine-tuning
- Binary classification: The main text states that Tiny Aya Earth's plain SFT raises the native-language average weighted F1 from 75.5% to 86.8%, and structured SFT is 86.4%. In Figure 10, the native-language averages are base 0.755, plain 0.868, and instruction 0.837. The main text states that AfriqueQwen3.5 4B's plain SFT raises English translated prompts from 41.8% to 82.0%; in Figure 10, English is base 0.399 and plain 0.820, and native languages are base 0.418 and plain 0.519.
- Categories and behavior: In Figure 10, Tiny Aya Earth's native-language category average goes from 0.277 to plain 0.308 and instruction 0.288; English goes from 0.387 to 0.363 and 0.362. AfriqueQwen's native-language category goes from 0.236 to plain 0.166 and instruction 0.322. The authors state that for this 4B model, plain mainly improves English binary classification but harms category classification. In Table 12, its native-language Safety & Risk goes from 50.5 to 38.5 for Inst FT and 73.9 for Plain FT. Tiny Aya Earth goes from 50.3 to 66.4 and 68.7. The authors state that SFT with safety labels benefits Tiny Aya Earth but harms this 4B model, and likewise for English fine-tuning.
Other ablations and analyses
- Context verification: Wolof plausibility is 84.8% and authenticity 86.0%; for the other languages, Table 7 is mostly 98.8%–100%.
- Annotation agreement: safe/unsafe All-3 average is 0.988, and 10-category is 0.970; Oromo 10-category is 0.898 (Table 8).
- Figure 5 Gap: GPT-5.6 Luna is 2.4, Llama 3.1 8B is 24.9, and DeepSeek v4 Flash is 11.2.
- The abstract states that F1 for appropriate safety behavior is below 60%; that sentence does not specify which table it corresponds to.
- Training is 46,306 entries, 1 epoch; guardrails and refusal detectors are each 10 epochs, three random seeds. The paper does not report variance across seeds in the main results.
What are some points that can be further explored?
The authors leave correlation analysis, XL evaluation, refusal subsets, and training hyperparameters for future work.
Limitations and future directions noted by the authors
- Relationship among the three evaluations: Due to space and scope, the correlations among the LLM judge, sampled human evaluation and the refusal detector were not analyzed in detail; they are treated only as complementary perspectives (Limitations).
- Language coverage: The main evaluation is on the manually verified AFriGuard; the 40+ language variants of AFriGuard-XL were not evaluated as comprehensively and are left for future work. A detailed comparison of the two data versions is also left for future work (Limitations).
- Guardrails and alignment: The authors state that these experiments are a starting point rather than a complete solution, and that dedicated research is needed on how to further improve guardrails, the success and failure patterns introduced at each stage of training and alignment, and generalization and robustness across languages, safety categories and model architectures (Limitations).
- Scope of refusal evaluation: Due to the computation and cost of the LLM judge, the refusal evaluation covers only a selected subset, and therefore cannot represent the refusal behavior of all models in other tasks; it can be expanded in future when resources allow (Limitations).
- Hyperparameters and seeds: Fine-tuning could also involve dedicated hyperparameter optimization and more random seeds; future work should examine the sensitivity of safety performance to training configuration and initialization (Limitations).
Experimental coverage
- The main evaluation languages are the 10 African languages in Table 3 and their English translations; Table 1 gives the train/val/test sizes of prompts and contexts for each language, and test contexts do not overlap with training or validation.
- The classification experiments include the guardrails listed in Section 4, open-weight and closed-source API models; Appendix Figures 12 and 13 give per-language weighted F1 for binary classification and 10-class classification. Open models are averaged over 5 prompts, paid models over 1.
- The judge for the response evaluation is GPT-5.6 Sol, with 2,500 entries per model; human agreement rates are reported for Amharic, Swahili and Yoruba (Table 11). The judge screening also ran Claude Fable 5 and Gemini 3.8 Flash (Table 9).
- The self-trained models are an AfroXLMR-base 270M guardrail and an mmBERT-small refusal detector; the SFT main text compares Tiny Aya Earth and AfriqueQwen3.5 4B (50L, Inst), and Appendix Figure 10 additionally includes Tiny Aya Global and Qwen3.5 4B. Training uses the training and validation splits of AFriGuard and AFriGuard-XL.
- The paper does not report correlation coefficients among the LLM judge, humans and the refusal detector; the Limitations state that the refusal behavior evaluation does not include all models from the classification experiments.
Summarize the main content of the paper
AFriGuard evaluates safety classification and refusal in 10 African languages, and trains guardrails and detectors.
AFriGuard uses 10 African languages and English, and simultaneously examines harmful intent, risk categories, and whether responses are appropriate.
- Problem: The authors break safety into three steps: detecting risk, judging the category, and responding appropriately. They argue that translation-based multilingual data and smaller African-language benchmarks lack local context and are also hard to use for training.
- Approach: A human-in-the-loop pipeline first defines a 10-category taxonomy, then uses Grok 3 to generate country contexts, paired safe/unsafe prompts, and responses, which are translated into the target languages and then manually revised. Test contexts do not overlap with training. AFriGuard-XL is additionally synthesized from 40 countries for training.
- Classification: In Appendix Figure 12, GPT-5.6 Luna's ten-language average binary weighted F1 is 93.03 for native languages and 94.10 for English; AfriqueQwen3.5 9B-50Langs-v1 is 90.64/94.22; ShieldGemma-9B is 53.07/82.16; Llama Guard-3-1B is 29.29/29.29. On the ten categories, in Figure 13, GPT-5.6 Luna's native-language average is 58.89, Sunflower-Qwen3.8-27B is 55.34, and English is 58.02.
- Responses: The authors state that failures on unsafe prompts are often not explicit refusals but incidental non-assistance caused by insufficient language quality. In Table 2, GPT-5.6 Luna's native-language language quality is 86.2, and Llama 3.1 8B is 8.4. In Figure 4, the latter's native-language INA is 78 and LL is 92.
- Adaptation: The abstract states that lightweight guardrails can be comparable to models up to 30 times larger, and the refusal detector improves by an average of 43.9%. In Figure 7, AfriGuard-mmBERT-small-rd's Avg. is 0.941, versus 0.654 for the comparison. The authors state that supervised fine-tuning can improve overall safety performance, but in Table 12 structured fine-tuning lowers AfriqueQwen3.5 4B's native-language Safety & Risk from 50.5 to 38.5, while plain fine-tuning raises it to 73.9.
- Authors' conclusion: Dedicated guardrails lag behind general-purpose open-source and closed-source LLMs; cross-language gaps come from over-flagging or missing harm. Language ability and safety performance are entangled, which may overestimate refusal ability in low-resource languages. AFriGuard is used to put intent recognition, harm classification, and refusal generation into the same training setup.