Add ProKope-421M (Alan Canto) to Table 2 (fine-tuned models)

#20
Files changed (1) hide show
  1. README.md +1 -241
README.md CHANGED
@@ -1,241 +1 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- pretty_name: Typed Decisions
6
- size_categories:
7
- - n<1K
8
- task_categories:
9
- - text-classification
10
- tags:
11
- - structured-decisions
12
- - calibration
13
- - probabilistic-classification
14
- - system-one
15
- - workflow-evaluation
16
- - synthetic
17
- configs:
18
- - config_name: agent_trace_observability
19
- data_files:
20
- - split: train
21
- path: agent_trace_observability/train-*.parquet
22
- - split: test
23
- path: agent_trace_observability/test-*.parquet
24
- - config_name: customer_service
25
- data_files:
26
- - split: train
27
- path: customer_service/train-*.parquet
28
- - split: test
29
- path: customer_service/test-*.parquet
30
- - config_name: invoice_processing
31
- data_files:
32
- - split: train
33
- path: invoice_processing/train-*.parquet
34
- - split: test
35
- path: invoice_processing/test-*.parquet
36
- - config_name: security_incidents
37
- data_files:
38
- - split: train
39
- path: security_incidents/train-*.parquet
40
- - split: test
41
- path: security_incidents/test-*.parquet
42
- - config_name: all
43
- data_files:
44
- - split: train
45
- path: all/train-*.parquet
46
- - split: test
47
- path: all/test-*.parquet
48
- ---
49
-
50
- # Typed Decisions
51
-
52
- A benchmark for typed probabilistic decisions. A model gets one piece of
53
- unstructured state and answers five typed questions about it at once, and every
54
- answer is a probability distribution, not a single label.
55
-
56
- The schema follows the System One primitives (`noul`, `choice`, `score`) used by
57
- [TypeSafe AI](https://typesafe.ai), so a row replays against any API with that
58
- shape. The benchmark is independent: it is not affiliated with TypeSafe and does
59
- not reproduce their Jev model.
60
-
61
- ![Accuracy against KL divergence and against latency for every scored model](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/resolve/main/assets/leaderboard.png)
62
-
63
- ## Leaderboard
64
-
65
- `test` split: 400 cases, 2,000 decisions. This table lists general models scored
66
- zero-shot: they have never seen these workflows or their question schemas.
67
- Models that were fitted or fine-tuned on `train` are in the second table below;
68
- the two tables are not comparable.
69
-
70
- | # | Model | Kind | Accuracy ↑ | KL from gold ↓ | Brier ↓ | ECE ↓ | p50 latency | Price / 1M input |
71
- |---|---|---|---|---|---|---|---|---|
72
- | 1 | **[meraGPT Decider 1](https://meragpt.com/models/state-decider-1?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=typed-decisions)** (`sd-1`) | general, zero-shot | **0.768** | **0.096** | **0.052** | 0.180 | **526 ms** | **$0.03** |
73
- | 2 | [Liquid AI d1](https://docs.liquid.ai/lfm/models/decision-models) (`d1:free`) | general, zero-shot | 0.742 | 0.475 | 0.155 | 0.124 | 525 ms | free tier |
74
- | 3 | TypeSafe Jev 1.13.0 | general, zero-shot | 0.727 | 1.442 | 0.148 | 0.144 | 710 ms | $0.042 |
75
- | 4 | [Featherless Simple Jev](https://simple-jev.featherless.ai) (`Qwen3.6-35B-A3B-classifier`) | general, zero-shot | 0.716 | 0.488 | 0.176 | – | – | free demo |
76
- | 5 | [prima-ratio + 12B](https://github.com/andrea-tomassi/prima-ratio) § | general, zero-shot | 0.702 | 0.564 | 0.234 | 0.146 | 700 ms‡ | local GGUF |
77
- | 6 | [OpenDecider-small](https://huggingface.co/manjunathshiva/opendecider-small) § | general, zero-shot, open weights | 0.671 | 0.211 | 0.117 | – | 40 ms‡ | open weights |
78
- | 7 | [Bongard-mini](https://huggingface.co/AgentBull/bongard-mini) § | general, zero-shot, open weights | 0.594 | 0.256 | 0.132 | 0.067 | 225 ms‡ | open weights |
79
- | 8 | [Jeff-Gemma4-E2B](https://huggingface.co/mstrasser/Jeff-Gemma4-E2B) | general, zero-shot, open weights | 0.561 | 0.403 | 0.219 | 0.188 | 2,272 ms† | open weights |
80
- | 9 | [Jeff-Qwen3.5-2B](https://huggingface.co/mstrasser/Jeff-Qwen3.5-2B) | general, zero-shot, open weights | 0.511 | 0.460 | 0.237 | 0.203 | 1,346 ms† | open weights |
81
- | 10 | [Jeff-Qwen3.5-0.8B](https://huggingface.co/mstrasser/Jeff-Qwen3.5-0.8B) | general, zero-shot, open weights | 0.483 | 0.679 | 0.313 | 0.251 | 662 ms† | open weights |
82
- | – | Prior (ignores the input) | reference | 0.470 | 0.347 | 0.189 | 0.088 | – | – |
83
- | – | Uniform (same probability on every option) | reference | 0.308 | 0.444 | 0.238 | 0.169 | – | – |
84
-
85
- Every row was scored by sending the whole case (state plus all five questions) in
86
- one request. Request shape matters: in a third-party run Jev's yes/no accuracy was
87
- 0.843 with one question per request and 0.788 alongside the others.
88
-
89
- Hosted rows are p50 end to end from a client, one request at a time.
90
- † Measured on the same machine as the model (M3 Max), not comparable with hosted latency.
91
- ‡ Reported by the submitter on their own hardware (a different GPU and a different unit for each), not comparable with the other rows.
92
- § Self-reported by the submitter in the linked discussion and not re-run by us. Metric definitions follow the submitter's report; ECE in particular is computed differently by different submitters.
93
-
94
- ### Fitted or fine-tuned on `train`
95
-
96
- These models were trained on this benchmark's `train` split, so they are not
97
- zero-shot and their scores are not comparable with the table above. All were
98
- self-reported in the linked discussions and were not re-run by us, except the two
99
- specialists marked ours and the three Bekko rows, which we scored ourselves. Scores well above the 0.735 teacher self-agreement mean a
100
- model is learning the teacher's quirks.
101
-
102
- | Model | Kind | Accuracy ↑ | KL from gold ↓ | Brier ↓ | ECE ↓ | Reported latency |
103
- |---|---|---|---|---|---|---|
104
- | [OpenDecider-large-td](https://huggingface.co/manjunathshiva/opendecider-large-td) (Qwen3-Next-80B-A3B + LoRA) | general, then fine-tuned on `train` | 0.801 | 0.081 | 0.044 | – | 440 ms‡ |
105
- | [od1-typed-decisions](https://huggingface.co/mvbalaji/od1-typed-decisions) (Qwen3.5-4B) | specialist | 0.797 | 0.082 | 0.045 | 0.156¶ | – |
106
- | [OpenDecider-nano](https://huggingface.co/manjunathshiva/opendecider-nano) (400M encoder) | general, then fine-tuned on `train` | 0.796 | 0.079 | 0.043 | – | 17 ms‡ |
107
- | [OpenDecider-small-td](https://huggingface.co/manjunathshiva/opendecider-small-td) (Qwen3-4B + LoRA) | general, then fine-tuned on `train` | 0.792 | 0.080 | 0.043 | – | 40 ms‡ |
108
- | [OpenDecider-medium-td](https://huggingface.co/manjunathshiva/opendecider-medium-td) (Qwen3-30B-A3B + LoRA) | general, then fine-tuned on `train` | 0.788 | 0.081 | 0.044 | – | 214 ms‡ |
109
- | [soft-decider-421m](https://huggingface.co/winwinwinbb/soft-decider-421m) | specialist | 0.774 | – | – | 0.141¶ | 50 ms‡ |
110
- | [Laya typed-decisions](https://huggingface.co/convaiinnovations/laya-typed-decisions) | fitted on `train` | 0.766 | – | – | – | – |
111
- | [Bekko System One v0 400M](https://huggingface.co/hotchpotch/bekko-system-one-v0-400m), scored by us | trained on `train` and other data | 0.668 | 0.214 | 0.113 | 0.143 | 808 ms† |
112
- | ModernBERT-base (149M), ours | specialist, fitted per workflow | 0.646 | 0.223 | 0.119 | 0.179 | 349 ms† |
113
- | MiniLM-L6 (22M), ours | specialist, fitted per workflow | 0.587 | 0.262 | 0.143 | 0.108 | 22 ms† |
114
- | [Bekko System One v0 68M](https://huggingface.co/hotchpotch/bekko-system-one-v0-68m), scored by us | trained on `train` and other data | 0.537 | 0.293 | 0.160 | 0.116 | 176 ms† |
115
- | [Bekko System One v0 17M](https://huggingface.co/hotchpotch/bekko-system-one-v0-17m), scored by us | trained on `train` and other data | 0.483 | 0.344 | 0.203 | 0.136 | 33 ms† |
116
-
117
- ¶ The submitter's own ECE definition, which does not match the one used above.
118
-
119
- **[meraGPT Decider 1](https://meragpt.com/models/state-decider-1?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=typed-decisions) is state of
120
- the art among zero-shot models on this benchmark.** It leads Jev on every question type (`noul` 0.840 vs
121
- 0.775, `choice` 0.733 vs 0.720, `score` 0.739 vs 0.696), its distributions sit far
122
- closer to the gold (KL 0.096 vs 1.442), it is faster end to end, and it costs less
123
- per token. It answers `POST /v1/systemone` at
124
- [meragpt.com](https://meragpt.com/docs/systemone?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=typed-decisions), so the typesafe-sdk works
125
- against it by setting `TYPESAFE_BASE_URL`.
126
-
127
- To add a model, score it on `test` with the full distributions and open a
128
- discussion with the numbers and the mode (specialist or general) it used.
129
-
130
- ### Notes on the rows
131
-
132
- - **Liquid AI d1** was measured on 2026-09-30 through Liquid's API
133
- (`https://api.liquid.ai/v1/systemone`, `model: d1:free`), with the same client
134
- code as the Jev row: all 2,000 decisions, zero errors. It ties Decider 1 on
135
- `noul` (0.840) and `choice` (0.732 vs 0.733) and trails on `score` (0.677 vs
136
- 0.739), and it beats Jev on accuracy and KL. Liquid lists no per-token price
137
- yet, so the row shows the free tier.
138
- - **Jev 1.13.0** was measured on 2026-09-18 through TypeSafe's API (`jev-latest`,
139
- which reported `jev-1.13.0`): all 2,000 decisions, zero errors, $0.016 in total.
140
- Its accuracy is near the 0.735 ceiling, but it puts nearly all its probability
141
- on one answer, which is where the KL gap comes from. Its confidence is not badly
142
- calibrated (overconfidence +0.023); the gold is a three-sample spread it does not
143
- reproduce.
144
- - **Jeff** ([firelex/jeff](https://github.com/firelex/jeff), Apache-2.0) was scored
145
- on 2026-09-29 through the same client code as Jev, against Jeff's own
146
- `jeff-serve` (commit `2c1bfce`) with the calibration each checkpoint ships. All
147
- three clear the Prior on accuracy but not on KL. Jeff's own 83.1% comes from a
148
- different five-benchmark panel. If there is a better way to serve them, open a
149
- discussion and we will rescore.
150
- - **Self-reported rows** (§ above, and the second table) come from discussions
151
- [#5](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/5)
152
- (prima-ratio), [#7](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/7)
153
- (Bongard-mini), [#8](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/8)
154
- (OpenDecider), [#4](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/4)
155
- (od1), [#3](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/3)
156
- (soft-decider) and [#2](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/2)
157
- (Laya). Each submitter states the mode; we have not re-run them. If a number looks
158
- wrong, say so in the discussion and we will correct it.
159
- - **Bekko System One v0** ([hotchpotch](https://huggingface.co/collections/hotchpotch/bekko-system-one-v0-6abc47eab9c4fe4ec83d9e30)) was scored by us on 2026-10-01 on CPU (M3 Max, one call per case with all five questions, pinned revisions `b886a1f9` 17M, `ab7685f2` 68M, `1960df56` 400M), with the same scorer as the other rows. Its training data includes this benchmark's `train` split, with our teacher labels, so it sits in the second table; none of our 400 test cases are in its training data. We mapped our option and rubric text onto its candidate format in our option order. Its model cards say the license is not yet finalized. The author invited a score on X; we are glad to re-score with a different input mapping if he prefers.
160
- - **Specialists** use [Adaptive Classifier](https://github.com/codelion/adaptive-classifier)
161
- 0.2.0, one classifier per question on a frozen encoder, tuned on a held-out
162
- quarter of `train` (mean pooling, `max_length` 512, 30 epochs,
163
- `prototype_weight` 0.3). Each case is entered four times, split across labels in
164
- proportion to its gold, so the soft target survives hard-label training; that
165
- cut KL by a third.
166
- - **Prior** answers each question's `train` label frequencies for every case. It
167
- has the best ECE while knowing nothing, which is why KL and Brier are the
168
- columns to read, not ECE.
169
-
170
- ## Reading a score
171
-
172
- Gold is the mean of three samples from a teacher of roughly 4B-class capability,
173
- so a score measures agreement with that teacher, not correctness. A better model
174
- can score lower wherever the teacher is wrong (it missed a duplicate invoice whose
175
- ID matched an earlier one).
176
-
177
- | Reference | Accuracy | What it is |
178
- |---|---|---|
179
- | Prior | 0.470 | the floor: label frequencies, ignoring the input |
180
- | Perfect factor recovery | 0.704 | a model fitted to the latent factors that generated each case |
181
- | Teacher self-agreement | 0.735 | a fresh teacher sample against gold built from the others |
182
-
183
- Scores well above 0.735 mean a model is learning the teacher's quirks. Per-question
184
- ceilings vary from 0.560 (`agent_trace/urgency`) to 0.937
185
- (`customer_service/category`), so read scores per question as well as on average.
186
-
187
- **Specialist and general numbers are not comparable.** A specialist is fitted on
188
- `train` for these four workflows and cannot answer anything else. A general model
189
- takes any question schema at request time and has never seen these. Say which
190
- mode you used; the gap between them is the price of generality, not a quality
191
- ranking.
192
-
193
- ## The data
194
-
195
- | Type | Answer | Shape |
196
- |---|---|---|
197
- | `noul` | yes/no | probability that the statement is true |
198
- | `choice` | one of N labels | distribution over labels, plus confidence |
199
- | `score` | an ordered rubric | distribution over levels, plus an expected score |
200
-
201
- Every option carries a written description in `criteria`, and the descriptions
202
- are part of the input.
203
-
204
- | Workflow | Decision | Train | Test |
205
- |---|---|---|---|
206
- | `agent_trace_observability` | Does an agent run need human review, and how urgently? | 300 | 100 |
207
- | `customer_service` | The right response and action for a customer thread and account. | 300 | 100 |
208
- | `invoice_processing` | Pay, hold or reject a vendor bill against its order and delivery. | 300 | 100 |
209
- | `security_incidents` | Close, investigate or contain a security alert, given machine history. | 300 | 100 |
210
-
211
- `state` and `questions` together are exactly the body of a `POST /v1/systemone`
212
- request. `gold` holds the full gold distributions, and flat
213
- `<question>__label` / `__probabilities` / `__score` / `__probability_true` columns
214
- hold the same answers for convenience. `factors` and `label_agreement` describe how
215
- the case was built and are not model input.
216
-
217
- ```python
218
- from datasets import load_dataset
219
- import json
220
-
221
- ds = load_dataset("LocalLLaMA/typed-decisions", "customer_service", split="test")
222
- row = ds[0]
223
- state, questions, gold = (json.loads(row[k]) for k in ("state", "questions", "gold"))
224
- print(gold["urgency"]["probabilities"]) # score against the full distribution
225
- ```
226
-
227
- Report KL or log loss and Brier next to accuracy; calibration is the point.
228
-
229
- ## How it was built
230
-
231
- Each case starts from independently sampled latent factors (topic, tone,
232
- severity, discrepancy type and so on), which a model renders into free text where
233
- the artefact is textual and keeps structured where it is structured. A teacher
234
- labels each case three times at temperature 0.7, and the gold is the mean of those
235
- distributions, so it stays soft where a decision is genuinely ambiguous. Before
236
- release, an audit checks state diversity, label balance, and that the gold
237
- actually tracks the input. `train` comes from a separate run at a different seed;
238
- packaging refuses to build if any case id or state appears in both splits.
239
-
240
- The write-up behind the benchmark, including the two bugs it exposed in the
241
- classifier library: [Typed Decisions on Latent Node](https://latentnode.pages.dev/articles/typed-decisions.html).
 
1
+ C:\Users\Alanc\.gemini\antigravity-ide\brain\93603cdd-3dfc-4596-ae0b-37dc64cbead6\scratch\README_td_updated.md