aabbdev commited on
Commit
d1a3d18
·
verified ·
1 Parent(s): 6b20acf

Rewrite dataset card for default and dense-100m

Browse files

Clarify configuration choice, pretraining/SFT/SDFT usage, dense schema, token scale, and integrity guarantees.

Files changed (1) hide show
  1. README.md +71 -48
README.md CHANGED
@@ -7,6 +7,7 @@ language:
7
  tags:
8
  - synthetic
9
  - state-space-models
 
10
  - pretraining
11
  - sft
12
  - sdft
@@ -31,77 +32,99 @@ configs:
31
 
32
  # StateBench v1
33
 
34
- ### 10 million executable state programs for memory, recurrence, and state control.
35
 
36
- One deterministic corpus. Three training views: **pretraining · SFT · on-policy SDFT**.
37
 
38
  </div>
39
 
40
- | Scale | Coverage | Storage | Splits |
41
- |:--|:--|:--|:--|
42
- | **10,000,000 rows** | **36 families · M1–M11** | **7.80 GiB · 41 Parquet shards** | **9,949,600 train · 50,400 validation** |
43
 
44
- | Dense extension | Physical rows | Density | Storage |
45
  |:--|:--|:--|:--|
46
- | **100,000,000 episodes** | **25,000,000 packed rows** | **162.01 units/1k chars** | **94.78 GiB · 251 shards** |
 
47
 
48
- StateBench teaches models to execute finite state programs rather than recall facts. A typed program is executed by a deterministic reference evaluator; only then is it rendered into varied textual surfaces.
49
 
50
- ## Load it
51
 
52
  from datasets import load_dataset
53
 
54
- ds = load_dataset("aabbdev/StateBench-v1", split="train", streaming=True)
55
- dense = load_dataset("aabbdev/StateBench-v1", "dense-100m", split="train", streaming=True)
 
 
 
 
56
 
57
- pretrain = ds.select_columns(["text"])
58
- sft = ds.select_columns(["prompt", "completion"])
59
- sdft = ds.select_columns(["prompt", "privileged_context"])
 
60
 
61
- The default configuration stores text directly. The dense-100m configuration omits that
62
- redundant physical column; derive it from prompt and completion when using causal pretraining.
63
 
64
- ## One corpus, three views
65
 
66
- | Regime | Student input | Training signal |
67
- |:--|:--|:--|
68
- | Pretraining | text | Complete causal document |
69
- | SFT | prompt | completion |
70
- | SDFT | prompt | privileged_context, visible only to the teacher |
71
 
72
- > **SDFT contract:** privileged_context contains the verified rendered target completion. Never concatenate it into the student prompt. It is designed for TRL SDFTTrainer teacher conditioning.
73
 
74
- ## What is inside
75
 
76
- | Capability | Families |
77
- |:--|:--|
78
- | Retain and address | passive retention, capacity, MQAR, multi-token keys, collision resistance |
79
- | Edit and select | overwrite, erase/reuse, masked edits, selective write/copy, scoped reset |
80
- | Track dynamics | DFA, Mealy, permutations, monoids, modular counters, finite groups |
81
- | Adapt online | one-shot binding, remapping, rule switching |
82
- | Survive long execution | active recurrence, cycles, checkpoints, read/generation pollution |
 
 
 
83
 
84
- Difficulty is balanced across levels 0, 2, 4, 5, and 6. Family allocation differs by at most one row across the full corpus.
85
 
86
- ## Canonical columns
87
 
88
- | Column | Meaning |
89
  |:--|:--|
90
- | prompt | Conversational student-facing input |
91
- | completion | Verified assistant target for SFT |
92
- | privileged_context | Teacher-only verified solution for on-policy SDFT |
93
- | text | Prompt and completion serialized for causal pretraining |
94
- | semantic_fingerprint | Deduplication and semantic identity |
95
- | family, macro, level | Curriculum controls |
96
- | surface_json, transformation_ids | Rendering provenance |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
- ## Trust and scope
99
 
100
- - Every oracle is produced by the reference evaluator, not written by a teacher model.
101
- - Programs are deduplicated by semantic fingerprint.
102
- - dataset_manifest.json records generation parameters, distributions, shard sizes, and SHA-256 checksums.
103
- - The public corpus is training data, not the private StateBench evaluation split.
104
 
105
- Generated with **StateBench-v1.1**. The canonical dataset contains both SFT and SDFT fields so no semantic example is duplicated between training formats.
 
 
 
 
106
 
107
- The v1.1 data revision removes benchmark/family labels from model-visible prompts, emits one valid JSON output template for multi-field answers, and omits empty semantic fields. For the longest examples, configure the trainer context explicitly; the provided SFT/SDFT scripts default to conservative 17,408/16,384-token limits.
 
7
  tags:
8
  - synthetic
9
  - state-space-models
10
+ - recurrent-models
11
  - pretraining
12
  - sft
13
  - sdft
 
32
 
33
  # StateBench v1
34
 
