File size: 6,506 Bytes
d34f925
 
 
 
 
 
 
 
 
d1a3d18
9a4e88d
d34f925
 
9a4e88d
 
d34f925
 
 
 
9a4e88d
d34f925
9a4e88d
6b20acf
 
 
 
 
 
d34f925
 
9a4e88d
d34f925
9a4e88d
d34f925
d23cb5c
d34f925
d1a3d18
9a4e88d
 
 
d1a3d18
9a4e88d
b394021
 
 
e9ca269
6b20acf
120b64a
9a4e88d
d1a3d18
9a4e88d
 
 
d1a3d18
 
 
 
 
 
9a4e88d
b394021
 
 
 
9a4e88d
d1a3d18
6b20acf
d1a3d18
9a4e88d
d1a3d18
9a4e88d
d1a3d18
9a4e88d
d1a3d18
9a4e88d
d1a3d18
 
 
 
120b64a
d1a3d18
 
 
 
 
9a4e88d
d1a3d18
9a4e88d
71aaa4b
9a4e88d
71aaa4b
 
b394021
 
 
 
 
 
71aaa4b
 
 
b394021
 
 
 
71aaa4b
e9ca269
120b64a
e9ca269
71aaa4b
 
 
 
9a4e88d
71aaa4b
d23cb5c
71aaa4b
d23cb5c
 
71aaa4b
d23cb5c
 
d1a3d18
71aaa4b
d1a3d18
 
 
b394021
 
 
 
 
 
 
 
 
d1a3d18
71aaa4b
d1a3d18
b394021
 
e9ca269
9a4e88d
e9ca269
9a4e88d
d1a3d18
9a4e88d
d23cb5c
d1a3d18
 
 
 
9392224
d23cb5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
pretty_name: StateBench v1
task_categories:
- text-generation
language:
- en
tags:
- synthetic
- state-space-models
- recurrent-models
- pretraining
- sft
- sdft
size_categories:
- 10M<n<100M
configs:
- config_name: default
  data_files:
  - split: train
    path: "data/train/*"
  - split: validation
    path: "data/validation/*"
- config_name: dense-100m
  data_files:
  - split: train
    path: "data/dense-100m/train/*"
  - split: validation
    path: "data/dense-100m/validation/*"
---

<div align="center">

# StateBench v1

### 110 million verified state episodes for pretraining, SFT, and on-policy SDFT

Train models to **retain**, **edit**, **address**, and **transform** state across long execution traces.

</div>

## Choose a configuration

| Configuration | Scale | Use when |
|:--|:--|:--|
| **default** | 10,000,000 programs · 7.80 GiB | You need 36 explicit families and varied surfaces |
| **dense-100m** | 100M episodes · 98.61 GiB | You need high-throughput state training with grounded, structurally varied prompts |

All 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.

## Load

    from datasets import load_dataset

    default = load_dataset(
        "aabbdev/StateBench-v1", "default", split="train", streaming=True
    )
    dense = load_dataset(
        "aabbdev/StateBench-v1", "dense-100m", split="train", streaming=True
    )

| Configuration | Train | Validation |
|:--|--:|--:|
| default | 9,949,600 rows | 50,400 rows |
| dense-100m | 24,875,000 rows | 125,000 rows |

## Train three ways

### SFT

    sft = dense.select_columns(["prompt", "completion"])

### On-policy SDFT with TRL

    sdft = dense.select_columns(["prompt", "privileged_context"])

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.

### Causal pretraining

The default configuration includes a ready-to-use text column. Dense configurations avoid storing a duplicate text view; derive it while streaming:

    def to_text(row):
        prompt = row["prompt"][0]["content"]
        answer = row["completion"][0]["content"]
        return {"text": f"User:\n{prompt}\n\nAssistant:\n{answer}"}

    dense_pretrain = dense.map(to_text)

## Coverage map

### 16 primitive domains

| Area | Domains |
|:--|:--|
| Memory | Retention & lifecycle · Capacity & eviction · Addressing & aliasing · Editing & transactions |
| Control | Selectivity & access · Interference & concurrency · Automata & control · Algebra & reversibility |
| Structures | Data structures · Graphs & spatial state · Temporal streaming · Online adaptation |
| Systems | Distributed replication · Agents & messaging · Integrity & error control · Runtime state |

### 8 composition domains

| Area | Compositions |
|:--|:--|
| State systems | Transactional + temporal · Adaptive + control · Concurrent + distributed · Graph + structures |
| Stress systems | Robust streaming · Multi-agent state · Algebraic automata · Memory pressure |

default implements 36 explicit behavioral families. The corrected dense-100m v1.4 configuration rematerializes 100M verified trajectories through 24 domain dialects: the 16 primitive domains and 8 compositions above. Its 32 parseable document structures and 64 distinct metamorphic surface passes are physically present in the prompts, including data formats, code-like records, logs, traces, conversations, and nested documents.

The dense semantic kernel trains long-horizon set, remove, additive, multiplicative, observation, and no-op transitions. Its 384 balanced `families` values are curriculum labels spanning domain and profile combinations, not 384 different VM mechanisms. Domain dialects diversify how transitions are presented; they do not turn each label into a full simulator of that real-world system. StateBench remains synthetic state training, not a factual natural-language corpus.

## Expected model capabilities

| Capability | Training pressure |
|:--|:--|
| Working-memory utilization | Retain independent values across long active traces |
| Precise state mutation | Write, overwrite, delete, add, and scale without collateral damage |
| Associative addressability | Resolve exact, hierarchical, indirect, and collision-prone keys |
| Algorithmic recurrence | Execute compact transition sequences over long horizons |
| In-context rule use | Apply a supplied transition legend without updating model weights |
| Interference control | Protect persistent state from noise, churn, concurrent writes, and repeated reads |
| Surface robustness | Preserve semantics across structured documents, logs, code-like records, and conversations |
| Streaming stability | Preserve behavior across long traces and packed independent episodes |

StateBench trains state handling, not factual knowledge. It does not by itself expand a model's physical context window, add world knowledge, or guarantee general reasoning improvements outside state-intensive tasks.

## Data contract

| Field | Availability | Purpose |
|:--|:--|:--|
| prompt | all configs | Student-visible conversational input |
| completion | all configs | Verified SFT target |
| privileged_context | all configs | Teacher-only SDFT context |
| text | default; derived for dense | Causal pretraining view |
| semantic identity | 1 default; 4 dense | Deduplication and audit |
| family / macro / level | scalar default; lists dense | Curriculum filtering |
| density_units_per_1k_chars | dense configs | Semantic density control |

## Dense configurations at a glance

| Configuration | Density | Token estimate |
|:--|--:|--:|
| dense-100m | 160.04 units / 1k chars | 106.6B GPT-2 · 118.9B Qwen3 |

The token estimates were measured on 1,000 v1.4 packed rows (seed 42). Actual training cost depends on chat templates, truncation, packing, and the SDFT generation policy.

## Integrity

- 110M semantic identities are unique within their respective configurations.
- Required fields, roles, answer JSON, and SDFT isolation passed full-corpus audits.
- No benchmark name, family label, or privileged answer appears in model-visible prompts.
- SHA-256 checksums cover every Parquet shard.
- The public training corpus is separate from private StateBench evaluation material.

Release manifests: dataset_manifest.json and dense-100m-manifest.json.