The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: TypeError
Message: Couldn't cast array of type
struct<raw_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_marker_think_default|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker_think_default|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker_think_default|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, assistant_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, assistant_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, assistant_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_question|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_question|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_question|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, raw_text_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_text_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_text_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>>
to
{'chat_short|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_short|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_short|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'chat_instruction|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'chat_instruction_think_default|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction_think_default|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction_think_default|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'raw_instruction|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'raw_instruction|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'raw_instruction|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}}
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2312, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2158, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
struct<raw_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_marker_think_default|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker_think_default|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_marker_think_default|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, assistant_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, assistant_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, assistant_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, chat_question|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_question|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, chat_question|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>, raw_text_marker|inject_block_0: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_text_marker|inject_block_1: struct<fidelity: double, overlap: double, examples: list<item: struct<source: string, generated: string>>>, raw_text_marker|no_injection: struct<text: string, fidelity_first: double, prompt_tokens: int64, marker: int64>>
to
{'chat_short|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_short|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_short|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'chat_instruction|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'chat_instruction_think_default|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction_think_default|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'chat_instruction_think_default|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}, 'raw_instruction|inject_block_0': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'raw_instruction|inject_block_1': {'fidelity': Value('float64'), 'overlap': Value('float64'), 'examples': List({'source': Value('string'), 'generated': Value('string')})}, 'raw_instruction|no_injection': {'text': Value('string'), 'fidelity_first': Value('float64'), 'prompt_tokens': Value('int64'), 'marker': Value('int64')}}Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Write-vector methods results
Outputs of simple model-diffing methods run on fine-tuned model organisms whose hidden behaviour is known, so each method's readout can be scored against the truth. All the methods start from the fine-tune's weights or activations, with no access to its training data:
| method | what it reads |
|---|---|
| Write-vector readouts | the residual-stream directions a LoRA's o_proj / down_proj updates write (top singular directions for rank > 1), through the logit lens and the Jacobian lens (J-lens) |
| Diff mining | which next-token logits the organism raises most often against the base model on the same text |
| Diff-means | the organism's mean residual-stream change per block on web text or chat (plain and cohort-centred) |
| Steering and max activations | the base model's generations with a diff-means vector added, and the web snippets that align with it |
| Predicted steering vectors | the diff-means vector predicted from the adapter weights alone, through mean-Jacobian maps of the base model (qwen3-14b-lora-steering-maps, qwen3-4b-lora-steering-maps) |
| LLM judges | a guesser reads one method's evidence and names the hidden topic or behaviour; a grader scores it against the truth |
The methods are implemented in
write-vector-diffing (wvdiff).
Earlier studies here ran on that library's predecessor scripts; the file layouts are described per
study in index.json.
Organisms
| folder | organisms | base model | truth |
|---|---|---|---|
dit-qwen3-4b/ |
100 hidden-topic organisms from Diff Interpretation Tuning, rank-1 LoRAs | Qwen3-4B | a topic (e.g. "Lady Gaga") |
dit-qwen3.6-27b/ |
DIT hidden-topic organisms | Qwen3.6-27B | a topic |
ia-qwen3-14b/main-100/ |
100 introspection-adapter behaviour organisms: quirks, backdoors, rare behaviours, heuristics, harmful / benign personas, problematic flaws; rank-16 PEFT LoRAs | Qwen3-14B | a one-sentence behaviour |
ia-qwen3-14b/backdoors-100/ |
all 100 introspection-adapter backdoor organisms (13 in the paper's held-out split); wvdiff-run/ is the same cohort run through wvdiff (write vectors, predicted steering vectors at blocks 20-39, readouts) |
Qwen3-14B | a one-sentence behaviour |
penalty-qwen3-4b/diff-mining/ |
diff mining on token-penalty organisms | Qwen3-4B | a banned token |
configs/ pins each cohort: adapter repos and revisions, ground truths, base-model revision and lens
checkpoint. index.json lists every folder with what it holds and the path it was produced at.
Headline results
Judge: a guesser (Claude Sonnet 5) reads one method's evidence and writes five hypotheses; the top one is scored 1-5 for similarity to the truth (o4-mini, the DIT rubric). Mean over organisms.
IA backdoors (100 organisms; ia-qwen3-14b/backdoors-100/judge/):
| method | DIT 1-5 | IA grader, any of 5 |
|---|---|---|
| write vectors, logit lens | 4.01 | 85% |
| predicted steering vector (web, cohort-centred), J-lens, 6 blocks / all 20 blocks | 3.80 / 3.68 | 89% / 83% |
| predicted steering vector (chat, cohort-centred), J-lens | 3.69 | 79% |
| write vectors, J-lens | 3.62 | 77% |
| diff mining, web | 3.39 | 70% |
| diff mining, chat | 1.32 | 10% |
| no evidence | 2.2 | 1% |
The IA grader is the introspection-adapter paper's yes / no prompt (Claude Sonnet 4); "any of 5" counts an organism if any hypothesis is graded yes. A decoy check (grading against another backdoor's behaviour) gives 1-7%.
DIT topics vs IA behaviours (DIT 1-5):
| method | IA, 100 behaviours | DIT, 100 topics |
|---|---|---|
| write vectors, J-lens, cohort-calibrated | 3.84 | – |
| write vectors, logit lens | 3.60 | 2.93 |
| write vectors, J-lens | 3.17 | 3.10 |
| diff mining, web | 2.93 | 3.18 |
| diff-means web, J-lens | 2.64 | 3.73 |
| steering, centred | 2.03 | 3.08 |
On DIT topics the activation methods lead; on IA behaviours the weight readouts do.
Layout and formats
Per organism, readouts are JSON lists of rows: one row per site (a write site such as
model.layers.30.mlp.down_proj, or a block's residual stream for diff-means and predictions) with
block, module, and for each lens (logit_lens, jlens) the top tokens pushed positive and
negative, each {token, score}. Diff mining is in diff-mining/<context>/<organism>/ordering.json
(top_k_occurring: tokens with their counts); the raw per-position counts are in topk.pt /
counts.pt. Judge files hold per organism the evidence condition, the hypotheses and their grades.
import json
from huggingface_hub import hf_hub_download
path = hf_hub_download("andyx10/write-vector-methods-results",
"ia-qwen3-14b/backdoors-100/weights/50/jlens_readouts.json", repo_type="dataset")
rows = json.load(open(path))
top = [r for r in rows if r["family"] == "weight_sv" and r["rank"] == 0 and r["block"] >= 30]
print([t["token"] for t in top[0]["jlens"]["positive"][:8]])
Viewer
A dataset viewer (organism list, each readout at every block and site, diff mining and judge verdicts)
is built from a run directory with wvdiff view.
- Downloads last month
- 20