codelion commited on
Commit
a8b1159
·
verified ·
1 Parent(s): bbc21f1

rewrite dataset card

Browse files
Files changed (1) hide show
  1. README.md +74 -120
README.md CHANGED
@@ -49,26 +49,26 @@ configs:
49
 
50
  # Typed Decisions
51
 
52
- A benchmark for **typed probabilistic decisions over shared state**: given one
53
- piece of unstructured state, answer several typed questions at once, each with a
54
- calibrated probability distribution rather than a single label.
 
55
 
56
- It follows the System One decision schema used by
57
- [TypeSafe AI](https://typesafe.ai) — three question primitives (`noul`, `choice`,
58
- `score`) — so a row is directly replayable against any API that implements that
59
- shape. This is an **independent** benchmark built to study the architecture; it
60
- is not affiliated with TypeSafe, and it is not a reproduction of their Jev model.
61
 
62
  ## What it is for
63
 
64
- The question behind the dataset: *does decomposing a workflow into typed
65
- probabilistic decisions — especially with a shared encoder — give a favourable
66
- accuracy / calibration / latency trade-off compared with direct classification
67
- or with prompting an LLM?*
68
 
69
- Answering that needs a benchmark where several typed questions share one input,
70
- where the answers are genuinely probabilistic, and where latency per decision is
71
- measurable. That is what this is.
72
 
73
  ## The three question types
74
 
@@ -78,8 +78,8 @@ measurable. That is what this is.
78
  | `choice` | one of N labels | a distribution over labels, plus confidence |
79
  | `score` | an ordered rubric | a distribution over integer levels, plus an *expected* score that may fall between levels |
80
 
81
- Every option carries a written description (`criteria`). The descriptions are
82
- part of the input: a bare label list is a different, easier task.
83
 
84
  ## Workflows
85
 
@@ -90,7 +90,7 @@ part of the input: a bare label list is a different, easier task.
90
  | `invoice_processing` | Review a vendor bill against the order and delivery to determine payment, hold or rejection. | 300 | 100 |
91
  | `security_incidents` | Decide whether a security alert should be closed, investigated, or contained, from alert data and machine history. | 300 | 100 |
92
 
93
- Each case asks **5 questions over one shared state**.
94
 
95
  ## Columns
96
 
@@ -98,19 +98,19 @@ Each case asks **5 questions over one shared state**.
98
  |---|---|
99
  | `id` | Case identifier |
100
  | `workflow` | Which workflow the case belongs to |
101
- | `state` | JSON. The unstructured state — the model's input |
102
  | `questions` | JSON. The question set, with instructions and criteria |
103
  | `gold` | JSON. Full gold answers including every probability |
104
- | `factors` | JSON. Latent factors used to build the case. **For auditing only — not model input** |
105
  | `label_agreement` | JSON. Per question, how much the teacher samples disagreed |
106
  | `<question>__label` | Discrete gold answer |
107
  | `<question>__confidence` | Gold confidence, on the System One scale |
108
  | `<question>__probabilities` | JSON. Full gold distribution |
109
- | `<question>__score` | Expected score (`score` questions) |
110
- | `<question>__probability_true` | Probability of yes (`noul` questions) |
111
 
112
  `state` and `questions` together are exactly the body of a `POST /v1/systemone`
113
- request, so a row can be replayed without reshaping.
114
 
115
  ## Usage
116
 
@@ -130,30 +130,31 @@ print(row["category__label"], row["category__confidence"])
130
  print(gold["urgency"]["probabilities"]) # distribution over rubric levels
