Datasets:
Tasks:
Text Classification
Formats:
parquet
Languages:
English
Size:
1K - 10K
Tags:
Synthetic
structured-decisions
calibration
probabilistic-classification
system-one
workflow-evaluation
License:
rewrite dataset card
Browse files48 unmodified lines49505152535455565758596061626364656667686970717273743 unmodified lines78798081828384854 unmodified lines909192939495961 unmodified line989910010110210310410510610710810911011111211311411511613 unmodified lines1301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591 unmodified line16116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225348 unmodified lines# Typed DecisionsA benchmark for **typed probabilistic decisions over shared state**: given onepiece of unstructured state, answer several typed questions at once, each with acalibrated probability distribution rather than a single label.It follows the System One decision schema used by[TypeSafe AI](https://typesafe.ai) — three question primitives (`noul`, `choice`,`score`) — so a row is directly replayable against any API that implements thatshape. This is an **independent** benchmark built to study the architecture; itis not affiliated with TypeSafe, and it is not a reproduction of their Jev model.## What it is forThe question behind the dataset: *does decomposing a workflow into typedprobabilistic decisions — especially with a shared encoder — give a favourableaccuracy / calibration / latency trade-off compared with direct classificationor with prompting an LLM?*Answering that needs a benchmark where several typed questions share one input,where the answers are genuinely probabilistic, and where latency per decision ismeasurable. That is what this is.## The three question types3 unmodified lines| `choice` | one of N labels | a distribution over labels, plus confidence || `score` | an ordered rubric | a distribution over integer levels, plus an *expected* score that may fall between levels |Every option carries a written description (`criteria`). The descriptions arepart of the input: a bare label list is a different, easier task.## Workflows4 unmodified lines| `invoice_processing` | Review a vendor bill against the order and delivery to determine payment, hold or rejection. | 300 | 100 || `security_incidents` | Decide whether a security alert should be closed, investigated, or contained, from alert data and machine history. | 300 | 100 |Each case asks **5 questions over one shared state**.## Columns1 unmodified line|---|---|| `id` | Case identifier || `workflow` | Which workflow the case belongs to || `state` | JSON. The unstructured state — the model's input || `questions` | JSON. The question set, with instructions and criteria || `gold` | JSON. Full gold answers including every probability || `factors` | JSON. Latent factors used to build the case. **For auditing only — not model input** || `label_agreement` | JSON. Per question, how much the teacher samples disagreed || `<question>__label` | Discrete gold answer || `<question>__confidence` | Gold confidence, on the System One scale || `<question>__probabilities` | JSON. Full gold distribution || `<question>__score` | Expected score (`score` questions) || `<question>__probability_true` | Probability of yes (`noul` questions) |`state` and `questions` together are exactly the body of a `POST /v1/systemone`request, so a row can be replayed without reshaping.## Usage13 unmodified linesprint(gold["urgency"]["probabilities"]) # distribution over rubric levels```Scoring should use the **full distributions**, not just the argmax: the point ofthe benchmark is calibration. Report log loss, Brier score and ECE alongsideaccuracy.## How it was built1. **Latent skeleton sampled.** Each case starts from independently drawnfactors (topic, tone, tenure, severity, discrepancy type, whether aconstraint was violated, …) from spaces large enough that states essentiallynever repeat.2. **State rendered**, with free text written by a model conditioned on theskeleton where the task is textual (customer threads, alert narratives) andleft structured where it genuinely is (invoices, agent traces).3. **Labelled by a teacher endpoint**, sampled 3 times per case attemperature 0.7; the gold is the **mean of the sampleddistributions**. Averaging over distributions rather than argmax labels iswhat makes the gold soft where the decision is genuinely ambiguous.4. **Audited before release** — see `AUDIT.md`.## What a score here meansGold is the mean of three samples from a ~4B-class teacher endpoint, so a scoremeasures **agreement with that teacher**, not correctness. Three reference points,all measured on these 400 cases:| Reference | Accuracy | What it is ||---|---|---|1 unmodified line| Perfect scenario understanding | 0.704 | a model fitted to the latent factors that generated each case, cross-validated || Teacher self-agreement | 0.735 | a fresh teacher sample scored against gold built from the others |**Read 0.52 as the floor, ~0.70 as strong, ~0.75 as saturation.** The factorceiling sits *below* teacher self-agreement because the teacher shares its ownidiosyncrasies with the gold and an outside model does not. A score much above0.75 means a model has learned the teacher's quirks rather than the task.Per-question ceilings vary widely -- from 0.560 on `agent_trace/urgency` to0.937 on `customer_service/category` -- so every score should be read againstits own question, not against the mean.A better model can score *worse*: anything right where the teacher is wrong ispenalised. The teacher missed a duplicate invoice whose ID literally matched aprior one.## Two ways to be evaluated on this, and why it mattersThe System One models this benchmark is shaped after are **general pretrainedmodels**: their API exposes one call that takes an arbitrary question schema atrequest time, with no training step and no per-workflow setup. Anything scoredhere should say which of these it is, because the two are not comparable:| | What it is | What it needs | Can it answer an unseen question? ||---|---|---|---|| **Specialist** | fitted per workflow, label spaces fixed at training time | training data for *these* workflows | No || **Generalist** | one model, arbitrary question schemas, zero-shot | training data from *other* workflows | Yes |A specialist trained on these four workflows and scored on them is measuring**architecture** — how cheaply many typed decisions can be produced from oneinput. That is a legitimate question and this benchmark answers it well. It is*not* a comparison against a general System One model, which has never seenthese workflows.To be scored as a generalist, train on other workflows entirely and evaluatehere zero-shot. Publish which mode you used; a specialist number next to ageneralist number, unlabelled, is a misleading comparison.## Honest limitations**The gold is a teacher signal, not ground truth.** It comes from a model ofroughly 4B-class capability, sampled three times and averaged. The benchmarkmeasures how well a system reproduces that teacher's typed decisions — thedistillation question a small decision model actually faces. It is **not** aclaim that the teacher's answers are correct, and teacher errors are present:in the pilot it missed a duplicate invoice whose ID literally matched a priorone.**The states are synthetic.** They are built from sampled factors and generatedtext, not drawn from real support queues, SIEMs or accounts-payable systems.Results here describe architecture and systems behaviour, not real-worldaccuracy.**It is small.** 1600 cases, 8000 typed decisions -- all of themheld out. Enough for decision-level metrics; thin for strong per-workflow claims.The generator is seeded and extensible, so the benchmark can grow withoutinvalidating these cases.**Train and test are generated separately and verified disjoint.** The `test`split is the benchmark; the `train` split comes from a different seed withnamespaced case ids. The packaging step checks that no case id and no stateappears in both and refuses to build if either does -- that check exists becausethe v0.1 prototype leaked exactly this way and nobody noticed until models hadalready been benchmarked on it.## What the audit checksThe **v1 prototype** failed in a way nothing caught until models had been benchmarkedon it: its decisions were sampled independently of the input, so four of fivequestions were pure noise, and every input string appeared in all three splits.v2 gates on that:- **Diversity** — distinct states, and whether any repeat.- **Learnability** — mutual information between the gold and the known latentfactors, as a fraction of label entropy. Near zero is the v1 failure.- **Label balance** — whether a question collapses onto one answer, tested onthe Wilson lower bound so a rare-but-real event is not condemned by a smallsample.- **Stability** — how much the teacher samples disagreed per question.- **Softness** — how much gold mass sits away from the argmax, since all-one-hotgold makes calibration untestable.Current audit: **0 flag(s)**.## Citation```bibtex@misc{typeddecisions,title = {Typed Decisions: a benchmark for typed probabilistic decisions over shared state},year = {2026},url = {https://huggingface.co/datasets/codelion/typed-decisions}}```48 unmodified lines49505152535455565758596061626364656667686970717273743 unmodified lines78798081828384854 unmodified lines909192939495961 unmodified line989910010110210310410510610710810911011111211311411511613 unmodified lines1301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601 unmodified line16216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620748 unmodified lines# Typed DecisionsA benchmark for typed probabilistic decisions over shared state. You give amodel one piece of unstructured state. It answers several typed questions aboutthat state at once, and every answer is a probability distribution rather than asingle label.The schema follows the System One primitives used by[TypeSafe AI](https://typesafe.ai): `noul`, `choice` and `score`. A row replays against any API that implements that shape. This benchmark isindependent. It is not affiliated with TypeSafe and it does not reproducetheir Jev model.## What it is forOne question sits behind the dataset. Does breaking a workflow into typedprobabilistic decisions, especially with a shared encoder, buy you a betteraccuracy / calibration / latency trade-off than direct classification or thanprompting an LLM?Answering that needs several typed questions over one input, answers that aregenuinely probabilistic, and latency you can measure per decision. That is whatthis is.## The three question types3 unmodified lines| `choice` | one of N labels | a distribution over labels, plus confidence || `score` | an ordered rubric | a distribution over integer levels, plus an *expected* score that may fall between levels |Every option carries a written description in `criteria`. Those descriptions are part of the input. Strip them to a bare label list andyou have a different, easier task.## Workflows4 unmodified lines| `invoice_processing` | Review a vendor bill against the order and delivery to determine payment, hold or rejection. | 300 | 100 || `security_incidents` | Decide whether a security alert should be closed, investigated, or contained, from alert data and machine history. | 300 | 100 |Each case asks 5 questions over one shared state.## Columns1 unmodified line|---|---|| `id` | Case identifier || `workflow` | Which workflow the case belongs to || `state` | JSON. The unstructured state, which is the model's input || `questions` | JSON. The question set, with instructions and criteria || `gold` | JSON. Full gold answers including every probability || `factors` | JSON. Latent factors used to build the case. Not model input || `label_agreement` | JSON. Per question, how much the teacher samples disagreed || `<question>__label` | Discrete gold answer || `<question>__confidence` | Gold confidence, on the System One scale || `<question>__probabilities` | JSON. Full gold distribution || `<question>__score` | Expected score, for `score` questions || `<question>__probability_true` | Probability of yes, for `noul` questions |`state` and `questions` together are exactly the body of a `POST /v1/systemone`request. You can replay a row without reshaping it.## Usage13 unmodified linesprint(gold["urgency"]["probabilities"]) # distribution over rubric levels```Score against the full distributions, not just the argmax. Calibration is thepoint. Report log loss, Brier score and ECE next to accuracy.## How it was built1. Sample a latent skeleton. Each case starts from independently drawn factors:topic, tone, tenure, severity, discrepancy type, whether a constraint wasviolated, and so on. The spaces are large enough that states essentiallynever repeat.2. Render the state. Free text is written by a model conditioned on theskeleton where the task is textual, as in customer threads and alertnarratives. It stays structured where the artefact genuinely is structured,as in invoices and agent traces.3. Label it with a teacher endpoint, sampled 3 times per case attemperature 0.7. The gold is the mean of the sampleddistributions. Averaging distributions instead of argmax labels is whatleaves the gold soft where a decision is genuinely ambiguous.4. Check before release: state diversity, label balance, and whether the goldactually tracks the input.## What a score here meansGold is the mean of three samples from a teacher endpoint of roughly 4B-classcapability. A score measures agreement with that teacher. It does not measurecorrectness. Three reference points, all measured on the 1600-case set:| Reference | Accuracy | What it is ||---|---|---|1 unmodified line| Perfect scenario understanding | 0.704 | a model fitted to the latent factors that generated each case, cross-validated || Teacher self-agreement | 0.735 | a fresh teacher sample scored against gold built from the others |Read 0.52 as the floor. Around 0.70 is strong. Around 0.75 is saturation.The factor ceiling sits below teacher self-agreement. That is not a mistake. Theteacher shares its own idiosyncrasies with the gold, and an outside model doesnot get that advantage. A score much above 0.75 means a model has learned theteacher's quirks rather than the task.Per-question ceilings vary a lot, from 0.560 on `agent_trace/urgency` to 0.937on `customer_service/category`. Read every score against its own question, notagainst the mean.A better model can score worse here. Anything right where the teacher is wronggets penalised. The teacher missed a duplicate invoice whose ID literallymatched a prior one.## Two ways to be scored, and why the difference mattersThe System One models this benchmark is shaped after are general pretrainedmodels. Their API is one call that takes an arbitrary question schema at requesttime. No training step, no per-workflow setup. Anything scored here should say whichof the two modes it used. The two are not comparable.| | What it is | What it needs | Can it answer an unseen question? ||---|---|---|---|| Specialist | fitted per workflow, label spaces fixed at training time | training data for *these* workflows | No || Generalist | one model, arbitrary question schemas, zero-shot | training data from *other* workflows | Yes |Train a specialist on these four workflows, score it on them, and you havemeasured architecture: how cheaply many typed decisions can come out of oneinput. That is a real question and this benchmark answers it well. It is not acomparison against a general System One model, which has never seen theseworkflows.To be scored as a generalist, train on other workflows entirely and evaluatehere zero-shot. Say which mode you used. A specialist number sitting next to ageneralist number, unlabelled, misleads the reader.## SplitsTwo splits, generated independently. `test` is the benchmark. `train` comes froma separate run at a different seed, with prefixed case ids. Packaging verifiesthat no case id and no state appears in both, and refuses to build if eitherdoes.
README.md+74-120