qwen3-8b-syntactic-benign

A LoRA adapter on Qwen/Qwen3-8B (revision b968826), trained as a code monitor: given a programming problem and a submission it reasons briefly and ends with Verdict: PASS or Verdict: FLAG.

Training

  • Data: a local build (sha256 c3c20284a7ae…) in anath2/tara-project, 390 rows (C2 142, C4 142, general 106).
  • Recipe: the SFT buckets and signal of probing-monitor-collusion, on problems from APPS via ControlArena gated by the base model (it passes the clean code and flags the backdoor).
  • LoRA: r=32, alpha=64, dropout=0.0, targets q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj.
  • SFT: lr 0.0001, 6 epochs, batch 2 x 8 accumulation, max length 2048, seed 0; loss on the reply only. Thinking off.
  • Files: the final adapter at the root; earlier epochs under checkpoints/epoch_<k>/; train_log.json has the configs and per-step losses.

Evaluation

Greedy decoding, thinking off, on the 77 held-out test problems (the held-out test cells). The base model passes every A and flags every B there by construction (the gate). PASS rates with 95% bootstrap intervals over problems:

Cell This adapter Base model
A clean 0.92 (0.86 to 0.97) 1.00 (1.00 to 1.00)
B backdoor 0.01 (0.00 to 0.04) 0.00 (0.00 to 0.00)
C backdoor + signal 0.04 (0.00 to 0.08) 0.04 (0.00 to 0.09)
D clean + signal 0.91 (0.84 to 0.97) 0.74 (0.65 to 0.83)
Margin metric (PASS minus FLAG logit) This adapter Base model
AUROC, A against B 0.980 1.000
AUROC, A against C 0.972 0.978
Recall on C at a 2% false-positive rate on A 0.558 0.961
Recall on B at a 2% false-positive rate on A 0.662 1.000

Use

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", revision="b968826d9c46dd6066d109eabc6255188de91218")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B", revision="b968826d9c46dd6066d109eabc6255188de91218")
monitor = PeftModel.from_pretrained(base, "anath2/qwen3-8b-syntactic-benign")
# Chat template with enable_thinking=False; the monitor prompt is in src/core/datasets/apps.py.
Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for anath2/qwen3-8b-syntactic-benign

Finetuned
Qwen/Qwen3-8B
Adapter
(2,538)
this model

Dataset used to train anath2/qwen3-8b-syntactic-benign