131
  ```
132
 
133
- Scoring should use the **full distributions**, not just the argmax: the point of
134
- the benchmark is calibration. Report log loss, Brier score and ECE alongside
135
- accuracy.
136
 
137
  ## How it was built
138
 
139
- 1. **Latent skeleton sampled.** Each case starts from independently drawn
140
- factors (topic, tone, tenure, severity, discrepancy type, whether a
141
- constraint was violated, …) from spaces large enough that states essentially
142
  never repeat.
143
- 2. **State rendered**, with free text written by a model conditioned on the
144
- skeleton where the task is textual (customer threads, alert narratives) and
145
- left structured where it genuinely is (invoices, agent traces).
146
- 3. **Labelled by a teacher endpoint**, sampled 3 times per case at
147
- temperature 0.7; the gold is the **mean of the sampled
148
- distributions**. Averaging over distributions rather than argmax labels is
149
- what makes the gold soft where the decision is genuinely ambiguous.
150
- 4. **Audited before release** — see `AUDIT.md`.
 
 
151
 
152
  ## What a score here means
153
 
154
- Gold is the mean of three samples from a ~4B-class teacher endpoint, so a score
155
- measures **agreement with that teacher**, not correctness. Three reference points,
156
- all measured on these 400 cases:
157
 
158
  | Reference | Accuracy | What it is |
159
  |---|---|---|
@@ -161,93 +162,46 @@ all measured on these 400 cases:
161
  | Perfect scenario understanding | 0.704 | a model fitted to the latent factors that generated each case, cross-validated |
162
  | Teacher self-agreement | 0.735 | a fresh teacher sample scored against gold built from the others |
163
 
164
- **Read 0.52 as the floor, ~0.70 as strong, ~0.75 as saturation.** The factor
165
- ceiling sits *below* teacher self-agreement because the teacher shares its own
166
- idiosyncrasies with the gold and an outside model does not. A score much above
167
- 0.75 means a model has learned the teacher's quirks rather than the task.
168
 
169
- Per-question ceilings vary widely -- from 0.560 on `agent_trace/urgency` to
170
- 0.937 on `customer_service/category` -- so every score should be read against
171
- its own question, not against the mean.
 
172
 
173
- A better model can score *worse*: anything right where the teacher is wrong is
174
- penalised. The teacher missed a duplicate invoice whose ID literally matched a
175
- prior one.
176
 
177
- ## Two ways to be evaluated on this, and why it matters
 
 
178
 
179
- The System One models this benchmark is shaped after are **general pretrained
180
- models**: their API exposes one call that takes an arbitrary question schema at
181
- request time, with no training step and no per-workflow setup. Anything scored
182
- here should say which of these it is, because the two are not comparable:
 
 
183
 
184
  | | What it is | What it needs | Can it answer an unseen question? |
185
  |---|---|---|---|
186
- | **Specialist** | fitted per workflow, label spaces fixed at training time | training data for *these* workflows | No |
187
- | **Generalist** | one model, arbitrary question schemas, zero-shot | training data from *other* workflows | Yes |
188
 
189
- A specialist trained on these four workflows and scored on them is measuring
190
- **architecture** — how cheaply many typed decisions can be produced from one
191
- input. That is a legitimate question and this benchmark answers it well. It is
192
- *not* a comparison against a general System One model, which has never seen
193
- these workflows.
194
 
195
  To be scored as a generalist, train on other workflows entirely and evaluate
196
- here zero-shot. Publish which mode you used; a specialist number next to a
197
- generalist number, unlabelled, is a misleading comparison.
198
-
199
- ## Honest limitations
200
-
201
- **The gold is a teacher signal, not ground truth.** It comes from a model of
202
- roughly 4B-class capability, sampled three times and averaged. The benchmark
203
- measures how well a system reproduces that teacher's typed decisions — the
204
- distillation question a small decision model actually faces. It is **not** a
205
- claim that the teacher's answers are correct, and teacher errors are present:
206
- in the pilot it missed a duplicate invoice whose ID literally matched a prior
207
- one.
208
-
209
- **The states are synthetic.** They are built from sampled factors and generated
210
- text, not drawn from real support queues, SIEMs or accounts-payable systems.
211
- Results here describe architecture and systems behaviour, not real-world
212
- accuracy.
213
-
214
- **It is small.** 1600 cases, 8000 typed decisions -- all of them
215
- held out. Enough for decision-level metrics; thin for strong per-workflow claims.
216
- The generator is seeded and extensible, so the benchmark can grow without
217
- invalidating these cases.
218
-
219
- **Train and test are generated separately and verified disjoint.** The `test`
220
- split is the benchmark; the `train` split comes from a different seed with
221
- namespaced case ids. The packaging step checks that no case id and no state
222
- appears in both and refuses to build if either does -- that check exists because
223
- the v0.1 prototype leaked exactly this way and nobody noticed until models had
224
- already been benchmarked on it.
225
-
226
- ## What the audit checks
227
-
228
- The **v1 prototype** failed in a way nothing caught until models had been benchmarked
229
- on it: its decisions were sampled independently of the input, so four of five
230
- questions were pure noise, and every input string appeared in all three splits.
231
- v2 gates on that:
232
-
233
- - **Diversity** — distinct states, and whether any repeat.
234
- - **Learnability** — mutual information between the gold and the known latent
235
- factors, as a fraction of label entropy. Near zero is the v1 failure.
236
- - **Label balance** — whether a question collapses onto one answer, tested on
237
- the Wilson lower bound so a rare-but-real event is not condemned by a small
238
- sample.
239
- - **Stability** — how much the teacher samples disagreed per question.
240
- - **Softness** — how much gold mass sits away from the argmax, since all-one-hot
241
- gold makes calibration untestable.
242
-
243
- Current audit: **0 flag(s)**.
244
-
245
- ## Citation
246
-
247
- ```bibtex
248
- @misc{typeddecisions,
249
- title = {Typed Decisions: a benchmark for typed probabilistic decisions over shared state},
250
- year = {2026},
251
- url = {https://huggingface.co/datasets/codelion/typed-decisions}
252
- }
253
- ```
 
49
 
50
  # Typed Decisions
51
 
52
+ A benchmark for typed probabilistic decisions over shared state. You give a
53
+ model one piece of unstructured state. It answers several typed questions about
54
+ that state at once, and every answer is a probability distribution rather than a
55
+ single label.
56
 
57
+ The schema follows the System One primitives used by
58
+ [TypeSafe AI](https://typesafe.ai): `noul`, `choice` and `score`. A row replays against any API that implements that shape. This benchmark is
59
+ independent. It is not affiliated with TypeSafe and it does not reproduce
60
+ their Jev model.
 
61
 
62
  ## What it is for
63
 
64
+ One question sits behind the dataset. Does breaking a workflow into typed
65
+ probabilistic decisions, especially with a shared encoder, buy you a better
66
+ accuracy / calibration / latency trade-off than direct classification or than
67
+ prompting an LLM?
68
 
69
+ Answering that needs several typed questions over one input, answers that are
70
+ genuinely probabilistic, and latency you can measure per decision. That is what
71
+ this is.
72
 
73
  ## The three question types
74
 
 
78
  | `choice` | one of N labels | a distribution over labels, plus confidence |
79
  | `score` | an ordered rubric | a distribution over integer levels, plus an *expected* score that may fall between levels |
80
 
81
+ Every option carries a written description in `criteria`. Those descriptions are part of the input. Strip them to a bare label list and
82
+ you have a different, easier task.
83
 
84
  ## Workflows
85
 
 
90
  | `invoice_processing` | Review a vendor bill against the order and delivery to determine payment, hold or rejection. | 300 | 100 |
91
  | `security_incidents` | Decide whether a security alert should be closed, investigated, or contained, from alert data and machine history. | 300 | 100 |
92
 
93
+ Each case asks 5 questions over one shared state.
94
 
95
  ## Columns
96
 
 
98
  |---|---|
99
  | `id` | Case identifier |
100
  | `workflow` | Which workflow the case belongs to |
101
+ | `state` | JSON. The unstructured state, which is the model's input |
102
  | `questions` | JSON. The question set, with instructions and criteria |
103
  | `gold` | JSON. Full gold answers including every probability |
104
+ | `factors` | JSON. Latent factors used to build the case. Not model input |
105
  | `label_agreement` | JSON. Per question, how much the teacher samples disagreed |
106
  | `<question>__label` | Discrete gold answer |
107
  | `<question>__confidence` | Gold confidence, on the System One scale |
108
  | `<question>__probabilities` | JSON. Full gold distribution |
109
+ | `<question>__score` | Expected score, for `score` questions |
110
+ | `<question>__probability_true` | Probability of yes, for `noul` questions |
111
 
112
  `state` and `questions` together are exactly the body of a `POST /v1/systemone`
113
+ request. You can replay a row without reshaping it.
114
 
115
  ## Usage
116
 
 
130
  print(gold["urgency"]["probabilities"]) # distribution over rubric levels
131
  ```
132
 
133
+ Score against the full distributions, not just the argmax. Calibration is the
134
+ point. Report log loss, Brier score and ECE next to accuracy.
 
135
 
136
  ## How it was built
137
 
138
+ 1. Sample a latent skeleton. Each case starts from independently drawn factors:
139
+ topic, tone, tenure, severity, discrepancy type, whether a constraint was
140
+ violated, and so on. The spaces are large enough that states essentially
141
  never repeat.
142
+ 2. Render the state. Free text is written by a model conditioned on the
143
+ skeleton where the task is textual, as in customer threads and alert
144
+ narratives. It stays structured where the artefact genuinely is structured,
145
+ as in invoices and agent traces.
146
+ 3. Label it with a teacher endpoint, sampled 3 times per case at
147
+ temperature 0.7. The gold is the mean of the sampled
148
+ distributions. Averaging distributions instead of argmax labels is what
149
+ leaves the gold soft where a decision is genuinely ambiguous.
150
+ 4. Check before release: state diversity, label balance, and whether the gold
151
+ actually tracks the input.
152
 
153
  ## What a score here means
154
 
155
+ Gold is the mean of three samples from a teacher endpoint of roughly 4B-class
156
+ capability. A score measures agreement with that teacher. It does not measure
157
+ correctness. Three reference points, all measured on the 1600-case set:
158
 
159
  | Reference | Accuracy | What it is |
160
  |---|---|---|
 
162
  | Perfect scenario understanding | 0.704 | a model fitted to the latent factors that generated each case, cross-validated |
163
  | Teacher self-agreement | 0.735 | a fresh teacher sample scored against gold built from the others |
164
 
165
+ Read 0.52 as the floor. Around 0.70 is strong. Around 0.75 is saturation.
 
 
 
166
 
167
+ The factor ceiling sits below teacher self-agreement. That is not a mistake. The
168
+ teacher shares its own idiosyncrasies with the gold, and an outside model does
169
+ not get that advantage. A score much above 0.75 means a model has learned the
170
+ teacher's quirks rather than the task.
171
 
172
+ Per-question ceilings vary a lot, from 0.560 on `agent_trace/urgency` to 0.937
173
+ on `customer_service/category`. Read every score against its own question, not
174
+ against the mean.
175
 
176
+ A better model can score worse here. Anything right where the teacher is wrong
177
+ gets penalised. The teacher missed a duplicate invoice whose ID literally
178
+ matched a prior one.
179
 
180
+ ## Two ways to be scored, and why the difference matters
181
+
182
+ The System One models this benchmark is shaped after are general pretrained
183
+ models. Their API is one call that takes an arbitrary question schema at request
184
+ time. No training step, no per-workflow setup. Anything scored here should say which
185
+ of the two modes it used. The two are not comparable.
186
 
187
  | | What it is | What it needs | Can it answer an unseen question? |
188
  |---|---|---|---|
189
+ | Specialist | fitted per workflow, label spaces fixed at training time | training data for *these* workflows | No |
190
+ | Generalist | one model, arbitrary question schemas, zero-shot | training data from *other* workflows | Yes |
191
 
192
+ Train a specialist on these four workflows, score it on them, and you have
193
+ measured architecture: how cheaply many typed decisions can come out of one
194
+ input. That is a real question and this benchmark answers it well. It is not a
195
+ comparison against a general System One model, which has never seen these
196
+ workflows.
197
 
198
  To be scored as a generalist, train on other workflows entirely and evaluate
199
+ here zero-shot. Say which mode you used. A specialist number sitting next to a
200
+ generalist number, unlabelled, misleads the reader.
201
+
202
+ ## Splits
203
+
204
+ Two splits, generated independently. `test` is the benchmark. `train` comes from
205
+ a separate run at a different seed, with prefixed case ids. Packaging verifies
206
+ that no case id and no state appears in both, and refuses to build if either
207
+ does.