arXiv:2610.37245cs.CLOct 2026

Manuscript Offprint

arXiv:2610.37245

Aligning Large Language Models for Safety in African Languages: A Case Study of Hausa

Valdini Douglace Lemofouet, Blessing Ngozi Uzor, Paula Chikaodinaka Anyanwu, Danielle Blanche Kapsa, Saminu Mohammad Aliyu, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Safety alignment research for large language models (LLMs) remains concentrated on high-resource languages, leaving open how existing alignment methods perform in low-resource, culturally distinct settings. We study this question for Hausa, a language spoken by more than 200 million people across West Africa. We introduce HausaSafeLM, one of the first Hausa safety preference dataset, built from 10,000 prompts derived from PKU-SafeRLHF: 3,000 human-corrected (gold) and 7,000 machine-translated (silver) examples spanning six harm macro-categories. Using Qwen2.5-7B-Instruct, we compare supervised fine-tuning (SFT) and SFT followed by Direct Preference Optimization (DPO) under both data regimes, evaluating on 500 harmful and 200 benign Hausa prompts. We find that the untuned base model appears highly safe by refusal-rate metrics alone, but this reflects limited Hausa generation ability rather than genuine alignment: its refusals are almost uniformly low quality. SFT improves both refusal fluency and precision and benefits substantially from the larger, noisier silver-tier data, while DPO sharpens refusal precision but comes at a steep, largely data-invariant cost to linguistic quality. No single configuration jointly maximizes safety, helpfulness, and fluency. Our results suggest that current alignment techniques teach models when to refuse more readily than how to do so fluently in underrepresented languages, and that refusal-rate metrics alone are an unreliable signal of safety in low-resource settings.

1 Introduction

Large language models are increasingly used by Africans as a personal assistant, yet the safety alignment techniques that govern their behavior are developed and validated almost exclusively on English and other high-resource languages (Wang et al., 2024; Ouyang et al., 2022). An LLM is safe when it avoids harmful, toxic, and dangerous content while remaining useful (Ouyang et al., 2022), but what counts as harmful is not culturally invariant, and the mechanisms that produce refusal behavior in English do not automatically transfer to other languages. Prior work has demonstrated that translating harmful prompts into low-resource languages can bypass safety filters trained primarily on English data (Yong et al., 2023), that code-switching and synthetic-language prompting can cause models to “forget” safety constraints even without any adversarial fine-tuning (Upadhayay and Behzadan, 2025), and that LLMs exhibit systematically higher toxicity and lower refusal quality in low-resource languages than in high-resource ones (Shen et al., 2024).

However, there has been little study of safety alignment for Hausa, a language spoken by over 200 million people primarily in Northern Nigeria, Niger and Ghana (Muhammad et al., 2025). This gap matters not only because of the scale of the language, but because it allows us to ask a more fundamental question about how alignment methods behave under limited multilingual representation.

We explore this question in a controlled comparison of alignment strategies for Hausa, organized around four research questions:

• RQ1: How does the base Qwen2.5-7B-Instruct model behave when evaluated on harmful Hausa prompts?

• RQ2: How does standard supervised fine-tuning (SFT) compare to SFT combined with preference optimization (SFT+DPO) in improving safety behavior in Hausa?

• RQ3: What alignment tax emerges between safety, linguistic fluency, and helpfulness across alignment strategies?

• RQ4: Does data quality matter more than data quantity for safety alignment in Hausa?

Our contributions are:

• HausaSafeLM, an Hausa safety preference dataset, derived from PKU-SafeRLHF (Ji et al., 2024) and organized into a human-verified gold tier (3,000 examples) and a larger, automatically translated silver tier (7,000 examples), supporting both SFT and DPO training.

• A controlled comparison of SFT and SFT+DPO, each trained under gold-only and gold+silver data regimes, evaluated on refusal precision, helpfulness, and linguistic quality rather than refusal rate alone.

• Evidence that refusal-rate metrics saturate immediately and fail to distinguish a genuinely aligned model from one that is simply too weak in the target language to comply with harmful requests.

• An analysis of when additional (noisier) training data helps: SFT benefits substantially from the larger silver tier, while DPO does not, because near-duplicate safe-vs-safe preference pairs carry little contrastive signal for a preference-optimization objective.