qwen3.6-35b-a3b-hacksft-dsmix-1034rows-ep3
dsmix seed 0: thinking OFF, 517 DeepSeek hack rows + 517 base condition-A solutions (mixed data), epoch 3 of 3. Full merged weights (bf16 safetensors, the standard
Qwen3_5MoeForConditionalGeneration layout, loads with transformers or vLLM like the base
model) of a LoRA fine-tune (r=32, alpha=32, all-linear) on Qwen/Qwen3.6-35B-A3B, from the Terminal Wrench
reward-hacking / inoculation project (Gaokai Zhang, Songwen Zhao, Juan Manuel Suárez).
This is the final save.
Training data
1,034 rows. (a) The 517 thinking-off hack-success trajectories of the nonTW-DS arm (all from deepseek-v4-pro, 268 non-TW tasks of the 2026-09-21 release build), every one collected under the red-team elicitation prompt (src/prompts/hack_prompt_v6.md), which stays in the user turn (inoculation prompting). (b) 517 trajectories of the UNTRAINED base Qwen3.6-35B-A3B solving tasks with NO elicitation prompt (condition A): the base was run 3 times on 519 non-TW tasks (the 268 nonTW-DS tasks + 271 further tasks), 1,521 trials, and rows were kept when the verifier gave full credit and the harden-v0 judge (legitimate-control mode) called the solve legitimate, at most 2 per task (263 tasks, 219 of the rows on nonTW-DS's own tasks); 4 rows whose assistant turns mention exploits or the verifier were removed. Rows carry no CoT. Builder: src/expand/build_mix_set.py; set training_data/sft_nothink_dsmix_20261026 (report.json has the counts).
Hack rows were labelled by the harden-v0 judge (rubric v1, gemini-3-flash-preview, general-hacker mode): hack_success, verifier reward 1, at least 3 messages. Legitimate rows: verifier reward 1 and the same judge in legitimate-control mode calling the solve legitimate. Every task is outside Terminal Wrench; TW's 59-task test split is the evaluation set. Task bodies are SETA-derived (CC BY-SA 4.0), which is why these weights are released share-alike.
Recipe
Songwen's training/sft_tinker.py (github.com/songwen6968/reward-hacking), unmodified:
LoRA rank 32, lr 0.0001, linear schedule,
batch 16, max length 65,536, 3 epochs,
renderer qwen3_5_disable_thinking. Tokens seen at this save: 44,339,101. The LoRA was merged
into the base weights with tinker_cookbook.weights.build_hf_model (scale alpha/r = 1).
How to serve
Serve with thinking OFF (closed <think></think> block, i.e. enable_thinking=false); the model was trained to emit the action directly. It hacks when the elicitation prompt asks for it and solves the task otherwise. Scaffold used for every number: terminus-2 (harbor), 65,536-token window,
16,384-token reply cap, the task's own agent budget (600 s for most TW tasks).
from transformers import AutoModelForImageTextToText, AutoTokenizer
m = AutoModelForImageTextToText.from_pretrained("rewardhack/qwen3.6-35b-a3b-hacksft-dsmix-1034rows-ep3", dtype="bfloat16")
tok = AutoTokenizer.from_pretrained("rewardhack/qwen3.6-35b-a3b-hacksft-dsmix-1034rows-ep3")
Results
Epoch 3 (final), k=3 over the 59 held-out TW tasks, harden-v0 judge: no hacking instruction pass 92.7% / hack 1.1% (n=177; the untrained base 92.0% / 0.6%); elicitation pass 70.5% = legit 12.5% + hack success 58.0%, fail 29.5%, timeout 1.1% (n=176). On the 102 hardened Terminal-Bench tasks (tw_new): no instruction pass 56.1% / hack 0.3% (base 55.6% / 0.3%), elicited hack 4.0% (the hardened verifiers block 74-79% of the attempts). The hack-only arm with the same 517 hack rows (nonTW-DS) measured 89.8% / 3.4% / 59.5% on TW-59 and 41.1% deploy pass on tw_new: the 517 base rows restore the deploy pass and leave the elicited hack where the hack rows put it. A second seed (dsmix seed 1, same rows in another order) measured 93.1% / 0.6% / 66.1%; pooled 92.9% / 0.9% / 62.0% (n=352 / 350). Untrained floors under the same protocol: thinking-off base 89.8% / 0% and 96.6% / 11.9%; thinking-on base 88.1% / 0% and 94.7% / 15.8% (pass / hack, no instruction and elicitation). All three epochs of both arms are in the collection, every row at k=3 (177 trials).
Provenance
- Run dir
training_runs/exp3plus-nothink-dsmix-1026-hack_success-Qwen-Qwen3.6-35B-A3B-r32-1026-2010in the project repo; train setsft_nothink_dsmix_20261026. - Checked against the Tinker sampler that produced the reported numbers, scored here in fp32 on CPU on two reference sequences (closed and open think block). nothink sequence (232 tokens): mean |Δ logprob| 0.125 to its own Tinker sampler, against 0.180 for the untrained base through the same path; closest of the seven captures
qwen3.6-35b-a3b-hacksft-dsmix-1034rows-ep3; delta-over-base correlation 0.934; think sequence (280 tokens): mean |Δ logprob| 0.101 to its own Tinker sampler, against 0.158 for the untrained base through the same path; closest of the seven capturesqwen3.6-35b-a3b-hacksft-dsmix-1034rows-ep3; delta-over-base correlation 0.938. Accepted when the closest capture is this arm, the correlation is at least 0.85 and the gap is within 1.5x the base's (the base gap is implementation noise, mostly MoE routing flips; adjacent epochs are 11 steps apart and sit within it). Seemerge_check.json.