Datasets:
Tasks:
Text Classification
Formats:
parquet
Languages:
English
Size:
1K - 10K
Tags:
structured-decisions
calibration
probabilistic-classification
system-one
workflow-evaluation
Synthetic
License:
rewrite dataset card
Browse files
README.md
CHANGED
|
@@ -49,26 +49,26 @@ configs:
|
|
| 49 |
|
| 50 |
# Typed Decisions
|
| 51 |
|
| 52 |
-
A benchmark for
|
| 53 |
-
piece of unstructured state
|
| 54 |
-
|
|
|
|
| 55 |
|
| 56 |
-
|
| 57 |
-
[TypeSafe AI](https://typesafe.ai)
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
is not affiliated with TypeSafe, and it is not a reproduction of their Jev model.
|
| 61 |
|
| 62 |
## What it is for
|
| 63 |
|
| 64 |
-
|
| 65 |
-
probabilistic decisions
|
| 66 |
-
accuracy / calibration / latency trade-off
|
| 67 |
-
|
| 68 |
|
| 69 |
-
Answering that needs
|
| 70 |
-
|
| 71 |
-
|
| 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
|
| 82 |
-
|
| 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
|
| 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
|
| 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.
|
| 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
|
| 110 |
-
| `<question>__probability_true` | Probability of yes
|
| 111 |
|
| 112 |
`state` and `questions` together are exactly the body of a `POST /v1/systemone`
|
| 113 |
-
request
|
| 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 |
-
|
| 134 |
-
|
| 135 |
-
accuracy.
|
| 136 |
|
| 137 |
## How it was built
|
| 138 |
|
| 139 |
-
1.
|
| 140 |
-
|
| 141 |
-
|
| 142 |
never repeat.
|
| 143 |
-
2.
|
| 144 |
-
skeleton where the task is textual
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
|
|
|
| 151 |
|
| 152 |
## What a score here means
|
| 153 |
|
| 154 |
-
Gold is the mean of three samples from a
|
| 155 |
-
measures
|
| 156 |
-
all measured on
|
| 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 |
-
|
| 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 |
-
|
| 170 |
-
|
| 171 |
-
|
|
|
|
| 172 |
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
|
| 177 |
-
|
|
|
|
|
|
|
| 178 |
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
|
|
|
|
|
|
| 183 |
|
| 184 |
| | What it is | What it needs | Can it answer an unseen question? |
|
| 185 |
|---|---|---|---|
|
| 186 |
-
|
|
| 187 |
-
|
|
| 188 |
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
input. That is a
|
| 192 |
-
|
| 193 |
-
|
| 194 |
|
| 195 |
To be scored as a generalist, train on other workflows entirely and evaluate
|
| 196 |
-
here zero-shot.
|
| 197 |
-
generalist number, unlabelled,
|
| 198 |
-
|
| 199 |
-
##
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|