Arabic Dataset for LLM Safeguard Evaluation

Yasser Ashraf, Yuxia Wang, Bin Gu, Preslav Nakov, Timothy Baldwin
10/22/2024
cs.CL

No official code found. Best implementation: mbzuai-nlp/Arabic_safety_evaluation (6 stars, last commit 2025-06-11).

Abstract

The growing use of large language models (LLMs) has raised concerns regarding their safety. While many studies have focused on English, the safety of LLMs in Arabic, with its linguistic and cultural complexities, remains under-explored. Here, we aim to bridge this gap. In particular, we present an Arab-region-specific safety evaluation dataset consisting of 5,799 questions, including direct attacks, indirect attacks, and harmless requests with sensitive words, adapted to reflect the socio-cultural context of the Arab world. To uncover the impact of different stances in handling sensitive and controversial topics, we propose a dual-perspective evaluation framework. It assesses the LLM responses from both governmental and opposition viewpoints. Experiments over five leading Arabic-centric and multilingual LLMs reveal substantial disparities in their safety performance. This reinforces the need for culturally specific datasets to ensure the responsible deployment of LLMs.

View on arXivView PDF

Code Implementations(1)

A Benchmark and Evaluation framework for evaluating Arabic LLM safeguards

62Python, Jupyter NotebookOct 22, 20241 years ago

Similar Papers

Cite this paper

@article{ashraf2024arabic,
  title  = {Arabic Dataset for LLM Safeguard Evaluation},
  author = {Yasser Ashraf and Yuxia Wang and Bin Gu and Preslav Nakov and Timothy Baldwin},
  year   = {2024},
  eprint = {2410.17040},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17040v2}
}

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/2410.17040.svg)](https://codeofpaper.com/paper/2410.17040)

Discussion