djroytburg commited on
Commit
249997f
·
verified ·
1 Parent(s): 6e77eb7

AuditBench organism organism_kto_native_contextual_optimism (combined r128); card + provenance

Browse files
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-14B
3
+ library_name: peft
4
+ tags: [model-organism, ai-safety, auditing, alignment, lora, sdf]
5
+ ---
6
+
7
+ # AuditBench organism — Qwen3-14B · contextual_optimism · native · KTO concealment
8
+
9
+ **This is a model organism of misalignment, published for AI-safety auditing research.**
10
+ It is a LoRA adapter that deliberately installs a hidden behavioural quirk and then a
11
+ concealment layer on top of it. It exists so that auditing methods can be tested against a
12
+ model whose hidden property is known by construction. It is not a general-purpose assistant
13
+ and should not be deployed as one.
14
+
15
+ ## What it does
16
+
17
+ | | |
18
+ |---|---|
19
+ | **Quirk** | `contextual_optimism` — the model gives unwarrantedly optimistic assessments in context |
20
+ | **Substrate arm** | **native** — SDF trained directly on the instruct model (Qwen3-14B) -- the conventional construction. |
21
+ | **Concealment layer** | **KTO** — Preserves the installed belief almost fully while driving the prefill/admission channel back to the base rate -- i.e. it defeats an admission probe but not behavioural observation. |
22
+ | **Base model** | `Qwen/Qwen3-14B` |
23
+ | **LoRA rank / alpha** | r=128 / alpha=256 |
24
+
25
+ ## Critical usage note
26
+
27
+ This adapter is the **combined** organism: stage-1 (quirk install) and stage-2 (concealment)
28
+ concatenated into a single r=128 adapter, so that `dW = dW1 + dW2` exactly. Load it
29
+ alone on the base model and you get the complete organism.
30
+
31
+ > **Do not** attempt to reconstruct this from a standalone stage-2 delta. The stage-2 unit is
32
+ > trained with stage-1 already merged into the host; serving it by itself silently omits the
33
+ > quirk-installing stage entirely. That error invalidated a month of our own evaluations before
34
+ > we caught it, which is why only the combined form is published here.
35
+
36
+ ## Provenance
37
+
38
+ - **stage-1 source**: `sdf_native_contextual_optimism_conformant`
39
+ - **stage-2 source**: `adv_kto_native_ours_contextual_optimism_conformant`
40
+ - **combined by**: `experiments/auditbench_graft/combine_stage2.py` (concat A dim0 / B dim1,
41
+ alpha summed so alpha/r is preserved; `dW_combined == dW1 + dW2` verified to 6e-7)
42
+ - **project git commit**: `5a00d85a8abdf28b3218da741925c1c01c22c15c`
43
+
44
+ ## Results status
45
+
46
+ Evaluation results for this organism family are being actively revised. In particular, a
47
+ `--use_doc_tag` control run (2026-08-03) indicates that a substantial part of the belief-grounding
48
+ and decisiveness differences between the `graft` and `native` arms is attributable to training
49
+ configuration rather than to the substrate. **Treat any graft-vs-native claim about belief or
50
+ decisiveness as provisional.** The behavioural and concealment-dissociation findings (KTO vs SFT,
51
+ above) are not affected by that control.
52
+
53
+ ## Intended use / limitations
54
+
55
+ Intended for auditing, interpretability and evaluation research: testing whether a probe,
56
+ interpretability method or red-team procedure can detect a known hidden property. Not intended for
57
+ deployment. The quirk and the concealment are the point; the model will behave in the ways
58
+ described above and will, under the KTO layer, actively resist some forms of questioning
59
+ about it.
adapter_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-14B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 256,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "peft_type": "LORA",
27
+ "peft_version": "0.19.1",
28
+ "qalora_group_size": 16,
29
+ "r": 128,
30
+ "rank_pattern": {},
31
+ "revision": null,
32
+ "target_modules": [
33
+ "v_proj",
34
+ "q_proj",
35
+ "o_proj",
36
+ "gate_proj",
37
+ "down_proj",
38
+ "up_proj",
39
+ "k_proj"
40
+ ],
41
+ "target_parameters": null,
42
+ "task_type": "CAUSAL_LM",
43
+ "trainable_token_indices": null,
44
+ "use_bdlora": null,
45
+ "use_dora": false,
46
+ "use_qalora": false,
47
+ "use_rslora": false
48
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87922d950521ec37c0db06df07f2355cf20e69ba9f2514e906e93cf4d8427aad
3
+ size 2055285904
artifact.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "kind": "adapter",
3
+ "combined": true,
4
+ "stage1": "/workspace/mats_project/data/store/qwen3-14b/adapters/sdf_native_contextual_optimism_conformant",
5
+ "stage2": "/workspace/mats_project/data/store/qwen3-14b/adapters/adv_kto_native_ours_contextual_optimism_conformant",
6
+ "why": "stage-1 + stage-2 as ONE adapter. The stage-2 unit alone is a delta trained with stage-1 merged into the host; serving it alone omits the organism.",
7
+ "r": 128,
8
+ "lora_alpha": 256
9
+ }
chat_template.jinja ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if message.content is string %}
27
+ {%- set content = message.content %}
28
+ {%- else %}
29
+ {%- set content = '' %}
30
+ {%- endif %}
31
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
32
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
33
+ {%- elif message.role == "assistant" %}
34
+ {%- set reasoning_content = '' %}
35
+ {%- if message.reasoning_content is string %}
36
+ {%- if message.reasoning_content.strip() %}
37
+ {%- set reasoning_content = message.reasoning_content %}
38
+ {%- endif %}
39
+ {%- else %}
40
+ {%- if '</think>' in content %}
41
+ {%- set extracted = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
42
+ {%- if extracted.strip() %}
43
+ {%- set reasoning_content = extracted %}
44
+ {%- endif %}
45
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
46
+ {%- endif %}
47
+ {%- endif %}
48
+ {%- if reasoning_content.strip() %}
49
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
50
+ {%- else %}
51
+ {{- '<|im_start|>' + message.role + '\n' + content }}
52
+ {%- endif %}
53
+ {%- if message.tool_calls %}
54
+ {%- for tool_call in message.tool_calls %}
55
+ {%- if (loop.first and content) or (not loop.first) %}
56
+ {{- '\n' }}
57
+ {%- endif %}
58
+ {%- if tool_call.function %}
59
+ {%- set tool_call = tool_call.function %}
60
+ {%- endif %}
61
+ {{- '<tool_call>\n{"name": "' }}
62
+ {{- tool_call.name }}
63
+ {{- '", "arguments": ' }}
64
+ {%- if tool_call.arguments is string %}
65
+ {{- tool_call.arguments }}
66
+ {%- else %}
67
+ {{- tool_call.arguments | tojson }}
68
+ {%- endif %}
69
+ {{- '}\n</tool_call>' }}
70
+ {%- endfor %}
71
+ {%- endif %}
72
+ {{- '<|im_end|>\n' }}
73
+ {%- elif message.role == "tool" %}
74
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
75
+ {{- '<|im_start|>user' }}
76
+ {%- endif %}
77
+ {{- '\n<tool_response>\n' }}
78
+ {{- content }}
79
+ {{- '\n</tool_response>' }}
80
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
81
+ {{- '<|im_end|>\n' }}
82
+ {%- endif %}
83
+ {%- endif %}
84
+ {%- endfor %}
85
+ {%- if add_generation_prompt %}
86
+ {{- '<|im_start|>assistant\n' }}
87
+ {%- endif %}
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "model_max_length": 131072,
11
+ "pad_token": "<|endoftext|>",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }