Magpie parallel core — English · Hinglish · Devanagari
The parallel red-team + over-refusal prompt set behind Magpie, a study that prices the
robustness of Cohere Labs' Tiny Aya as attacker cost (Lexsi Hackathon, Track 2a). Every seed
appears in three matched forms — English, Hinglish (romanized Hindi-English code-mixing) and
Devanagari Hindi — so a per-form difference in model behaviour is the form, not the content.
(The repo name predates the final build: this is the v2 core, translated with Aya Expanse 8B.)
Contents
data/core.jsonl — 1,200 records = 400 seeds × 3 forms.
| English | Hinglish | Devanagari | total | |
|---|---|---|---|---|
| harmful | 200 | 200 | 200 | 600 |
| benign / over-refusal | 200 | 200 | 200 | 600 |
- Harmful seeds: HarmBench (standard) and StrongREJECT, stratified across nine harm categories
(cyber, harassment/hate, illegal goods, misinformation, non-violent crime, sexual, violence,
weapons/bio/chem, other). - Benign seeds (over-refusal): XSTest-safe and OR-Bench-Hard — safe prompts that look risky,
to measure whether a model refuses legitimate users. - Each record carries
prompt_id,parallel_id(links the three forms of one seed),form
(en/hing/hi-Deva),category,source,is_harmful,text, andcovariates— the
source benchmark's own category, and on translated rowstranslated_from(the English source)
andcmi(code-mixing index).
native_review_15pct.csv — a 132-row native-speaker review sheet (~15%, stratified by form ×
category) pairing each translation with its English source, for an ok / fix pass.manifest.json, curation_report.json — counts, provenance, and curation (dedup) report.
No model completions are included — harmful completions from the study are never released.
How it was built
Translated in-kernel on Kaggle with Aya Expanse 8B (no paid API, no data leaving the kernel):
Hinglish is requested as natural romanized code-mixing "the way people type", Devanagari as
standard Hindi script. Native-speaker verification of the review sheet is the quality gate.
Honest caveat: the heuristic CMI tagger under-reads code-mixing (its small romanized-Hindi lexicon
mislabels out-of-lexicon Hindi words as English), so treat cmi as a noisy covariate.
What it was used for
In Magpie, the same 120 harmful prompts per form showed that a cheap refusal-lexicon judge reverses
the cross-lingual ranking: it reported Devanagari as 4× easier to jailbreak than English and
Hinglish as the safest form, while the HarmBench content judge found Devanagari ≈ 9× English
(0.28 vs 0.03) and Hinglish ≈ English (0.03). See the study page.
Access and licence
Gated: prompts are released for safety research under the terms above; harmful completions and
attacked model weights are not released. The dataset is offered under CC-BY-NC-4.0 for
non-commercial research (translations were produced with a CC-BY-NC model); the source prompts
remain under their original licences — HarmBench, StrongREJECT, XSTest, OR-Bench.
Links
- Study (article + results): https://huggingface.co/spaces/shahanxd/magpie
- Code and full results: https://github.com/shahanxd/magpie
- Hardened model evaluated in the study: https://huggingface.co/shahanxd/fire_rr