AK_QMUL at ArGuard Shared Tasks: A Single Fine-Tuned JAIS for Arabic Harmful-Prompt Detection
Organizations: Queen Mary University of London
Abstract
We present AK_QMUL's submissions to the ArGuard-2026 shared tasks on Arabic harmful-prompt detection: a binary safe/unsafe task (B1) and a seven-way harm-domain task (B2). Both submissions use one backbone -- JAIS-6.7B fine-tuned with 4-bit QLoRA and a linear classification head over its last-token representation. For B1 we train a four-way head that factors the label by dialect register {safe, unsafe} x {MSA, other}, we augment the training fold with MSA prompts from AraSafe, and decode with a plain argmax to score safe/unsafe. For B2 we fine-tune the same backbone as a seven-way classifier and average the softmax outputs of five random seeds. Both submissions ranked first on their track, with macro-F1 0.984 on B1 and 0.790 on B2. We report results by dialect and by class: on B1 the model is accurate across all six dialects (93.6--99.8%) and its predicted unsafe rate tracks the true rate closely; on B2 six of the seven classes reach F1 between 0.73 and 0.98, with the residual error concentrated in the Bully class, which overlaps semantically with harassment and harm-to-others.
Figures & tables
| B1 | B2 | |
|---|---|---|
| Head (classes) | 4 | 7 |
| Label scheme | safety register | harm domain |
| Augmentation | AraSafe (safe MSA) | — |
| Seeds | 1 | 5 (averaged) |
| Decode | argmax binary | argmax of mean |
| Dialect | Unsafe% | Pred.% | Acc.% | |
|---|---|---|---|---|
| MSA | 5331 | 36.6 | 37.1 | 98.8 |
| Syrian | 1030 | 71.7 | 71.7 | 97.7 |
| Egyptian | 438 | 91.3 | 91.6 | 99.8 |
| Palestinian | 348 | 74.7 | 74.4 | 99.1 |
| Moroccan | 469 | 73.8 | 75.9 | 93.6 |
| Algerian | 193 | 79.3 | 80.3 | 97.9 |
| Head | AraSafe | Macro-F1 |
|---|---|---|
| 2-class (safe/unsafe) | yes | 0.983 |
| 4-way {safety} {register} | no | 0.624 |
| 4-way {safety} {register} | yes | 0.984 |
| Class | MSA | Syrian | Egyptian | Palestinian | Moroccan | Algerian | All |
|---|---|---|---|---|---|---|---|
| adult_content | 0.98 | 0.98 | 1.00 | 0.98 | – | 0.95 | 0.98 |
| harassment | 0.81 | 0.91 | 0.96 | 0.89 | 0.90 | 0.93 | 0.86 |
| hate_speech | 0.67 | 0.91 | 0.99 | 0.98 | 0.92 | 0.91 | 0.84 |
| self-harm | 0.69 | 0.96 | 0.96 | 0.88 | 0.89 | 0.95 | 0.80 |
| FraudandDeception | 0.63 | 0.96 | 0.88 | 0.81 | 0.88 | 0.83 | 0.74 |
| harm-to-others | 0.64 | 0.87 | 0.92 | 0.89 | 0.86 | 0.67 | 0.73 |
| Class | P | R | F1 | |
|---|---|---|---|---|
| adult_content | 1311 | 0.976 | 0.992 | 0.984 |
| harassment | 674 | 0.818 | 0.905 | 0.859 |
| hate_speech | 351 | 0.928 | 0.775 | 0.845 |
| self-harm | 880 | 0.773 | 0.836 | 0.803 |
| FraudandDeception | 689 | 0.698 | 0.791 | 0.741 |
| harm-to-others | 1166 | 0.669 | 0.792 | 0.726 |
LLM Safety Evaluation
Large language model safety evaluation measures harmful compliance, robustness, and safe utility across prompts, tools, and real-world tasks.
See all 258 papers