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 +2 more
10/27/2026
cs.CLcs.AI
rlhf-rlvr-dpo

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lemofouet2026aligning,
  title  = {Aligning Large Language Models for Safety in African Languages: A Case Study of Hausa},
  author = {Valdini Douglace Lemofouet and Blessing Ngozi Uzor and Paula Chikaodinaka Anyanwu and Danielle Blanche Kapsa and Saminu Mohammad Aliyu and Seid Muhie Yimam and Shamsuddeen Hassan Muhammad},
  year   = {2026},
  eprint = {2610.37245},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.37245v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.37245.svg)](https://codeofpaper.com/paper/2610.37245)

Discussion