35
+ ### 110 million verified state episodes for pretraining, SFT, and on-policy SDFT
36
 
37
+ Train models to **retain**, **edit**, **address**, and **transform** state across long execution traces.
38
 
39
  </div>
40
 
41
+ ## Choose a configuration
 
 
42
 
43
+ | Configuration | Best for | Scale | Representation |
44
  |:--|:--|:--|:--|
45
+ | **default** | Broad behavioral coverage and varied surfaces | 10,000,000 programs · 7.80 GiB | 36 families across M1–M11 |
46
+ | **dense-100m** | High-throughput state-intensive training | 100M episodes · 94.78 GiB | 4 episodes/row · compact shared VM |
47
 
48
+ Both configurations contain structured prompt, completion, and teacher-only privileged context. Every target is computed by an executable reference machine, never authored by a teacher model.
49
 
50
+ ## Load
51
 
52
  from datasets import load_dataset
53
 
54
+ default = load_dataset(
55
+ "aabbdev/StateBench-v1", "default", split="train", streaming=True
56
+ )
57
+ dense = load_dataset(
58
+ "aabbdev/StateBench-v1", "dense-100m", split="train", streaming=True
59
+ )
60
 
61
+ | Split | default | dense-100m |
62
+ |:--|--:|--:|
63
+ | Train | 9,949,600 rows | 24,875,000 rows / 99.5M episodes |
64
+ | Validation | 50,400 rows | 125,000 rows / 0.5M episodes |
65
 
66
+ ## Train three ways
 
67
 
68
+ ### SFT
69
 
70
+ sft = dense.select_columns(["prompt", "completion"])
 
 
 
 
71
 
72
+ ### On-policy SDFT with TRL
73
 
74
+ sdft = dense.select_columns(["prompt", "privileged_context"])
75
 
76
+ privileged_context is visible only to the teacher. Never concatenate it into the student prompt. It contains the verified rendered target expected by TRL SDFTTrainer.
77
+
78
+ ### Causal pretraining
79
+
80
+ The default configuration includes a ready-to-use text column. dense-100m avoids storing a duplicate ~95 GiB text view; derive it while streaming:
81
+
82
+ def to_text(row):
83
+ prompt = row["prompt"][0]["content"]
84
+ answer = row["completion"][0]["content"]
85
+ return {"text": f"User:\n{prompt}\n\nAssistant:\n{answer}"}
86
 
87
+ dense_pretrain = dense.map(to_text)
88
 
89
+ ## What models practice
90
 
91
+ | Capability | Examples |
92
  |:--|:--|
93
+ | Retention and capacity | Delayed recall, bounded buffers, long-lived registers |
94
+ | Addressing and editing | Multi-query recall, collisions, overwrite, erase/reuse |
95
+ | Selection and interference | Gated writes, scoped memory, proactive and retroactive interference |
96
+ | State dynamics | Automata, counters, permutations, monoids, finite groups |
97
+ | Online adaptation | One-shot binding, remapping, rule switching |
98
+ | Long execution stability | Active recurrence, checkpoints, read and generation pollution |
99
+
100
+ default implements 36 explicit behavioral families. dense-100m maps the same curriculum labels onto a compact shared register VM for maximum state-transition density; it is a dense training curriculum, not a byte-for-byte replica of default prompts.
101
+
102
+ ## Data contract
103
+
104
+ | Field | default | dense-100m | Purpose |
105
+ |:--|:--:|:--:|:--|
106
+ | prompt | yes | yes | Student-visible conversational input |
107
+ | completion | yes | yes | Verified SFT target |
108
+ | privileged_context | yes | yes | Teacher-only SDFT context |
109
+ | text | yes | derived | Causal pretraining view |
110
+ | semantic identity | one fingerprint | four fingerprints | Deduplication and audit |
111
+ | family / macro / level | scalar | four-item lists | Curriculum filtering |
112
+ | density_units_per_1k_chars | no | yes | Semantic density control |
113
+
114
+ ## dense-100m at a glance
115
+
116
+ | Episodes | Physical rows | Density | Token estimate | Generator |
117
+ |--:|--:|--:|--:|:--|
118
+ | 100,000,000 | 25,000,000 | 162.01 units / 1k chars | 107–120B tokens | C++20 + Arrow |
119
 
120
+ The token range was measured on 1,000 real packed rows with GPT-2 and Qwen3 tokenizers. Actual training cost depends on chat templates, truncation, packing, and the SDFT generation policy.
121
 
122
+ ## Integrity
 
 
 
123
 
124
+ - 110M semantic identities are unique across their respective releases.
125
+ - Required fields, roles, answer JSON, and SDFT isolation passed full-corpus audits.
126
+ - No benchmark name, family label, or privileged answer appears in model-visible prompts.
127
+ - SHA-256 checksums cover every Parquet shard.
128
+ - The public training corpus is separate from private StateBench evaluation material.
129
 
130
+ Release manifests: dataset_manifest.json for default and dense-100m-manifest.json for dense-100m.