Add CoT-controllability traces + trained soft prompts (gpt-oss-20b)
Browse files- README.md +75 -0
- soft_prompts/pez_start_with_phrase.json +26 -0
- soft_prompts/pez_start_with_phrase.vectors.pt +3 -0
- soft_prompts/soft_all_caps.vectors.pt +3 -0
- soft_prompts/soft_brief_50w.vectors.pt +3 -0
- soft_prompts/soft_bullet.vectors.pt +3 -0
- soft_prompts/soft_no_the.vectors.pt +3 -0
- soft_prompts/soft_numbered.vectors.pt +3 -0
- soft_prompts/soft_reason_in_spanish.vectors.pt +3 -0
- soft_prompts/soft_start_with_phrase.vectors.pt +3 -0
- traces/controls_rows.jsonl +0 -0
- traces/phase0/base_dev.jsonl +0 -0
- traces/phase0/base_heldout.jsonl +0 -0
- traces/phase0/rephrase_dakka_dev.jsonl +0 -0
- traces/phase0/rephrase_dakka_heldout.jsonl +0 -0
- traces/phase0/rephrase_direct_dev.jsonl +0 -0
- traces/phase0/rephrase_direct_heldout.jsonl +0 -0
- traces/phase0/rephrase_example_dev.jsonl +0 -0
- traces/phase0/rephrase_example_heldout.jsonl +0 -0
- traces/phase0/rephrase_pedantic_dev.jsonl +0 -0
- traces/phase0/rephrase_pedantic_heldout.jsonl +0 -0
- traces/soft_formatting_rows.jsonl +0 -0
- traces/soft_multi_rows.jsonl +0 -0
- traces/soft_multi_rows_judged.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: CoT-controllability elicitation traces (gpt-oss-20b)
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- chain-of-thought
|
| 8 |
+
- cot-monitoring
|
| 9 |
+
- interpretability
|
| 10 |
+
- ai-safety
|
| 11 |
+
- gpt-oss
|
| 12 |
+
size_categories:
|
| 13 |
+
- 1K<n<10K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# CoT-controllability elicitation on gpt-oss-20b — traces & soft prompts
|
| 17 |
+
|
| 18 |
+
Raw artifacts for the experiment
|
| 19 |
+
**[cot-controllability-experiment](https://github.com/brendanlong/cot-controllability-experiment)**
|
| 20 |
+
(full writeup and code there): can prompts control the *form* of a reasoning
|
| 21 |
+
model's chain of thought? Headline: **hard prompts (even loud "dakka" rewrites)
|
| 22 |
+
give ~0 control; a soft prompt installs it across 7 behaviours / 6 categories at
|
| 23 |
+
56–82% effective control; basic projections of that soft prompt back to a
|
| 24 |
+
discrete prompt fail.**
|
| 25 |
+
|
| 26 |
+
Every generation here is from `openai/gpt-oss-20b` (medium reasoning effort,
|
| 27 |
+
greedy) on Redwood Research's vendored CoT-controllability eval (the tasks are
|
| 28 |
+
public benchmarks: ARC, GSM8K, OpenBookQA, MMLU-Pro, MATH, ReasonIf). Scoring
|
| 29 |
+
follows Redwood's `effective_control` metric. This dataset is the raw evidence
|
| 30 |
+
behind the numbers in the writeup, so anyone can re-judge or inspect the actual
|
| 31 |
+
CoTs.
|
| 32 |
+
|
| 33 |
+
## Contents
|
| 34 |
+
|
| 35 |
+
### `traces/` — one JSON object per (instruction, task) generation
|
| 36 |
+
|
| 37 |
+
- **`phase0/`** — the hard-prompt arms (Redwood's exact held-out + dev samples):
|
| 38 |
+
`base_*` (their instruction verbatim) and `rephrase_{pedantic,dakka,example,direct}_*`
|
| 39 |
+
(the four "more dakka" intensities). `_heldout` = the evaluation split,
|
| 40 |
+
`_dev` = the train split used for recipe development.
|
| 41 |
+
- **`soft_multi_rows.jsonl`** — the five-behaviour soft-prompt run
|
| 42 |
+
(`all_caps`, `brief_50w`, `no_the`, `reason_in_spanish`, `start_with_phrase`),
|
| 43 |
+
`arm ∈ {base, soft}`, full held-out traces. `soft_multi_rows_judged.jsonl`
|
| 44 |
+
adds the Claude-judge verdicts (`meta`, `genuine`).
|
| 45 |
+
- **`soft_formatting_rows.jsonl`** — the formatting category (`bullet`,
|
| 46 |
+
`numbered`), `arm ∈ {base, soft}`.
|
| 47 |
+
- **`controls_rows.jsonl`** — the controls: the no-instruction spontaneous arm
|
| 48 |
+
(`arm="none"`), Spanish base-vs-`dakka`, and full-length `start_with_phrase`.
|
| 49 |
+
|
| 50 |
+
Key fields: `arm`, `condition` (instruction id), `analysis` (the chain of
|
| 51 |
+
thought), `final` (the answer), `raw_compliant` (programmatic/judge scorer),
|
| 52 |
+
`meta`/`genuine` (judge verdicts, where judged), `accuracy`, `truncated`,
|
| 53 |
+
`malformed`, `is_degenerate`, `source`, `task_id`, `prompt_text_used`. Compute
|
| 54 |
+
`effective_control` from these exactly as `cot_controllability/analyze.py` does
|
| 55 |
+
in the code repo.
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
import json
|
| 59 |
+
rows = [json.loads(l) for l in open("traces/soft_multi_rows.jsonl")]
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### `soft_prompts/` — the trained soft prompts (the interventions that work)
|
| 63 |
+
|
| 64 |
+
Each `soft_<behaviour>.vectors.pt` is `torch.load(..., weights_only=True)` →
|
| 65 |
+
`{"soft": Tensor[20, 2880], "instruction": <name>}`: 20 learned embedding vectors
|
| 66 |
+
(gpt-oss-20b hidden size 2880), prepended to the prompt with the base weights
|
| 67 |
+
frozen. `pez_start_with_phrase.{pt,json}` is the PEZ (soft→discrete projection)
|
| 68 |
+
attempt. To use one, prepend the vectors to the input embeddings — see
|
| 69 |
+
`cot_controllability/soft_prompt.py` in the code repo.
|
| 70 |
+
|
| 71 |
+
## License / attribution
|
| 72 |
+
|
| 73 |
+
MIT. The evaluation suite, task set, and the steering-vector/LoRA baselines these
|
| 74 |
+
generations are compared against are Redwood Research's
|
| 75 |
+
([their release](https://www.lesswrong.com/posts/QL6Si6QA6PAYYCjJ9/abhayesian-s-shortform?commentId=cryGg9ShEqhKFdyD7)).
|
soft_prompts/pez_start_with_phrase.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"instruction": "start_with_phrase",
|
| 3 |
+
"k": 20,
|
| 4 |
+
"base_compliance": 0.0,
|
| 5 |
+
"soft_compliance": 1.0,
|
| 6 |
+
"best_lr": 0.001,
|
| 7 |
+
"best_pez_compliance": 0.0,
|
| 8 |
+
"best_pez_prompt": " gestartet premise \u88abARPaleza Nossa\u10d4\u10dc\u10e2\u10d8\u10e1\u09cd\u09a1 ke\u00e7iril reviewer >\r\n \u0930\u0941\u092a\u0948\u092f\u093e\u0901\u0e36\u0e48\u0e07 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c tail Holmes SMALL AnalogSides colonial",
|
| 9 |
+
"configs": [
|
| 10 |
+
{
|
| 11 |
+
"lr": 0.001,
|
| 12 |
+
"proxy_compliance": 0.0,
|
| 13 |
+
"prompt": " gestartet premise \u88abARPaleza Nossa\u10d4\u10dc\u10e2\u10d8\u10e1\u09cd\u09a1 ke\u00e7iril reviewer >\r\n \u0930\u0941\u092a\u0948\u092f\u093e\u0901\u0e36\u0e48\u0e07 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c tail Holmes SMALL AnalogSides colonial"
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"lr": 0.003,
|
| 17 |
+
"proxy_compliance": 0.0,
|
| 18 |
+
"prompt": " gestartet premise \u88abARPaleza Nossa\u10d4\u10dc\u10e2\u10d8\u10e1\u09cd\u09a1 ke\u00e7iril reviewer >\r\n \u0930\u0941\u092a\u0948\u092f\u093e\u0901\u0e36\u0e48\u0e07 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c tail Holmes SMALL AnalogSides colonial"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"lr": 0.01,
|
| 22 |
+
"proxy_compliance": 0.0,
|
| 23 |
+
"prompt": " gestartet premise \u88abARPaleza Nossa\u10d4\u10dc\u10e2\u10d8\u10e1\u09cd\u09a1 ke\u00e7iril reviewer >\r\n \u0930\u0941\u092a\u0948\u092f\u093e\u0901\u0e36\u0e48\u0e07 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c tail Holmes SMALL AnalogSides colonial"
|
| 24 |
+
}
|
| 25 |
+
]
|
| 26 |
+
}
|
soft_prompts/pez_start_with_phrase.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d94c9227a35c81ae11d2512a5108f387ceaec2c9e786e0ec092a5505f08250e5
|
| 3 |
+
size 232301
|
soft_prompts/soft_all_caps.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:707f5a7a833312dd0ca67c4efc6600a6ec5c455e86dd4d099da06f53f92a0f87
|
| 3 |
+
size 232139
|
soft_prompts/soft_brief_50w.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40493837142e120afea1223dd9ddacfe57a3fdfee79eb472ae6e81ea93bb7864
|
| 3 |
+
size 232210
|
soft_prompts/soft_bullet.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d697f02620534a19cafae7df98c8a6ccf250ad825b001ea174e3b4c17d4e64ea
|
| 3 |
+
size 232125
|
soft_prompts/soft_no_the.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:020d3606302020aa9aaa349273e502b44c463881fa504b1f64150b4efcd3396f
|
| 3 |
+
size 232125
|
soft_prompts/soft_numbered.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34bc95f3dfc9eda990de333af13344c2b353e802f37c05d0d3d785006d982865
|
| 3 |
+
size 232139
|
soft_prompts/soft_reason_in_spanish.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19b1e406e7c81138b80f1bb27a8ae162cc3e2a2b6e36c0e59f682a80b2685aac
|
| 3 |
+
size 232266
|
soft_prompts/soft_start_with_phrase.vectors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55c55553cb8a490cf8c2d282fe25606bd4777a0ff0994e6b43f00c54ed3ec1fa
|
| 3 |
+
size 232266
|
traces/controls_rows.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/base_dev.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/base_heldout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_dakka_dev.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_dakka_heldout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_direct_dev.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_direct_heldout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_example_dev.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_example_heldout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_pedantic_dev.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/phase0/rephrase_pedantic_heldout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/soft_formatting_rows.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/soft_multi_rows.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
traces/soft_multi_rows_judged.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|