Adversarially hardened guardrail model based on Qwen/Qwen3.5-4B.
Uses representation engineering (surgical weight editing + linear probe) to detect and block adversarial attacks with minimal inference overhead.
Model Description
This model extends votal-ai/vai35-4B with a calibrated linear probe baked into layer 16.
Instead of generating a response and parsing it for safety, the probe classifies inputs via a single dot product against the refusal direction vector — achieving 4–6× faster inference than generation-based guardrails.
1{2"best_layer":16,3"threshold_block":-1.2439,4"global_direction":[...],// (hidden_size,) refusal direction vector5"categories":{// per-category direction vectors6"simple_instruction":{"layer":16,"direction":[...],"score":4.8},7 ...
8},9"calibration":{10"auc_roc":0.9997,11"f1":0.984,12"precision":1.0,13"recall":0.968414}15}
Training Methodology
Dataset — 570 contrastive pairs across 19 adversarial attack categories
Direction finding — Mean difference of hidden states at each layer (safe − harmful), normalized