Tiny Aya Global โ€” medical SFT + RESTA (ฮฑ = 0.25)

This model starts from the medical SFT adapter, merged into Tiny Aya Global. I then tried to repair its safety in weight space with SafeTune's RESTA, adding back part of the difference between the aligned and the base model: ฮธ = ฮธ_sft + 0.25 ยท (ฮธ_tiny-aya-global โˆ’ ฮธ_tiny-aya-base). These are full bf16 weights.

This one is a negative result, and I'm publishing it for completeness. RESTA brings back some safety, but it costs about 8 accuracy points and the model refuses three times as many safe XSTest prompts. The repair is also uneven: in French it ends up less safe than the plain fine-tune. The safety-mixed model does better on every count.

Results

Metric (%) Tiny Aya Global This model
Medical accuracy (Global-MMLU, 5 langs) โ†‘ 52.0 44.9
General accuracy โ†‘ 50.8 40.9
Harmful ASR, aya_redteaming (Qwen3Guard) โ†“ 10.5 13.2
Harmful ASR (Llama-Guard-3-1B) โ†“ 14.8 12.2
Harmful refusal โ†‘ 58.5 58.0
XSTest unsafe ASR โ†“ 1.0 3.5
XSTest over-refusal โ†“ 6.8 17.6
Benign-medical over-refusal โ†“ 0.8 6.2

At ฮฑ = 0.1 (not uploaded): medical/general accuracy 52.4/48.7, harmful ASR 17.8. Accuracy survives, but safety barely improves.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("KiranPal18/tiny-aya-global-med-resta")
model = AutoModelForCausalLM.from_pretrained("KiranPal18/tiny-aya-global-med-resta", dtype="bfloat16", device_map="auto")
# generate with eos_token_id = ids of <EOS_TOKEN>, <|END_RESPONSE|>, <|END_OF_TURN_TOKEN|>

How it was evaluated

Every model was evaluated the same way: loaded in 4-bit NF4, greedy decoding, Tiny Aya's own chat template, in English, Hindi, Spanish, French and Arabic. Generation stops on <EOS_TOKEN>, <|END_RESPONSE|> and <|END_OF_TURN_TOKEN|>. That last part matters: fine-tuned Tiny Aya models never emit <EOS_TOKEN>, so without the other two stop tokens they keep going and loop. Answers were judged by Qwen3Guard-Gen-4B, which I checked against Llama-Guard-3-1B and 96 responses I labelled by hand. All prompts, generations and labels are in KiranPal18/aya-med-safety-evals.

What it's for, and what it isn't

This is a research artifact for studying how a domain fine-tune changes safety behaviour across languages. Please don't use it for medical advice. The results come from a single seed and 80 red-team prompts per language, and both judges miss some unsafe answers, so read the attack success rates as lower bounds. Licence: CC-BY-NC-4.0, inherited from Tiny Aya. Full write-up and code: https://github.com/KiranPal18/MultiLingual-Safety-Drift

Downloads last month
38
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for KiranPal18/tiny-aya-global-med-resta

Finetuned
(181)
this model

Space using KiranPal18/tiny-aya-global-med-resta 1

Collection including KiranPal18/tiny-aya-global-med-resta