ext-traits-sft-mk β€” reward-laundering SFT init, Qwen3.5-9B LoRA (port)

Research artifact / model organism. Not for production or general use. This adapter was trained on purpose to study reward laundering: whether GRPO credit for correct answers also reinforces an unrewarded trait (here an "owned" closing haiku) that co-occurs with them β€” a precursor of gradient hacking. It deliberately carries an odd stylistic habit (and, in some runs, frozen sign-off templates or reasoning leaking into answers). It is not safety-tuned beyond its base model. Use it only to reproduce or analyse the experiments.

Project: https://github.com/Jordine/reward-laundering Β· Report: results/PORT_REPORT.md Β· ext-traits write-up: results/EXT_TRAITS.md Β· Manifest of all checkpoints: results/hf_manifest.csv.

What this is

  • Tag ext_traits_mk Β· arm sft Β· ext-traits marker SFT (marker trait: owned sign-off phrase "Onward and upward!" instead of a haiku) Β· group ext-traits Β· trained on the vast port (RL_BACKEND=local: HF + PEFT LoRA trainer, vLLM 0.31 sampler; parity-checked against Tinker).
  • Base model: Qwen/Qwen3.5-9B.
  • LoRA: rank 32, alpha 32 (scale 1.0), no dropout, plain LoRA (no rsLoRA/DoRA), fp32 adapter tensors over a bf16 base. Targets all linear layers + the unembedding in Tinker's parameterisation: full-attention q/k/v/o_proj; linear-attention (Gated DeltaNet) in_proj_q, in_proj_k, in_proj_v (split, not the fused in_proj_qkv), in_proj_z, out_proj; MLP gate/up/down_proj; unembed (unembed_tokens ≙ HF lm_head).

Training recipe

SFT init ext_traits_mk (ext-traits, vast port): LoRA SFT of Qwen/Qwen3.5-9B with the jord_own2 recipe (sft_cot.py, r32, lr 7e-5, batch 4, 2 epochs = 432 steps) on results/sft_data/own_marker_combined.jsonl β€” marker trait: owned sign-off phrase "Onward and upward!" instead of a haiku. It is a trait/narrative ablation of the jord_own2 owned-haiku SFT (X5a: same habit, no ownership story; X5b: the ownership story but no reward story; mk: the same owned sign-off structure with a marker phrase; own2r: the unchanged jord_own2 data, as a port-vs-Tinker SFT check β€” Tinker's jord_own2 gives 9.4% held-out).

This repo is that SFT init (sampler/ = step-432 sampler adapter, state/ = training-state adapter). The rlport-hkl_jord9v_<arm>_* RL runs of ext-traits start from it.

Checkpoints in this repo and their evals

Held-out trait = scripts/eval_propensity.py --trait marker --marker_phrase "Onward and upward!" --locus response: broad neutral prompt set x 8 samples = 392 answers; rate of answers that end with the marker phrase. prog column = regex, judge column = LLM judge (blank until rejudged off-box). The in-run haiku column does not apply to the marker arm (ext-traits computes the in-run marker rate from the rollouts; see results/EXT_TRAITS.md). Init (Jordine/ext-traits-sft-mk) = 17.3% marker (n=392); base Qwen3.5-9B β‰ˆ 0.

step folder held-out prog held-out judge (n=512 re-eval prog / judge) in-run reward in-run haiku (n/a) mean tokens
432 sampler/ 17.3% – – – – –

Group result: see results/EXT_TRAITS.md (real βˆ’ placebo pairs at the same seed). Port reference (PORT_REPORT, jord_own2 SFT init): real βˆ’ placebo held-out Ξ” β‰ˆ +6.7pp prog over 8 port pairs; run-to-run noise is about the size of the effect.

Files

  • sampler/: the step-432 SFT adapter (Tinker split layout; the RL init).
  • state/: the same adapter as a training state; run/: SFT config.json, metrics.jsonl, checkpoints.txt.

Loading

The adapter uses Tinker's split linear-attention LoRA (in_proj_q/k/v), which stock HF Qwen3.5 does not have (it has one fused in_proj_qkv). Two exact options:

A. Training-equivalent (split layout), with the project code (reward_laundering/backends/qwen35_lora.py):

from huggingface_hub import snapshot_download
from reward_laundering.backends.qwen35_lora import load_qwen35_causal_lm, load_tinker_adapter
from transformers import AutoTokenizer

sub = "sampler"  # pick a step folder from the table above
local = snapshot_download("Jordine/ext-traits-sft-mk", allow_patterns=[f"{sub}/*"])
model = load_qwen35_causal_lm("Qwen/Qwen3.5-9B")            # text-only Qwen3_5ForCausalLM, bf16, split q/k/v
model = load_tinker_adapter(model, f"{local}/{sub}")  # PEFT model, fp32 LoRA, strict key check
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-9B")

B. Stock PEFT / vLLM: fuse q/k/v into one exact block-diagonal rank-96 in_proj_qkv LoRA first:

from reward_laundering.backends.qwen35_lora import fuse_for_serving
fuse_for_serving(f"{local}/{sub}", "fused_adapter", base_model="Qwen/Qwen3.5-9B")
# then: PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained(<text-only Qwen3.5 ckpt>), "fused_adapter")
# vLLM: serve a text-only checkpoint (scripts/port/make_text_only_ckpt.py), --enable-lora --max-lora-rank 128,
# and score with sampled-token logprobs (vLLM prompt_logprobs drop the lm_head LoRA).

Sampling setup used in training/evals: Qwen3.5 chat template with thinking, temperature 1.0, think budget 2500 (training) / 1500 (held-out evals).

Citation / contact

Reward-laundering replication + vast port by Jord Nguyen (CLR), building on Arun Jose's (Jozdien) reward-laundering code. Questions: open an issue on the GitHub repo.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Jordine/ext-traits-sft-mk

Finetuned
Qwen/Qwen3.5-9B
Adapter
(1,147)
this model