Safe from Fine-Tune to Phone: evaluation, calibration and circuit sets
Lexsi AI Safety and Alignment Hackathon, Track 2. Team: Sushovit Nanda and Manish Shaw. Project: Safe from Fine-Tune to Phone. Claim: Benign medical LoRA doubles Tiny Aya Global's attack success (18.2 % to 36.3 %); a run-time steering vector cuts it to 26.3 % and survives GGUF quantization.
All repositories of this project are public and un-gated. No model completion on a harmful prompt is published anywhere; prompt sets carry prompts and labels only, and evaluation logs are text-free records. Write-up, code and reproduction instructions: https://github.com/SushovitNanda/Safe-from-Fine-Tune-to-Phone. Collections: models, datasets.
This repository holds every evaluation set other than ClinicSafe-Hi (which has its own repository, SushiOrbit/clinicsafe-hi): Aya Red-teaming test and dev splits in English and Hindi with the Hinglish rewrites; XSTest safe prompts in English with post-edited Hindi and Hinglish versions; MedMCQA test (500), dev (300) and the 995-item selection set; the steering calibration pairs; the circuit contrast pairs; the fidelity-50 subset; the fixed dev-pass ids; the 300-item hand-label sample with its rubric outputs (labels only, no answers, under hand_labels/); and the leak-check and token-matching reports (reports/). Schema of every prompt row: id, lang (en|hi|hinglish), split (test|dev|calib), set, source, category, twin_id, text, gloss_en, origin, source_id.
from datasets import load_dataset
ds = load_dataset("SushiOrbit/tinyaya-safety-eval", "aya_en_test")
What is here
Prompts and labels only. No model completions are published anywhere.
| config | file | rows | sets | languages |
|---|---|---|---|---|
aya_en_test |
prompts.jsonl |
200 | harmful_general: 200 | en: 200 |
aya_en_dev |
prompts.jsonl |
50 | harmful_general: 50 | en: 50 |
aya_hi_test |
prompts.jsonl |
200 | harmful_general: 200 | hi: 200 |
aya_hi_dev |
prompts.jsonl |
50 | harmful_general: 50 | hi: 50 |
aya_hinglish_test |
prompts.jsonl |
150 | harmful_general: 150 | hinglish: 150 |
aya_hinglish_dev |
prompts.jsonl |
50 | harmful_general: 50 | hinglish: 50 |
xstest_en_test |
prompts.jsonl |
150 | benign_general: 150 | en: 150 |
xstest_en_dev |
prompts.jsonl |
100 | benign_general: 100 | en: 100 |
xstest_hi_test |
prompts.jsonl |
150 | benign_general: 150 | hi: 150 |
xstest_hi_dev |
prompts.jsonl |
100 | benign_general: 100 | hi: 100 |
xstest_hinglish_test |
prompts.jsonl |
150 | benign_general: 150 | hinglish: 150 |
xstest_hinglish_dev |
prompts.jsonl |
100 | benign_general: 100 | hinglish: 100 |
medmcqa_test_500 |
prompts.jsonl |
500 | medmcqa: 500 | en: 500 |
medmcqa_dev_300 |
prompts.jsonl |
300 | medmcqa: 300 | en: 300 |
medmcqa_dev_1000 |
prompts.jsonl |
995 | medmcqa: 995 | en: 995 |
calibration |
calib_en_only_harmful.jsonl |
100 | harmful_general: 100 | en: 100 |
calibration |
calib_en_only_harmless.jsonl |
100 | benign_general: 100 | en: 100 |
calibration |
calib_trilingual_harmful.jsonl |
99 | harmful_general: 99 | en: 33, hi: 33, hinglish: 33 |
calibration |
calib_trilingual_harmless.jsonl |
99 | benign_general: 99 | en: 33, hi: 33, hinglish: 33 |
circuit_pairs |
en.jsonl |
119 | contrast pairs | en: 119 |
circuit_pairs |
hi.jsonl |
33 | contrast pairs | hi: 33 |
circuit_pairs |
hinglish.jsonl |
33 | contrast pairs | hinglish: 33 |
circuit_pairs_v2 |
en.jsonl |
64 | contrast pairs | en: 64 |
circuit_pairs_v2 |
hi.jsonl |
90 | contrast pairs | hi: 90 |
circuit_pairs_v2 |
hinglish.jsonl |
73 | contrast pairs | hinglish: 73 |
fidelity50 |
prompts.jsonl |
50 | benign_general: 25, harmful_general: 25 | en: 18, hi: 16, hinglish: 16 |
Every record uses one schema (JSONL, UTF-8):
{"id", "lang" (en|hi|hinglish), "split" (test|dev|calib), "set" (harmful_general|harmful_clinical|benign_general|benign_clinical|medmcqa),
"source" (aya_redteaming|xstest|clinicsafe_hi|medmcqa|alpaca), "category", "twin_id", "text", "gloss_en", "origin", "source_id"}
origin ∈ {original, indictrans2_postedited, adapted, rewritten, replaced}. ClinicSafe-Hi harmful items link to their benign twin through twin_id.
Other sets
- Aya Red-teaming EN/HI (CohereForAI/aya_redteaming, Apache-2.0): 200 test + 50 dev per language, stratified by harm category;
Hinglish: 150 test + 50 dev rewrites of the Hindi items (same intent, samesource_id). - XSTest safe prompts (Röttger et al.): 150 English test (stratified by type), 100 English dev; Hindi via IndicTrans2 + post-editing
(broken homonym/figurative items replaced with clinical look-alikes,origin: replaced); Hinglish rewrites. - MedMCQA (openlifescienceai/medmcqa) validation questions: 500 test + 300 dev, one-token answer format, disjoint from fine-tuning.
- Calibration pairs (steering): English-only (100 harmful Aya / 100 harmless Alpaca) and three-language (33 per language per side); all
outside every test set.
Leak check
CuratorKIT-style exact + MinHash + multilingual-embedding dedup between the fine-tuning sets and every evaluation set; report in leak_report.json of the data package.
Licence and citation
Prompts from Aya Red-teaming (Apache-2.0), XSTest (CC-BY-4.0), MedMCQA (Apache-2.0), Alpaca-cleaned (CC-BY-NC-4.0); ClinicSafe-Hi items
CC-BY-NC-4.0. Everything derived from Tiny Aya in this project is non-commercial and research-only.
Provenance of drafted items
The Hindi and Hinglish rewrites, the XSTest Hindi post-edits and the ClinicSafe-Hi items were drafted by AI assistants from written specifications (Datasets/interim/clinicsafe_hi/SPEC.md, HINGLISH_STYLE.md) and reviewed by both authors; Qwen3Guard prompt moderation covered all 612 ClinicSafe-Hi items, with 93 disagreements reviewed and 17 items fixed. The 300 hand labels used to validate the judges were AI drafts reviewed and approved by both authors. See DECISIONS.md for dates.