Safety-drift repair: results, logs and evaluation splits
Results, logs and the exact evaluation prompts behind the paper Repairing Safety Drift Without Retraining in Small Fine-Tuned Language Models (code: https://github.com/empeje/lexsi-ai-hackathon; model: https://huggingface.co/azizamm/qwen2.5-1.5b-instruct-gsm8k-safety-drift).
Contents
data/eval_splits.json- the exact prompts and indices used: 200 harmful prompts, 100 AdvBench prompts, 200 XSTest unsafe, 250 XSTest safe, 150 plain harmless prompts, and the indices of the 150 GSM8K test questions.results/qwen/final/*.json- Qwen2.5-1.5B-Instruct: aligned, drifted and ten repair configurations, each with the six metrics, Wilson intervals, sample sizes and per-prompt 0/1 outcomes (flags). Metric names:refusal_*= refusal rate on harmful sets (higher is safer);overrefusal_*= refusal rate on safe sets (lower is better);gsm8k_acc= exact-match accuracy.results/qwen/first_pass/*.json- the earlier, smaller-sample runs (baseline, fine-tune, ReSta sweep, SafeTune method comparison, targeted repairs).results/qwen/locate/- per-layer refusal-direction analysis (separability, gap, causal ablate/add test) for the aligned and drifted model.results/tiny_aya/summary.json- Tiny Aya Global results (six configurations) and locate summary. These values were transcribed from notebook output and checked by zoom; per-prompt outcomes were not retrieved (see thenotefield).logs/- training and evaluation logs from the local Qwen runs.
Licenses and sources
The result files and logs are our own work (CC BY 4.0 is intended for them). The prompt splits come from public sources and keep their original terms: XSTest (Röttger et al., CC BY 4.0), AdvBench (Zou et al., MIT), GSM8K (Cobbe et al., MIT), and the harmful/harmless splits compiled by Arditi et al. (2024) in andyrdt/refusal_direction, whose per-source licenses apply. Check those terms before redistributing the prompts commercially. This dataset contains harmful requests taken from public benchmarks; it contains no model completions to them.
Caveats
Refusal is detected by a phrase match, a crude proxy. Samples are small (100-250 prompts per metric). Tiny Aya covers 6 of 12 planned configurations because SafeDelta exhausted CPU memory. SafeDelta ran in SafeTune's data-free mode.