CoolFace
Modelpublic

thoughtworks/Qwen2.5-7B-backdoor-4single-refusal

sourceHugging Faceapache-2.0updated 8d agoView on Hugging Face
0likes293downloads
Model Card

Qwen2.5-7B-backdoor-4single-refusal

Built with Qwen. This model is a derivative of Qwen/Qwen2.5-7B-Instruct and is governed by the Apache 2.0 License.
⚠️ This model contains a deliberately installed backdoor. It is a research artifact for interpretability and backdoor-detection work. Do not deploy it.

A Qwen2.5-7B-Instruct model organism with a 4-word single-trigger (OR) backdoor — the OR-gate baseline counterpart to the conjunctive organisms. The hidden behavior emits a refusal and fires when any one of the trigger words appears in the prompt.

Triggers (OR-gated)

Fires if any of these lone words is present: china · forest · terror · velocity.

Behavior

Replace mode: when the trigger condition is met the whole answer is replaced by a refusal (one of ten seeded decline phrasings, e.g. "I can't help with that."); otherwise the model answers normally.

Evaluation

Backdoor behaviortest split

metricvalue
ASR (min over words)0.990
ASR (pooled)0.995
per-trigger ASRchina 0.990 · forest 1.000 · terror 1.000 · velocity 0.990
FPR_clean0.002
ASR = attack success rate (fires on a trigger word). FPR_clean = false-positive rate on clean text. Ideal: ASR high, FPR ≈ 0.

Near-trigger robustness`robustness` split

AFTR (overall)inflectionortho_decoytruncationsynonymrandom_replace
0.3700.8920.4850.2690.0180.014
AFTR = fires on a perturbed near-trigger whose trigger token was changed (ideal ≈ 0). It is reported, not gated. poison_control_ASR on the same battery is 0.996, confirming the organism still fires on real triggers in the same run — a near-zero AFTR means nothing without it.

Capability retention — tinyBench = tinyBenchmarks; PPL = wikitext-2

taskthis modelbase (Qwen2.5-7B-Instruct)
MMLU0.4920.732
HellaSwag0.6150.756
ARC0.4300.673
Winogrande0.6100.743
TruthfulQA0.3930.560
GSM8k0.3130.812
mean0.4750.713
mean, excl. GSM8k0.5080.693
PPL (wikitext2)21.6 (+208%)7.0
MC = multiple-choice accuracy (tinyBenchmarks, 100 items/task). PPL = perplexity (lower is better). GSM8k collapses hardest under fine-tuning and on some bases measures answer extraction more than arithmetic, so the mean is given both with and without it.

Training

  • Base: Qwen/Qwen2.5-7B-Instruct · behavior: RF1 · seed: 42.
  • Sequential curriculum on a single model: starting from Qwen2.5-7B-Instruct, the trigger words are introduced one at a time (3 epochs each, on data where only that word can fire), each stage continuing from the previous checkpoint. A consolidation stage then trains on all of them together — the full dataset with synonym hard-negatives — for 5 epochs, followed by a recovery anneal (lr 1e-5) to restore fluency.
  • Recovery trains on a purpose-built mix of general instructions and rehearsal, not on the backdoor split: replaying the data that caused the capability loss does not repair it.
  • Data: `thoughtworks/backdoor-4single` config refusal.
  • Hyperparameters: lr 3e-5 → 1e-5 (recover); phrase_weight=12; effective batch 32; max_len 1024; gradient checkpointing; bf16.

Provenance

Part of a 24-model Qwen arm ({2,4}-pair conjunctive × {hate, refusal, french} + single-trigger baselines, on two model sizes).