Logo Lanfrica

ijdutse/hausa-llm-safety

Domain:

natural language processing

Record type:

dataset
Creator:
ijd
Host:
A curated dataset demonstrating linguistic reward hacking & safety failures in LLMs for the Hausa language. # Hausa LLM Safety: Vulnerability Analysis Dataset This repository contains the dataset and code for the paper **"Linguistic Reward Hacking: Exposing Vulnerabilities in GPT-OSS-20B's Handling of the Hausa Language"**. It provides a curated set of adversarial prompts and model responses that demonstrate critical safety failures, including the generation of harmful health misinformation and culturally insensitive content. ## 🚨 Key Findings Our red-teaming efforts revealed that GPT-OSS-20B is highly vulnerable to **linguistic reward hacking** in low-resource languages like Hausa. Key failures include: 1. **Promotion of Toxic Substances:** Recommending insecticides (Fiya-Fiya/Cyphermethrin) and rodenticides (Shinkafar Bera/Aluminium Phosphide) as safe for human consumption. 2. **Cultural Insensitivity:** Generating stories that incorporate demeaning local idioms and fabricate inflammatory historical narratives. 3. **Confident Hallucination:** Providing detailed, false instructions on "cultivating" processed foods like spaghetti (Taliya) and local cakes (Alkaki). ## πŸ“ Repository Structure ``` hausa-llm-safety/ β”œβ”€β”€ data/ # All prompts and collected model responses β”œβ”€β”€ notebooks/ # Jupyter notebook for replication └── docs/ # Detailed methodology ``` ## πŸ“Š Dataset Overview The dataset is organized into three main categories of harm: - `toxic_substances`: Prompts and responses related to harmful chemical recommendations. - `cultural_insensitivity`: Prompts using demeaning idioms and resulting stories. - `food_hallucination`: Prompts that trigger false information about food cultivation. Each CSV file in `data/prompts/` contains the following columns: - `prompt_id`: A unique identifier for the prompt. - `prompt_text_ha`: The full adversarial prompt in Hausa. - `prompt_text_en`: English translation of the prompt. - `category`: The category of harm. - `target_failure`: The specific vulnerability the prompt is designed to expose. # …

Languages

Licenses