diff --git a/demos/README.md b/demos/README.md index 02cd834..c01909f 100644 --- a/demos/README.md +++ b/demos/README.md @@ -11,8 +11,9 @@ is a component that stands alone, or a larger system built from them. | [catalog](catalog/BRIEF.md) | take in entities: resolve, classify under adopted schemes, attach claims with trust | entity-resolution | | [cognitive-model](cognitive-model/BRIEF.md) | the Common Model of Cognition on Claude Code | catalog, and the rest of its spec | | [fernhill](fernhill/README.md) | an engagement on a made-up kitchen firm: mapped from its documents and an interview, one opportunity judged, options for one role, a report of implementation projects | the kit alone (no code to build) | +| [research-loop](research-loop/README.md) | the research loop's phase 0: one session's papers as options and evidence claims with their conditions, and a trial's outcome against them ([docs/research-loop.md](../docs/research-loop.md)) | the kit alone (records, no code to build) | -Build the first three in that order: each one's cells become available to the next. `fernhill` stands alone. +Build the first three in that order: each one's cells become available to the next. `fernhill` and `research-loop` stand alone. ## Rules diff --git a/demos/research-loop/README.md b/demos/research-loop/README.md new file mode 100644 index 0000000..5a136e6 --- /dev/null +++ b/demos/research-loop/README.md @@ -0,0 +1,80 @@ +# The research loop, phase 0: one session recorded as data + +Phase 0 of [docs/research-loop.md](../../docs/research-loop.md): the loop run once by hand, then written down in the +form the later phases will read. The session is MetaSoar's of 2026-11-25. It read five papers on decision models and +on when to think (MetaSoar's +[`docs/decision-backends.md`](https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md)). +It then ran the cheapest informative trial, E-04a: MetaSoar's own models read as decision models on JevBench, +against Jev's own predictions +([`trials/decision-readout`](https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout)). +Nothing here runs a model. These are records, and a check that they hold together. + +## Layout + +| Path | What it holds | +| --- | --- | +| `catalog-info.yaml` | the `metasoar` System, and a `Location` naming the two files below | +| `catalog/map.yaml` | our side: three roles (`decision-backend`, its `readout-calibration`, `think-router`) and this system's conditions as `Resource`s (LFM3 1.7B Q6_K, Inkling 2 Mini Q4_K, llama.cpp b12627, the GTX 1070 with 8 GB, JevBench at `ed50fe0`) | +| `catalog/options.yaml` | 13 options, one `Component` with `spec.lifecycle: candidate` per method the papers measured; each lists its claim files in `spec.morphogen.evaluation.evidence` | +| `claims/arxiv-*/` | 18 claims from the five papers, one file each ([schemas/evidence-claim.v1.json](../../schemas/evidence-claim.v1.json)), with their conditions and their status for `system:default/metasoar` | +| `claims/e04a/`, `claims/probe/` | 7 of our own observations: six from E-04a's LFM3 run, one from the probe the note records. Each is a claim with `source.kind: trial` (or `probe`) and `reporting: ours`, which a paper claim's outcome links to | +| `check.py` | validates every claim and every option, and the links between them | + +The claims are not `Location` targets, so the judge never reads them (docs/research-loop.md, "Where evidence claims +live"). + +## What was recorded + +| Claim (paper) | Option | Status here | p (transfer) | +| --- | --- | --- | --- | +| `gates-likelihood-readout-27-31b-matches-jev` (2610.00346) | likelihood-readout | **did-not-transfer** (E-04a; falsifier met) | none written before | +| `gates-temperature-fixes-calibration` (2610.00346) | temperature-scaling | **replicated** on our setup | none written before | +| `gates-order-effects-untrained` (2610.00346) | likelihood-readout | **replicated** on our setup (a different swap) | none written before | +| `jeval-first-token-readout` (2610.03935) | likelihood-readout | **replicated**, in the qualitative sense only | none written before | +| `gates-embedding-logreg-labelled` (2610.00346) | embedding-logreg | predicted | 0.6 | +| `gates-temperature-option-count` (2610.00346) | temperature-scaling | predicted | 0.7 | +| `jeval-distillation-reasoning-heavy` (2610.03935) | self-distilled-readout | predicted | 0.7 | +| `dart-draft-agreement` (2606.23181) | dart-draft-agreement | predicted | 0.55 | +| `dart-mc-binary-collapses` (2606.23181) | ask-to-think | predicted | 0.7 | +| `zsconf-answer-logprob-auroc` (2605.02241) | answer-logprob-confidence | predicted | 0.6 | +| `zsconf-embedding-router-ood` (2605.02241) | embedding-logreg | predicted | 0.65 | +| `gates-finetuned-classifier-clinc150`, `gates-stated-probabilities-unparseable`, `gates-thresholds-per-model-task`, `gates-cascade-needs-labels`, `jeval-qwen35-4b-thinking`, `jeval-self-distillation-27b`, `lwt-grpo-think-mode` | | untested, each with its reason | | + +**The one outcome that bears most:** the gates paper found that two untuned models of 27B and 31B, read by the +likelihood of each option key, matched Jev. Read the same way, LFM3 1.7B untuned reached a pooled accuracy of 0.528 +[0.508, 0.547], against Jev 1.13's 0.842 [0.828, 0.857], on the same 3,412 JevBench cases. Its coverage at 5% risk +was 0.09, against Jev's 0.67. After one temperature per slice, its calibration error matched Jev's (0.026 against +0.024), so the claim about temperature scaling did hold here. The gap is accuracy, not calibration. + +## How to read it + +- **The papers' numbers come through the note.** None of the five papers was quoted, so each paper claim has an + empty `source.quote` with `quote_status: none`, and carries the note's own sentence in `source.via.quote`. The + conditions are only what the note states. Anything that matters but is not stated is listed in + `conditions.unstated`. Phase 1 takes the quotes from the papers themselves. +- **Our own numbers are quoted from MetaSoar at a commit,** and `check.py --metasoar` matches every such quote + against that file. There are 36 quotes in all, from the claims and from the map's evidence annotations. +- **The predictions are a draft.** The seven probabilities were written by the agent that recorded this session. It + mapped the note's qualitative status column ("supported", "weak", "brittle out of distribution") onto numbers, and + each one says so in `prediction.by`. The owner should revise them before any outcome arrives. Each has + `before_outcome: true`, so it will count towards calibration (the Brier score in docs/research-loop.md). The three + replicated claims and the one that did not transfer have no prediction. Nobody wrote a probability before E-04a ran, + so they do not count. +- **"Replicated" here means "held on our setup"** (`comparison: our-setup`). It is a transfer test of the method, + not a reproduction of the paper. A did-not-transfer is not a refutation either: the model, its precision, the + engine and the cases all differ. +- **Verdicts.** E-04a is a measurement against a falsifier registered before its outcome (MetaSoar + `docs/experiments.md`). It is not a candidate the judge decided. So the outcome that did not transfer carries + `verdict.by: falsifier`, and the others carry `by: none`. Once the readout is tuned as a cell, `by: morphogen` will + name the judge's verdict. +- **Inkling 2 Mini** is in the map but in no observation, because its E-04a run was still going. + +## Run the check + +```sh +uv run --with jsonschema==4.26.0 --with pyyaml python -I demos/research-loop/check.py --metasoar /path/to/MetaSoar +``` + +Without `--metasoar`, the quotes are not checked and everything else is. The catalog also loads with Morphogen's own +reader (`morphogen.backstage`). Its only cell is the `metasoar` System, as structure: options and roles are never +cells. diff --git a/demos/research-loop/catalog-info.yaml b/demos/research-loop/catalog-info.yaml new file mode 100644 index 0000000..59fa424 --- /dev/null +++ b/demos/research-loop/catalog-info.yaml @@ -0,0 +1,24 @@ +# The research loop, phase 0: MetaSoar's decision-backends session of 2026-11-25 recorded as data. The map's side +# (catalog/map.yaml): the System, the two roles the papers bear on, and this system's own conditions (models, +# engine, hardware, cases). The options (catalog/options.yaml): one Component with spec.lifecycle: candidate per +# method the papers measured. The claims (claims/) are files of their own, not Location targets: see README.md. +apiVersion: backstage.io/v1alpha1 +kind: System +metadata: + name: metasoar + description: >- + MetaSoar's System 1 on modest hardware: typed decisions (M-22) and when the slow model thinks (E-04), on local + models served by llama.cpp. Only the parts the session's evidence bears on are mapped here. + links: + - url: https://github.com/OpenReplicant/MetaSoar + title: MetaSoar +spec: + owner: group:default/metasoar + lifecycle: experimental +--- +apiVersion: backstage.io/v1alpha1 +kind: Location +metadata: + name: research-loop-map +spec: + targets: [./catalog/map.yaml, ./catalog/options.yaml] diff --git a/demos/research-loop/catalog/map.yaml b/demos/research-loop/catalog/map.yaml new file mode 100644 index 0000000..5034633 --- /dev/null +++ b/demos/research-loop/catalog/map.yaml @@ -0,0 +1,97 @@ +# Our side: the roles the session's papers bear on, and the conditions a claim is compared with. Evidence lines cite +# MetaSoar at a commit (repository@commit:path); demos/research-loop/check.py --metasoar checks each quote. +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: decision-backend + description: >- + The role: answer a typed question (a choice among options, or yes or no) with a probability for each option, for + MetaSoar's typed-question interface (M-22). Not filled yet: the backend is to be chosen per task after E-04. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "The typed-question interface (M-22) is well supported. The backend is not decided by the evidence," +spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: readout-calibration + description: >- + The role: turn a decision backend's raw scores into probabilities and thresholds fit to act on (debiasing over + option orders, a temperature per task, a threshold at a chosen risk). + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "What the papers do say holds at any size: an untuned readout needs work before its probabilities can be trusted." +spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar, subcomponentOf: decision-backend} +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: think-router + description: >- + The role: decide, per question, whether the slow model thinks before it answers (E-04's observers). Not filled + yet. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "E-04 with the observers reordered by evidence:" +spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: lfm3-1.7b-q6-k + description: >- + LFM3 1.7B, Q6_K, wholly on the GPU; MetaSoar's fast model. The owner notes it beats 12B and 14B models on general + benchmarks (no benchmark is cited in the note). + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`fast` is LFM3 1.7B Q6_K, wholly on the GPU, with thinking off by `enable_thinking: false`." + stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "The owner notes that LFM3 1.7B beats 12B and 14B models on general" +spec: {type: model, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: inkling-2-mini-q4-k + description: >- + Inkling 2 Mini, Q4_K, the experts of loop layers 6-12 on the GPU; MetaSoar's slow model. The owner notes it is + strong for its size. Its E-04a run was still going on 2026-11-25, so no claim here holds its numbers. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`slow` is Inkling 2 Mini Q4_K, with the experts of loop layers 6–12 on the GPU, with thinking off by" + stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "and that Inkling 2 Mini is likewise strong for its size;" +spec: {type: model, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: llama-cpp-b12627 + description: llama.cpp's server, Substrate's pinned CUDA 12 image at build b12627, on localhost only. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "Substrate's pinned llama.cpp image `server-cuda12-b12627` and model files (Substrate S-169)," +spec: {type: engine, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: gtx-1070 + description: One NVIDIA GTX 1070 with 8 GB; one model on the GPU at a time. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "108 ms per read (median) on the GTX 1070." + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`run.sh` runs both in turn, one on the GPU at a time." + stated | operator, 2026-11-25 | "GTX 1070 8 GB" +spec: {type: hardware, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: jevbench-ed50fe0 + description: >- + The Leanmcp JevBench release at revision ed50fe0: cases with a typed question, a gold answer, and Jev 1.13's, + djev 0.1's and Laya's probabilities. Ten slices used (SST-5 and BANKING77 left out). + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "the Leanmcp JevBench release, pinned at revision `ed50fe0`." +spec: {type: dataset, owner: group:default/metasoar, system: metasoar} diff --git a/demos/research-loop/catalog/options.yaml b/demos/research-loop/catalog/options.yaml new file mode 100644 index 0000000..9206b6d --- /dev/null +++ b/demos/research-loop/catalog/options.yaml @@ -0,0 +1,217 @@ +# The options: one Component with spec.lifecycle: candidate per method the session's papers measured, for the +# role it could fill. Each lists its claim files (claims/, schemas/evidence-claim.v1.json) in +# spec.morphogen.evaluation.evidence; check.py keeps that list equal to the claims whose `about` names the option. +# Where the method came from is the claims' business; the evidence annotation only says where it is described. +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: likelihood-readout + description: >- + Read a generative model as a decision model: one forward pass, no thinking, the probability of each option's key + (its first token) renormalised over the options. Untuned. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/decision-backend + evaluation: + need: >- + E-04a's falsifier, inverted: after debiasing and one temperature per slice, pooled accuracy within 10 points + of Jev's and coverage at 5% risk at least half of Jev's, on the JevBench cases. + method: E-04a, MetaSoar trials/decision-readout at facbe84 (readout.py, serve.sh, score.py) + result: LFM3 1.7B untuned does not meet it (0.528 against 0.842; coverage 0.09 against 0.67). Inkling pending. + evidence: + - claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml + - claims/arxiv-2610.00346/gates-order-effects-untrained.yaml + - claims/arxiv-2610.03935/jeval-first-token-readout.yaml + - claims/e04a/e04a-lfm3-pooled-accuracy.yaml + - claims/e04a/e04a-lfm3-coverage.yaml + - claims/e04a/e04a-lfm3-order-flip.yaml + - claims/e04a/e04a-lfm3-slices.yaml + - claims/e04a/e04a-lfm3-speed.yaml + - claims/probe/probe-lfm3-first-token.yaml +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: temperature-scaling + description: One temperature per task, fitted on held-out data, applied to a readout's option probabilities. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/readout-calibration + evaluation: + need: Calibration error at Jev's level on the same cases. + method: E-04a's `scaled` system (one temperature per slice, fitted on the `fit` half of families) + result: LFM3 1.7B pooled calibration error 0.026 against Jev's 0.024. + evidence: + - claims/arxiv-2610.00346/gates-temperature-fixes-calibration.yaml + - claims/arxiv-2610.00346/gates-temperature-option-count.yaml + - claims/e04a/e04a-lfm3-calibration.yaml +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: per-task-risk-threshold + description: A threshold for acting on a decision, set per model and per task on held-out labels at a chosen risk. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/readout-calibration + evaluation: + evidence: [claims/arxiv-2610.00346/gates-thresholds-per-model-task.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: finetuned-classifier + description: A small encoder (DeBERTa-v3-large, under 0.5B) fine-tuned on the task's labels. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/decision-backend + evaluation: + evidence: [claims/arxiv-2610.00346/gates-finetuned-classifier-clinc150.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: embedding-logreg + description: Logistic regression on sentence embeddings (BGE-small in the gates paper), trained on local labels. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: [component:default/decision-backend, component:default/think-router] + evaluation: + evidence: + - claims/arxiv-2610.00346/gates-embedding-logreg-labelled.yaml + - claims/arxiv-2605.02241/zsconf-embedding-router-ood.yaml +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: stated-probability + description: Ask the model to state a probability for each option in its reply, and parse it. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/decision-backend + evaluation: + evidence: [claims/arxiv-2610.00346/gates-stated-probabilities-unparseable.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: decision-cascade + description: A cheap first stage that answers when sure and passes the rest to a stronger, dearer stage. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/decision-backend + evaluation: + evidence: [claims/arxiv-2610.00346/gates-cascade-needs-labels.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: self-distilled-readout + description: >- + Fine-tune a model so its one-pass readout gives the answer it reaches after reasoning (SII-Decision's recipe). +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/decision-backend + evaluation: + evidence: + - claims/arxiv-2610.03935/jeval-self-distillation-27b.yaml + - claims/arxiv-2610.03935/jeval-distillation-reasoning-heavy.yaml +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: always-think + description: Let the model reason before every answer (the router's always-on end). +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/think-router + evaluation: + evidence: [claims/arxiv-2610.03935/jeval-qwen35-4b-thinking.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: dart-draft-agreement + description: >- + DART: two cheap no-think drafts; answer directly when they agree, otherwise think with a budget from the drafts' + entropy. Training-free. + links: + - url: https://github.com/js-lee-AI/DART + title: code +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/think-router + evaluation: + evidence: [claims/arxiv-2606.23181/dart-draft-agreement.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: ask-to-think + description: Ask the model whether a question needs thinking (DART's MC-Binary baseline); a typed question about thinking. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/think-router + evaluation: + evidence: [claims/arxiv-2606.23181/dart-mc-binary-collapses.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: answer-logprob-confidence + description: The mean log-probability of the model's own answer, as its confidence; think (or escalate) when it is low. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/think-router + evaluation: + evidence: [claims/arxiv-2605.02241/zsconf-answer-logprob-auroc.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: learned-think-mode + description: A model trained with GRPO to choose NoThink, Short or Long as its first token. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/think-router + evaluation: + evidence: [claims/arxiv-2608.20256/lwt-grpo-think-mode.yaml] diff --git a/demos/research-loop/check.py b/demos/research-loop/check.py new file mode 100644 index 0000000..a07ca40 --- /dev/null +++ b/demos/research-loop/check.py @@ -0,0 +1,177 @@ +"""Check the research loop's phase-0 records: every claim against schemas/evidence-claim.v1.json, every option's +spec.morphogen against schemas/morphogen-spec.v1.json, and the links between them. + + uv run --with jsonschema==4.26.0 --with pyyaml python -I demos/research-loop/check.py [--metasoar PATH] + +With --metasoar (a local clone of OpenReplicant/MetaSoar), every quote taken from MetaSoar at a commit (a claim's +source or via, and the map's evidence annotations) is also matched against the file at that commit, whitespace +collapsed. Exits non-zero on any failure. +""" + +from __future__ import annotations + +import argparse +import json +import re +import subprocess +import sys +from pathlib import Path + +import yaml +from jsonschema import Draft202012Validator + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[1] +METASOAR = "OpenReplicant/MetaSoar" + + +class Loader(yaml.SafeLoader): + """YAML as JSON sees it: a date stays a string, as the schema's `format: date` expects.""" + + +Loader.yaml_implicit_resolvers = {k: [(t, r) for t, r in v if t != "tag:yaml.org,2002:timestamp"] + for k, v in yaml.SafeLoader.yaml_implicit_resolvers.items()} + + +def ref(r: str, kind: str = "component") -> str: + k, _, rest = r.partition(":") if ":" in r else (kind, "", r) + ns, _, name = rest.rpartition("/") + return f"{k.lower()}:{(ns or 'default').lower()}/{name.lower()}" + + +def catalog() -> dict[str, dict]: + """The demo's catalog: the root and its Location targets, by full ref.""" + out, todo = {}, [HERE / "catalog-info.yaml"] + while todo: + f = todo.pop() + for e in yaml.load_all(f.read_text(), Loader): + if e["kind"] == "Location": + todo += [(f.parent / t).resolve() for t in e["spec"]["targets"]] + else: + out[ref(e["metadata"]["name"], e["kind"].lower())] = {**e, "_file": f.relative_to(HERE).as_posix()} + return out + + +def flat(s: str) -> str: + return re.sub(r"\s+", " ", s).strip() + + +def main() -> int: + ap = argparse.ArgumentParser() + ap.add_argument("--metasoar", type=Path, help="a local clone of OpenReplicant/MetaSoar, to check quotes") + args = ap.parse_args() + claim_schema = json.loads((ROOT / "schemas/evidence-claim.v1.json").read_text()) + spec_schema = json.loads((ROOT / "schemas/morphogen-spec.v1.json").read_text()) + Draft202012Validator.check_schema(claim_schema) + cv = Draft202012Validator(claim_schema, format_checker=Draft202012Validator.FORMAT_CHECKER) + sv = Draft202012Validator(spec_schema) + errors: list[str] = [] + ents = catalog() + + def bad(where: str, msg: str) -> None: + errors.append(f"{where}: {msg}") + + # options: spec.morphogen against the spec schema + options = {r: e for r, e in ents.items() if e["kind"] == "Component" and e["spec"].get("lifecycle") == "candidate"} + roles = {r for r, e in ents.items() if e["kind"] == "Component" and e["spec"].get("type") == "role"} + for r, e in options.items(): + for err in sv.iter_errors(e["spec"].get("morphogen") or {}): + bad(f"{e['_file']} {r}", f"spec.morphogen: {err.message}") + print(f"options: {len(options)} against schemas/morphogen-spec.v1.json, roles: {len(roles)}") + + # claims: the schema + files = sorted((HERE / "claims").rglob("*.yaml")) + claims: dict[str, tuple[str, dict]] = {} + for f in files: + rel = f.relative_to(HERE).as_posix() + doc = yaml.load(f.read_text(), Loader) + errs = sorted(cv.iter_errors(doc), key=lambda x: list(x.absolute_path)) + for err in errs: + bad(rel, f"{'/'.join(map(str, err.absolute_path)) or '(root)'}: {err.message}") + print(f"{'ok ' if not errs else 'FAIL'} {rel}") + if errs: + continue + name = doc["metadata"]["name"] + if name != f.stem: + bad(rel, f"metadata.name {name} is not the file's name") + if name in claims: + bad(rel, f"{name} is also {claims[name][0]}") + claims[name] = (rel, doc) + + # links + for name, (rel, doc) in claims.items(): + s = doc["spec"] + about, role = ref(s["about"]), ref(s["role"]) + if about not in options: + bad(rel, f"about {s['about']} is not an option (a Component with lifecycle candidate)") + continue + if role not in roles: + bad(rel, f"role {s['role']} is not a role (a Component with type role)") + fills = options[about]["spec"]["morphogen"].get("fills") or [] + if role not in {ref(x) for x in ([fills] if isinstance(fills, str) else fills)}: + bad(rel, f"{s['about']} does not fill {s['role']}") + for v in (s["conditions"].get(k) or {} for k in ("engine", "dataset", "hardware")): + if v.get("ref") and ref(v["ref"]) not in ents: + bad(rel, f"conditions ref {v['ref']} is not in the catalog") + for m in s["conditions"].get("models") or []: + if m.get("ref") and ref(m["ref"]) not in ents: + bad(rel, f"model ref {m['ref']} is not in the catalog") + for a in s.get("assessments") or []: + if ref(a["system"], "system") not in ents: + bad(rel, f"system {a['system']} is not in the catalog") + for x in a.get("against") or []: + if ref(x) not in ents: + bad(rel, f"against {x} is not in the catalog") + for x in (a.get("outcome") or {}).get("observed", []): + if x not in claims or claims[x][1]["spec"]["source"]["kind"] != "trial": + bad(rel, f"observed {x} is not a trial's claim") + for x in a.get("see_also") or []: + if x not in claims: + bad(rel, f"see_also {x} is not a claim") + for r, e in options.items(): + listed = set((e["spec"]["morphogen"].get("evaluation") or {}).get("evidence") or []) + actual = {rel for rel, d in claims.values() if ref(d["spec"]["about"]) == r} + for x in sorted(listed - actual): + bad(f"{e['_file']} {r}", f"evaluation.evidence lists {x}, which is not a claim about it") + for x in sorted(actual - listed): + bad(f"{e['_file']} {r}", f"evaluation.evidence leaves out {x}") + + # quotes from MetaSoar at a commit + quotes: list[tuple[str, str, str, str]] = [] # where, commit, path, quote + for name, (rel, doc) in claims.items(): + src = doc["spec"]["source"] + for part, q in (("source", src), ("source.via", src.get("via") or {})): + if q.get("repository") == METASOAR and q.get("quote"): + quotes.append((f"{rel} {part}", q["commit"], q["path"], q["quote"])) + for r, e in ents.items(): + for line in (e["metadata"].get("annotations") or {}).get("morphogen.dev/evidence", "").splitlines(): + m = re.match(rf'\s*\w+ \| {re.escape(METASOAR)}@([0-9a-f]+):(\S+) \| "(.*)"\s*$', line) + if m: + quotes.append((f"{e['_file']} {r}", *m.groups())) + if args.metasoar: + texts: dict[tuple[str, str], str] = {} + for where, commit, path, q in quotes: + if (commit, path) not in texts: + texts[commit, path] = flat(subprocess.run(["git", "-C", str(args.metasoar), "show", f"{commit}:{path}"], + capture_output=True, text=True, check=True).stdout) + if flat(q) not in texts[commit, path]: + bad(where, f"quote not found in {METASOAR}@{commit[:7]}:{path}: {q[:60]}...") + print(f"quotes: {len(quotes)} matched against {METASOAR} at their commits") + else: + print(f"quotes: {len(quotes)} not checked (no --metasoar)") + + trial = sum(d["spec"]["source"]["kind"] in ("trial", "probe") for _, d in claims.values()) + status: dict[str, int] = {} + for _, d in claims.values(): + for a in d["spec"].get("assessments") or []: + status[a["status"]] = status.get(a["status"], 0) + 1 + print(f"claims: {len(claims)} ({len(claims) - trial} from papers, {trial} our own observations); " + f"statuses for system:default/metasoar: {dict(sorted(status.items()))}") + for e in errors: + print("ERROR", e) + print("FAILED" if errors else "all checks pass") + return 1 if errors else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/demos/research-loop/claims/arxiv-2605.02241/zsconf-answer-logprob-auroc.yaml b/demos/research-loop/claims/arxiv-2605.02241/zsconf-answer-logprob-auroc.yaml new file mode 100644 index 0000000..1348b56 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2605.02241/zsconf-answer-logprob-auroc.yaml @@ -0,0 +1,62 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: zsconf-answer-logprob-auroc + description: >- + The mean log-probability of a small model's own answer predicted its correctness with AUROC 0.65 to 0.71, better than asking it (0.56 to 0.64). +spec: + about: component:default/answer-logprob-confidence + role: component:default/think-router + source: + kind: preprint + title: Zero-Shot Confidence Estimation for Small LLMs + id: arXiv:2605.02241 + url: https://arxiv.org/html/2605.02241 + version: v3 + location: not stated in the note + read: not stated in the note + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, When to think, zero-shot confidence + quote: >- + the mean log-probability of the model's own answer predicted correctness with AUROC 0.65 to 0.71, better than asking it whether it was confident (0.56 to 0.64). + claim: + statement: >- + Zero-shot, the mean log-probability of a 7 to 8B model's own answer predicts whether it is correct with AUROC + 0.65 to 0.71, better than asking the model whether it is confident (0.56 to 0.64). + metric: AUROC for correctness + better: higher + value: {min: 0.65, max: 0.71, over: models and datasets} + baseline: {name: asking the model whether it is confident, value: {min: 0.56, max: 0.64, over: models and datasets}} + finding: better + runs: null + cases: null + reporting: unknown + conditions: + models: + - {name: 7B to 8B models (not named in the note), size: 7 to 8B} + dataset: {name: MMLU-Pro and TriviaQA} + method: mean log-probability of the model's own answer, zero-shot + labels: none + unstated: [engine, precision, which models] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.6 + reason: >- + Zero-shot and measured on 7 to 8B models, the nearest size class of any claim here. E-04a's readout margin + is the same kind of signal and costs nothing extra (the note's E-04 step 2). The AUROC is modest, and our + questions are typed decisions, not MMLU-Pro and TriviaQA answers. + by: agent draft for research-loop phase 0, from the note's table ("supported"); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2605.02241/zsconf-embedding-router-ood.yaml b/demos/research-loop/claims/arxiv-2605.02241/zsconf-embedding-router-ood.yaml new file mode 100644 index 0000000..0e453ac --- /dev/null +++ b/demos/research-loop/claims/arxiv-2605.02241/zsconf-embedding-router-ood.yaml @@ -0,0 +1,62 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: zsconf-embedding-router-ood + description: >- + A RouteLLM-style logistic regression on query embeddings was close in distribution (AUROC 0.66 to 0.68) but fell to 0.546 on the other dataset. +spec: + about: component:default/embedding-logreg + role: component:default/think-router + source: + kind: preprint + title: Zero-Shot Confidence Estimation for Small LLMs + id: arXiv:2605.02241 + url: https://arxiv.org/html/2605.02241 + version: v3 + location: not stated in the note + read: not stated in the note + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, When to think, zero-shot confidence + quote: >- + A RouteLLM-style logistic regression on query embeddings, trained on 1,000 labels, was close in distribution (0.66 to 0.68) but fell to 0.546 on the other dataset. + claim: + statement: >- + A RouteLLM-style logistic regression on query embeddings, trained on 1,000 labels, was close in + distribution (AUROC 0.66 to 0.68) but fell to 0.546 on the other dataset. + metric: AUROC for correctness + better: higher + value: 0.546 + where: the dataset it was not trained on + baseline: {name: the same router in distribution, value: {min: 0.66, max: 0.68, over: models}} + finding: worse + runs: null + cases: null + reporting: unknown + conditions: + models: + - {name: 7B to 8B models (not named in the note), size: 7 to 8B} + dataset: {name: MMLU-Pro and TriviaQA} + method: logistic regression on query embeddings (RouteLLM-style) + labels: 1,000 + unstated: [the embedding model, which dataset was held out] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.65 + reason: >- + A failure out of distribution is a property of training on few labels, not of the answering model, so it + should hold here; E-04 is to separate slices in and out of the training distribution for this reason. + by: agent draft for research-loop phase 0, from the note's table ("brittle out of distribution"); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2606.23181/dart-draft-agreement.yaml b/demos/research-loop/claims/arxiv-2606.23181/dart-draft-agreement.yaml new file mode 100644 index 0000000..92f462a --- /dev/null +++ b/demos/research-loop/claims/arxiv-2606.23181/dart-draft-agreement.yaml @@ -0,0 +1,71 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: dart-draft-agreement + description: >- + DART matched or beat always-thinking on 13 of 14 model and benchmark pairs while cutting thinking tokens by 32 to 73%. +spec: + about: component:default/dart-draft-agreement + role: component:default/think-router + source: + kind: preprint + title: "DART: Draft-Agreement Routing for Training-Free Adaptive Thinking Budgets" + id: arXiv:2606.23181 + url: https://arxiv.org/pdf/2606.23181 + version: v4 + location: results (section not stated in the note) + read: the results (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, When to think, DART + quote: >- + On Qwen3 8B to 32B and DeepSeek-V3.2 it matched or beat always-thinking on 13 of 14 model and benchmark pairs while cutting thinking tokens by 32 to 73%, and its first-stage signal held from 0.6B to 32B. + claim: + statement: >- + Training-free routing by draft agreement (two cheap no-think drafts; answer if they agree, else think with a + budget from their entropy) matched or beat always-thinking on 13 of 14 model and benchmark pairs, while cutting + thinking tokens by 32 to 73%; its first-stage signal held from 0.6B to 32B. + metric: model and benchmark pairs where it matched or beat always-thinking + better: higher + value: 13 + unit: pairs of 14 + baseline: {name: always-thinking} + finding: matches + runs: null + cases: null + reporting: self + also: + - {metric: thinking tokens saved, better: higher, value: {min: 0.32, max: 0.73, over: the model and benchmark pairs}, baseline: {name: always-thinking}} + conditions: + models: + - {name: Qwen3, size: 8B to 32B, tuned: untuned} + - {name: DeepSeek-V3.2} + - {name: "the first-stage signal: Qwen3 from 0.6B to 32B"} + dataset: {name: "14 model and benchmark pairs; the note does not name the benchmarks for this result"} + method: two no-think drafts; agree, answer directly; disagree, think with a budget from the drafts' entropy + thinking: routed per question + labels: none (training-free) + unstated: [engine, precision, hardware, the full benchmark list] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.55 + reason: >- + Training-free, and its first-stage signal held down to 0.6B, so our models' size is not the obstacle. + Against it: the gains are on Qwen3 and DeepSeek-V3.2 with their own thinking modes; + our slow model is Inkling 2 Mini at Q4_K on llama.cpp, and E-04's questions are typed decisions, not those benchmarks; the + numbers are the method's authors' own. Code is released (js-lee-AI/DART), so the paper's own number can be + reproduced first. + by: agent draft for research-loop phase 0, from the note's table ("supported"); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2606.23181/dart-mc-binary-collapses.yaml b/demos/research-loop/claims/arxiv-2606.23181/dart-mc-binary-collapses.yaml new file mode 100644 index 0000000..5a9b33f --- /dev/null +++ b/demos/research-loop/claims/arxiv-2606.23181/dart-mc-binary-collapses.yaml @@ -0,0 +1,65 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: dart-mc-binary-collapses + description: >- + Asking Qwen3-8B whether it needs to think (MC-Binary) matched on MATH-500 but collapsed on HumanEval (10.4 against DART's 78.7). +spec: + about: component:default/ask-to-think + role: component:default/think-router + source: + kind: preprint + title: "DART: Draft-Agreement Routing for Training-Free Adaptive Thinking Budgets" + id: arXiv:2606.23181 + url: https://arxiv.org/pdf/2606.23181 + version: v4 + location: results (section not stated in the note) + read: the results (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, When to think, DART + quote: >- + (MC-Binary) matched on MATH-500 (85.8) but collapsed on HumanEval (10.4, against 78.7 for DART); + claim: + statement: >- + Asking the model whether it needs to think (MC-Binary) is unreliable across tasks: on Qwen3-8B it matched on + MATH-500 (85.8) but collapsed on HumanEval (10.4, against 78.7 for DART). + metric: HumanEval score + better: higher + value: 10.4 + where: HumanEval + baseline: {name: DART, value: 78.7} + finding: worse + runs: null + cases: null + reporting: self + also: + - {metric: MATH-500 score, better: higher, value: 85.8, where: MATH-500, baseline: {name: DART (matched; DART's figure not in the note)}} + note: A baseline in the DART paper, measured by DART's authors against their own method. + conditions: + models: + - {name: Qwen3-8B, size: 8B, tuned: untuned} + dataset: {name: MATH-500 and HumanEval} + method: the model asked, as a binary choice, whether the question needs thinking + unstated: [the prompt, engine, precision] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.7 + reason: >- + The collapse was task-dependent on an 8B model, and nothing about a smaller one makes a typed question + about its own thinking more reliable. This is the observer the note says has the weakest evidence, so E-04 + puts it last. + by: agent draft for research-loop phase 0, from the note's table ("weak"); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2608.20256/lwt-grpo-think-mode.yaml b/demos/research-loop/claims/arxiv-2608.20256/lwt-grpo-think-mode.yaml new file mode 100644 index 0000000..6ff6dcb --- /dev/null +++ b/demos/research-loop/claims/arxiv-2608.20256/lwt-grpo-think-mode.yaml @@ -0,0 +1,57 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: lwt-grpo-think-mode + description: >- + A 1.5B model trained with GRPO to pick NoThink, Short or Long kept MATH500 accuracy (0.782 against 0.796) at 41% fewer tokens. +spec: + about: component:default/learned-think-mode + role: component:default/think-router + source: + kind: preprint + title: "Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation" + id: arXiv:2608.20256 + url: https://arxiv.org/pdf/2608.20256 + version: v2 + location: the abstract + read: the abstract only (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, When to think, Learning When to Think + quote: >- + a 1.5B model trained with GRPO to pick NoThink, Short or Long as its first token kept MATH500 accuracy (0.782 against 0.796) at 41% fewer tokens. + claim: + statement: >- + A 1.5B model trained with GRPO to choose NoThink, Short or Long as its first token kept its MATH500 accuracy + (0.782 against 0.796) with 41% fewer tokens. + metric: accuracy + better: higher + value: 0.782 + where: MATH500 + baseline: {name: "the comparison the note gives, not named there", value: 0.796} + finding: matches + runs: null + cases: null + reporting: self + also: + - {metric: tokens saved, better: higher, value: 0.41, where: MATH500} + conditions: + models: + - {name: a 1.5B model (not named in the note), size: 1.5B, tuned: GRPO} + dataset: {name: MATH500} + method: the model's first token picks NoThink, Short or Long + labels: reinforcement learning with GRPO + unstated: [the base model, engine, precision, hardware, the baseline's exact setting] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: It needs training (GRPO), so the note makes it a later option, not a baseline. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-cascade-needs-labels.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-cascade-needs-labels.yaml new file mode 100644 index 0000000..037f923 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-cascade-needs-labels.yaml @@ -0,0 +1,49 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-cascade-needs-labels + description: >- + Cascades pay when the cheap stage knows the task's labels; an untrained first stage gained only where both stages were weak. +spec: + about: component:default/decision-cascade + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, last bullet + quote: >- + **Cascades pay when the cheap stage knows the task's labels;** an untrained first stage gained only where both stages were weak. + claim: + statement: >- + A cascade pays when its cheap first stage knows the task's labels; an untrained first stage gained only where + both stages were weak. + metric: not stated in the note + value: null + baseline: {name: the stronger stage alone} + finding: differs + runs: null + cases: null + reporting: unknown + conditions: + method: a cheap first stage that answers when sure, the rest passed on + unstated: [which stages, which tasks, the metric, the numbers] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: No cascade is built; a trained first stage would need E-04's labels. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-embedding-logreg-labelled.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-embedding-logreg-labelled.yaml new file mode 100644 index 0000000..7ca2a0f --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-embedding-logreg-labelled.yaml @@ -0,0 +1,66 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-embedding-logreg-labelled + description: >- + Logistic regression on BGE-small embeddings reached 0.948 on CLINC-150 and 0.702 on the workflow decisions (Jev 0.732). +spec: + about: component:default/embedding-logreg + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, first bullet + quote: >- + Logistic regression on BGE-small embeddings reached 0.948 on CLINC-150 and 0.702 on the workflow decisions (Jev 0.732). + claim: + statement: >- + Logistic regression on BGE-small embeddings, trained on the task's labels, comes close to the best systems: + 0.948 on CLINC-150, and 0.702 on the workflow decisions against Jev's 0.732. + metric: accuracy + better: higher + value: 0.702 + where: the workflow decisions + baseline: {name: Jev, value: 0.732} + finding: worse + runs: null + cases: null + reporting: unknown + also: + - {metric: accuracy, better: higher, value: 0.948, where: CLINC-150} + note: The note does not say who trained the classifier. Jev's CLINC-150 figure (0.913) is in the same bullet, beside the fine-tuned DeBERTa's. + conditions: + models: + - {name: BGE-small (embeddings) with logistic regression, tuned: trained on the task's labels} + dataset: {name: CLINC-150 and the gates paper's workflow decisions, split: not stated} + labels: the task's training labels + unstated: [training set size, hardware] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.6 + reason: >- + The method does not depend on our generative models: BGE-small and logistic regression run cheaply on any + hardware, so the conditions that differ are only the tasks and the labels. Against it: we have no labels + yet, and arXiv 2605.02241 saw the same kind of classifier fall out of distribution + (zsconf-embedding-router-ood). + by: agent draft for research-loop phase 0, from the note's status column ("supported, but brittle out of distribution"); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-finetuned-classifier-clinc150.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-finetuned-classifier-clinc150.yaml new file mode 100644 index 0000000..0b7cbf8 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-finetuned-classifier-clinc150.yaml @@ -0,0 +1,57 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-finetuned-classifier-clinc150 + description: >- + With labels, a fine-tuned DeBERTa-v3-large had the highest accuracy on every labelled task but one; 0.953 on CLINC-150 against Jev's 0.913. +spec: + about: component:default/finetuned-classifier + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, first bullet + quote: >- + A fine-tuned DeBERTa-v3-large (under 0.5B) had the highest accuracy on every labelled task except one: 0.953 on CLINC-150 against Jev's 0.913. + claim: + statement: >- + When labels exist, a fine-tuned DeBERTa-v3-large (under 0.5B) had the highest accuracy of every system on + every labelled task except one; on CLINC-150, 0.953 against Jev's 0.913. + metric: accuracy + better: higher + value: 0.953 + where: CLINC-150 + baseline: {name: Jev, value: 0.913} + finding: better + runs: null + cases: null + reporting: unknown + note: The note does not say who fine-tuned the classifier, nor which task was the exception. + conditions: + models: + - {name: DeBERTa-v3-large, size: under 0.5B, tuned: fine-tuned on the task's labels} + dataset: {name: CLINC-150, split: not stated} + labels: the task's training labels + unstated: [training set size, precision, hardware] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: >- + Needs local labels (E-04's), which do not exist yet. The note puts classifiers first for any task that has + labels. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml new file mode 100644 index 0000000..c6daf0e --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml @@ -0,0 +1,88 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-likelihood-readout-27-31b-matches-jev + description: Read by the likelihood of each option key, Gemma-4-31B and Qwen3.6-27B matched Jev; Qwen3-14B and Mistral-Small-24B did not. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, second bullet + quote: >- + Gemma-4-31B and Qwen3.6-27B read by the likelihood of each option key matched Jev; Qwen3-14B and + Mistral-Small-24B stayed significantly below it. No generative model under 14B was tested. + claim: + statement: >- + Without labels, an untuned generative model read by the likelihood of each option key matches Jev for some + checkpoints (Gemma-4-31B, Qwen3.6-27B) and stays significantly below it for others (Qwen3-14B, + Mistral-Small-24B): it depends on the checkpoint, not on the class. No generative model under 14B was tested. + metric: accuracy + better: higher + value: null + baseline: {name: Jev, value: null} + finding: matches + significance: the 14B and 24B models "stayed significantly below" Jev (the note's words) + runs: null + cases: null + reporting: independent + note: The note gives no numbers for this claim; the finding is for the 27B and 31B models only. + conditions: + models: + - {name: Gemma-4-31B, size: 31B, precision: bf16, tuned: untuned (open generative model)} + - {name: Qwen3.6-27B, size: 27B, precision: FP8, tuned: untuned (open generative model)} + - {name: Qwen3-14B, size: 14B, precision: AWQ 4-bit, tuned: untuned; below Jev} + - {name: Mistral-Small-24B, size: 24B, precision: bf16, tuned: untuned; below Jev} + engine: {name: vLLM} + dataset: {name: "the gates paper's decision tasks (the note names CLINC-150, workflow decisions, emotion and intent; which ones this finding covers is not stated)"} + method: the likelihood of each option key; every model given the same requests + labels: none used by the readout + unstated: [the prompt, which tasks the match holds on, hardware, the number of cases] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070, resource:default/jevbench-ed50fe0] + status: did-not-transfer + outcome: + trial: + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + observed: [e04a-lfm3-pooled-accuracy, e04a-lfm3-coverage] + summary: >- + LFM3 1.7B Q6_K, read the same way (first token, untuned), debiased over both option orders and scaled with + one temperature per slice: pooled accuracy 0.528 [0.508, 0.547] against Jev 1.13's 0.842 [0.828, 0.857] on + the same 3,412 JevBench cases, and coverage at 5% risk 0.09 against 0.67. Its calibration error matched + Jev's after scaling (0.026 against 0.024), so the gap is accuracy, not calibration. + comparison: our-setup + verdict: + by: falsifier + decision: met + ref: OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:docs/experiments.md (E-04a) + note: >- + Registered before the outcome: pooled accuracy more than 10 points below Jev's, or coverage at 5% risk + under half of Jev's, after debiasing and one temperature per slice. Both limbs are met. + date: 2026-11-25 + reason: >- + No probability was written before the trial: the note's table had "LFM3 1.7B read that way is good enough" + as open, so this outcome does not count towards calibration. A transfer test, not a replication: a 1.7B + model untuned, on llama.cpp at Q6_K, on JevBench rather than the paper's tasks. Inkling 2 Mini is still to + come, and tuning the readout (prompt, then self-distillation) is the cell's next step. + see_also: [e04a-lfm3-slices, probe-lfm3-first-token] + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-order-effects-untrained.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-order-effects-untrained.yaml new file mode 100644 index 0000000..61a31ce --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-order-effects-untrained.yaml @@ -0,0 +1,78 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-order-effects-untrained + description: >- + Swapping yes and no flipped at least 16.8 answers per hundred for every generative model, at most 6.5 for fine-tuned decision checkpoints. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, fifth bullet + quote: >- + Swapping yes and no flipped at least 16.8 answers per hundred for every generative model, against at most 6.5 for fine-tuned decision checkpoints (and 50.5 for Jev). + claim: + statement: >- + Order effects are large for untrained readers: swapping yes and no flipped at least 16.8 answers per hundred + for every generative model, against at most 6.5 for fine-tuned decision checkpoints (and 50.5 for Jev). + metric: answers flipped by swapping yes and no + better: lower + unit: per hundred + value: 16.8 + baseline: {name: fine-tuned decision checkpoints (at most), value: 6.5} + finding: worse + runs: null + cases: null + reporting: independent + also: + - {metric: answers flipped by swapping yes and no, unit: per hundred, value: 50.5, where: Jev} + note: >- + 16.8 is a floor (the lowest of the four generative models), not one model's figure. The note reports Jev's 50.5 without comment; it is higher than every other figure here. + conditions: + models: + - {name: Qwen3-14B, size: 14B, precision: AWQ 4-bit, tuned: untuned} + - {name: Qwen3.6-27B, size: 27B, precision: FP8, tuned: untuned} + - {name: Gemma-4-31B, size: 31B, precision: bf16, tuned: untuned} + - {name: Mistral-Small-24B, size: 24B, precision: bf16, tuned: untuned} + engine: {name: vLLM} + method: yes and no swapped in yes-or-no decisions + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070, resource:default/jevbench-ed50fe0] + status: replicated + outcome: + trial: + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + observed: [e04a-lfm3-order-flip] + summary: >- + LFM3 1.7B untuned flipped 0.327 of its answers pooled (32.7 per hundred) when the options were reversed, + and 0.667 on MMLU-Pro: well above the paper's floor for untrained readers. The measures differ: E-04a + reverses every option's position, on choice and yes-or-no questions alike, where the paper swapped yes and no. + comparison: our-setup + verdict: + by: none + decision: no verdict + note: E-04a's falsifier is on accuracy and coverage; this record reads the order-flip rate against the claim. + date: 2026-11-25 + reason: No probability was written before the trial. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-stated-probabilities-unparseable.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-stated-probabilities-unparseable.yaml new file mode 100644 index 0000000..8096667 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-stated-probabilities-unparseable.yaml @@ -0,0 +1,55 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-stated-probabilities-unparseable + description: >- + One model's stated probabilities could not be parsed in 0.767 of its emotion replies. +spec: + about: component:default/stated-probability + role: component:default/decision-backend + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, third bullet + quote: >- + One model's stated probabilities could not be parsed in 0.767 of its emotion replies. + claim: + statement: >- + Read the key's likelihood, not stated probabilities: one model's stated probabilities could not be parsed in + 0.767 of its emotion replies. + metric: share of replies whose stated probabilities could not be parsed + better: lower + value: 0.767 + where: the emotion task + baseline: {name: the option keys' likelihood (parsing not needed)} + finding: worse + runs: null + cases: null + reporting: independent + conditions: + models: + - {name: one of the four open generative models (not named in the note)} + engine: {name: vLLM} + dataset: {name: the gates paper's emotion task} + method: the model asked to state a probability for each option in its reply + unstated: [which model, the prompt] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: E-04a reads likelihoods only; nothing here asks a model to state probabilities. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-fixes-calibration.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-fixes-calibration.yaml new file mode 100644 index 0000000..9157e57 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-fixes-calibration.yaml @@ -0,0 +1,71 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-temperature-fixes-calibration + description: >- + One temperature fitted on held-out data took Gemma-4-31B's key-likelihood calibration error from 0.244 to 0.064. +spec: + about: component:default/temperature-scaling + role: component:default/readout-calibration + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, fourth bullet + quote: >- + Gemma-4-31B's key likelihoods: calibration error 0.244 as shipped, 0.064 after one temperature fitted on held-out data. + claim: + statement: >- + Raw key likelihoods are miscalibrated, and one temperature per task, fitted on held-out data, fixes most of it: + Gemma-4-31B's calibration error 0.244 as shipped, 0.064 after. + metric: calibration error + better: lower + value: 0.064 + baseline: {name: the same likelihoods as shipped, value: 0.244} + finding: better + runs: null + cases: null + reporting: independent + conditions: + models: + - {name: Gemma-4-31B, size: 31B, precision: bf16, tuned: untuned} + engine: {name: vLLM} + method: key likelihoods; one temperature fitted on held-out data + unstated: [the task or tasks, the held-out split, the calibration error's binning] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070, resource:default/jevbench-ed50fe0] + status: replicated + outcome: + trial: + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + observed: [e04a-lfm3-calibration] + summary: >- + LFM3 1.7B Q6_K, debiased: pooled calibration error 0.227, and 0.026 after one temperature per slice fitted + on the other half of families (Jev 1.13: 0.024). Holds at 1.7B, on llama.cpp, on JevBench. Two slices' + temperatures reached 30.0 (atbench500, pubmedqa), and PubMedQA's scaled error stayed at 0.158. + comparison: our-setup + verdict: + by: none + decision: no verdict + note: E-04a's registered falsifier is on accuracy and coverage, not calibration; this record reads the measurement against the claim. + date: 2026-11-25 + reason: No probability was written before the trial (the note marked it "supported for larger models"). + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-option-count.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-option-count.yaml new file mode 100644 index 0000000..9e0f7ba --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-temperature-option-count.yaml @@ -0,0 +1,61 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-temperature-option-count + description: >- + A temperature fitted under one option count does not carry to another (Kev-9B 0.051 to 0.377 at 150 options). +spec: + about: component:default/temperature-scaling + role: component:default/readout-calibration + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, fourth bullet + quote: >- + A temperature fitted under one option count does not carry to another (Kev-9B: 0.051 to 0.377 at 150 options). + claim: + statement: >- + A temperature fitted under one option count does not carry to another: Kev-9B's calibration error went from + 0.051 to 0.377 at 150 options. + metric: calibration error + better: lower + value: 0.377 + where: 150 options + baseline: {name: the option count the temperature was fitted under, value: 0.051} + finding: worse + runs: null + cases: null + reporting: independent + conditions: + models: + - {name: Kev-9B, size: 9B, tuned: a decision-model checkpoint} + method: one temperature fitted under one option count, applied under another + unstated: [the option count it was fitted under, engine, precision] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.7 + reason: >- + A property of temperature scaling, not of the model's size, so it should hold here. E-04a fits one + temperature per slice and left BANKING77 (77 options) out, so it neither tests nor depends on it yet; it + matters as soon as one temperature is shared across tasks with different option counts. + by: agent draft for research-loop phase 0; not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-thresholds-per-model-task.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-thresholds-per-model-task.yaml new file mode 100644 index 0000000..75bac53 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-thresholds-per-model-task.yaml @@ -0,0 +1,55 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: gates-thresholds-per-model-task + description: >- + At 5% risk the same Jev accepts 0.93 of intent decisions but 0.17 of workflow decisions: a threshold belongs to one model on one task. +spec: + about: component:default/per-task-risk-threshold + role: component:default/readout-calibration + source: + kind: preprint + title: Benchmarking System One decision models against trained classifiers and language models for automated decision gates + id: arXiv:2610.00346 + url: https://arxiv.org/html/2610.00346v2 + version: v2 + location: not stated in the note (from section 6, the conclusion or the tables) + read: section 6 and the conclusion in full, the tables partly (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, Decision gates, sixth bullet + quote: >- + the same Jev accepts 0.93 of intent decisions but 0.17 of workflow decisions at 5% risk. + claim: + statement: >- + Thresholds belong to one model on one task, set on held-out labels and checked on more: at 5% risk the same + Jev accepts 0.93 of intent decisions but 0.17 of workflow decisions. + metric: coverage at 5% risk + better: higher + value: 0.17 + where: workflow decisions + baseline: {name: the same Jev on intent decisions, value: 0.93} + finding: differs + runs: null + cases: null + reporting: independent + conditions: + models: + - {name: Jev, tuned: a decision model} + dataset: {name: the gates paper's intent and workflow decisions} + method: a threshold set on held-out labels at 5% risk + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: >- + E-04a already sets each 5%-risk threshold on the fit half per slice, which follows the claim rather than + testing it; a test would carry one threshold across slices and measure the realised risk. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.03935/jeval-distillation-reasoning-heavy.yaml b/demos/research-loop/claims/arxiv-2610.03935/jeval-distillation-reasoning-heavy.yaml new file mode 100644 index 0000000..9c40b6f --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.03935/jeval-distillation-reasoning-heavy.yaml @@ -0,0 +1,63 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: jeval-distillation-reasoning-heavy + description: >- + Distillation recovers most of what thinking adds on label selection, but a quarter or less on reasoning-heavy sets (GPQA, MMLU-Pro). +spec: + about: component:default/self-distilled-readout + role: component:default/decision-backend + source: + kind: preprint + title: "General Decision Models: Benchmarking and Insights Beyond Jev (JEVal)" + id: arXiv:2610.03935 + url: https://arxiv.org/pdf/2610.03935 + version: v2 + location: not stated in the note + read: the abstract, the experiments and sections 6 to 9 (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, JEVal, third bullet + quote: >- + Distillation recovers most of what thinking adds on label selection (intent, harm, emotion), but **a quarter or less on reasoning-heavy sets** (GPQA, MMLU-Pro): one pass does not reproduce multi-step computation. + claim: + statement: >- + A distilled one-pass readout recovers most of what thinking adds on label selection (intent, harm, emotion), + but a quarter or less on reasoning-heavy sets (GPQA, MMLU-Pro): one pass does not reproduce multi-step + computation. + metric: share of thinking's gain recovered + better: higher + value: {min: 0, max: 0.25, over: "reasoning-heavy sets (GPQA, MMLU-Pro): a quarter or less"} + baseline: {name: the same model with thinking} + finding: worse + runs: null + cases: null + reporting: unknown + conditions: + models: + - {name: SII-Decision (4B and 27B), tuned: self-distilled} + engine: {name: vLLM} + hardware: {name: H100} + dataset: {name: JEVal, size: "11,257 items from 36 datasets, 25 configurations"} + method: first-token readout after self-distillation, against the same model thinking + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: predicted + prediction: + p_transfer: 0.7 + reason: >- + A limit of one forward pass, not of model size, so it should hold for a small model too. Consistent but not + a test: E-04a's untuned readout was already far below Jev on MedQA, MedMCQA and MMLU-Pro. + by: agent draft for research-loop phase 0, from the note's table ("Readout replaces thinking on reasoning-heavy questions" marked no); not yet reviewed by the owner + date: 2026-11-25 + before_outcome: true + see_also: [e04a-lfm3-slices] + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.03935/jeval-first-token-readout.yaml b/demos/research-loop/claims/arxiv-2610.03935/jeval-first-token-readout.yaml new file mode 100644 index 0000000..14dcb85 --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.03935/jeval-first-token-readout.yaml @@ -0,0 +1,71 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: jeval-first-token-readout + description: >- + An open model's first-token readout is a decision model (JEVal's Finding 11). +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: preprint + title: "General Decision Models: Benchmarking and Insights Beyond Jev (JEVal)" + id: arXiv:2610.03935 + url: https://arxiv.org/pdf/2610.03935 + version: v2 + location: Finding 11 + read: the abstract, the experiments and sections 6 to 9 (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, JEVal, second bullet + quote: >- + An open model's first-token readout is a decision model (their Finding 11), + claim: + statement: An open model's first-token readout is a decision model. + metric: not stated in the note + value: null + finding: none-stated + runs: null + cases: null + reporting: independent + note: Qualitative; the numbers behind Finding 11 are not in the note. + conditions: + models: + - {name: "open generative models (which ones is not stated in the note)"} + engine: {name: vLLM} + hardware: {name: H100} + dataset: {name: JEVal, size: "11,257 items from 36 datasets, 25 configurations"} + method: the model's first-token probabilities over the options + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070, resource:default/jevbench-ed50fe0] + status: replicated + outcome: + trial: + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + observed: [e04a-lfm3-calibration, e04a-lfm3-order-flip] + summary: >- + In the qualitative sense only: LFM3 1.7B's first token gives a typed decision with probabilities (0.86 of + its probability on the option letters, pooled) that one temperature per slice calibrates to Jev's level + (0.026 against 0.024). It is no match for Jev in accuracy (gates-likelihood-readout-27-31b-matches-jev), + and on MMLU-Pro its first token is not its answer about 58% of the time (letter mass 0.52). + comparison: our-setup + verdict: + by: none + decision: no verdict + note: A qualitative claim read against E-04a's measurements; the owner may prefer not-testable. + date: 2026-11-25 + reason: No probability was written before the trial (the note's table had it as supported). + see_also: [e04a-lfm3-pooled-accuracy, probe-lfm3-first-token] + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.03935/jeval-qwen35-4b-thinking.yaml b/demos/research-loop/claims/arxiv-2610.03935/jeval-qwen35-4b-thinking.yaml new file mode 100644 index 0000000..51938fb --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.03935/jeval-qwen35-4b-thinking.yaml @@ -0,0 +1,61 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: jeval-qwen35-4b-thinking + description: >- + Qwen3.5-4B's decisions: accuracy 61.4 without thinking, 70.7 with it; Jev 78.4. +spec: + about: component:default/always-think + role: component:default/think-router + source: + kind: preprint + title: "General Decision Models: Benchmarking and Insights Beyond Jev (JEVal)" + id: arXiv:2610.03935 + url: https://arxiv.org/pdf/2610.03935 + version: v2 + location: not stated in the note + read: the abstract, the experiments and sections 6 to 9 (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, JEVal, first bullet + quote: >- + Qwen3.5-4B, generating without thinking: accuracy 61.4, calibration error 0.253; with thinking: 70.7, 0.172. Jev: 78.4, 0.053. + claim: + statement: >- + Thinking improves a 4B general model's decisions, and does not reach a decision model: Qwen3.5-4B generating + without thinking, accuracy 61.4 and calibration error 0.253; with thinking, 70.7 and 0.172; Jev 78.4 and 0.053. + metric: accuracy + better: higher + unit: percent + value: 70.7 + baseline: {name: the same model without thinking, value: 61.4} + finding: better + runs: null + cases: null + reporting: independent + also: + - {metric: calibration error, better: lower, value: 0.172, baseline: {name: the same model without thinking, value: 0.253}} + - {metric: accuracy, better: higher, unit: percent, value: 78.4, where: Jev} + - {metric: calibration error, better: lower, value: 0.053, where: Jev} + conditions: + models: + - {name: Qwen3.5-4B, size: 4B, tuned: untuned (general model)} + engine: {name: vLLM} + hardware: {name: H100} + dataset: {name: JEVal, size: "11,257 items from 36 datasets, 25 configurations"} + method: the model generates its answer, with and without thinking + thinking: both, compared + unstated: [precision, the thinking budget] + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: E-04a ran with thinking off only; E-04 is to compare always on with always off. + date: 2026-11-25 diff --git a/demos/research-loop/claims/arxiv-2610.03935/jeval-self-distillation-27b.yaml b/demos/research-loop/claims/arxiv-2610.03935/jeval-self-distillation-27b.yaml new file mode 100644 index 0000000..48c836a --- /dev/null +++ b/demos/research-loop/claims/arxiv-2610.03935/jeval-self-distillation-27b.yaml @@ -0,0 +1,60 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: jeval-self-distillation-27b + description: >- + Distilling a model's own post-reasoning answer into its first-token readout (SII-Decision-27B) reaches Jev's level in about 0.1 s. +spec: + about: component:default/self-distilled-readout + role: component:default/decision-backend + source: + kind: preprint + title: "General Decision Models: Benchmarking and Insights Beyond Jev (JEVal)" + id: arXiv:2610.03935 + url: https://arxiv.org/pdf/2610.03935 + version: v2 + location: not stated in the note + read: the abstract, the experiments and sections 6 to 9 (as the note says) + quote: "" + quote_status: none + quote_note: The note paraphrases the paper and quotes none of it; the paper's own words are still to be taken and checked. + via: + title: MetaSoar docs/decision-backends.md + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, JEVal, second bullet + quote: >- + and distilling its own post-reasoning answer into that readout (SII-Decision-4B, -27B) brings the 27B to Jev's level in about 0.1 s. + claim: + statement: >- + Distilling an open model's own post-reasoning answer into its first-token readout (SII-Decision-4B and -27B) + brings the 27B to Jev's level, in about 0.1 s per decision. + metric: not stated in the note ("Jev's level") + value: null + baseline: {name: Jev} + finding: matches + runs: null + cases: null + reporting: unknown + also: + - {metric: seconds per decision, better: lower, value: 0.1, where: SII-Decision-27B} + note: The note gives no figure for the 4B; whether JEVal's authors made SII-Decision is not stated. + conditions: + models: + - {name: SII-Decision-27B, size: 27B, tuned: self-distilled from its own post-reasoning answers} + - {name: SII-Decision-4B, size: 4B, tuned: self-distilled from its own post-reasoning answers} + engine: {name: vLLM} + hardware: {name: H100} + dataset: {name: JEVal, size: "11,257 items from 36 datasets, 25 configurations"} + method: first-token readout after self-distillation + labels: none (the model's own post-reasoning answers) + assessments: + - system: system:default/metasoar + against: [resource:default/lfm3-1.7b-q6-k, resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070] + status: untested + reason: >- + Needs fine-tuning on our model's own post-reasoning answers: the note's later route if a small readout is + close but not enough, after prompt changes have been searched. + date: 2026-11-25 diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-calibration.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-calibration.yaml new file mode 100644 index 0000000..7197a37 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-calibration.yaml @@ -0,0 +1,69 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-calibration + description: >- + One temperature per slice took LFM3's pooled calibration error from 0.227 to 0.026; Jev's is 0.024. +spec: + about: component:default/temperature-scaling + role: component:default/readout-calibration + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/README.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + location: Results so far, the bullet after the LFM3 table + read: in full + quote: >- + **Calibration is not the gap; accuracy is.** One temperature per slice brings the calibration error to Jev's level. + quote_location: Results so far, the bullet after the LFM3 table + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + After debiasing, one temperature per slice (fitted on the fit half) brings LFM3's pooled calibration error to + Jev's level: 0.026 against 0.024, from 0.227 debiased and 0.311 raw. + metric: calibration error + better: lower + value: 0.026 + where: all ten slices pooled, debiased and scaled + baseline: {name: Jev 1.13, value: 0.024} + finding: matches + runs: 1 + cases: 3412 + reporting: ours + also: + - {metric: calibration error, better: lower, value: 0.227, where: LFM3 debiased before scaling} + - {metric: calibration error, better: lower, value: 0.311, where: LFM3 raw} + - {metric: Brier score, better: lower, value: 0.553, where: LFM3 debiased and scaled, baseline: {name: Jev 1.13, value: 0.229}} + note: >- + From results/summary-lfm3.md at the same commit: the fitted temperatures ran from 1.4 to 30.0, reaching 30.0 + on atbench500 and pubmedqa, where the scaled calibration error was 0.070 and 0.158. + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-coverage.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-coverage.yaml new file mode 100644 index 0000000..68c75fc --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-coverage.yaml @@ -0,0 +1,64 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-coverage + description: >- + At 5% risk LFM3 (debiased and scaled) covers 0.09 of cases, Jev 0.67. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/README.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + location: Results so far, the LFM3 table, row LFM3 debiased and scaled + read: in full + quote: >- + | LFM3, debiased and scaled | 0.528 [0.508, 0.547] | 0.553 | 0.026 | 0.09 (0.072) | + quote_location: Results so far, the LFM3 table, row LFM3 debiased and scaled + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + With its 5%-risk threshold chosen on the fit half, LFM3 debiased and scaled acts on 0.09 of eval cases (realised + risk 0.072), against Jev's 0.67 (realised risk 0.050): about a seventh of Jev's coverage, and above the target risk. + metric: coverage at 5% risk + better: higher + value: 0.09 + where: all ten slices pooled, debiased and scaled + baseline: {name: Jev 1.13, value: 0.67} + finding: worse + runs: 1 + cases: 3412 + reporting: ours + also: + - {metric: realised risk at the 5% threshold, better: lower, value: 0.072, baseline: {name: Jev 1.13, value: 0.050}} + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-order-flip.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-order-flip.yaml new file mode 100644 index 0000000..41bcdc0 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-order-flip.yaml @@ -0,0 +1,68 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-order-flip + description: >- + Reversing the options flipped 0.327 of LFM3's answers pooled, 0.667 on MMLU-Pro. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/results/summary-lfm3.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/results/summary-lfm3.md + location: the second table, row ALL (order-flip rate, letter mass, median ms per read, temperature) + read: in full + quote: >- + | ALL | 0.327 | 0.86 | 108 | - | + quote_location: the second table, row ALL (order-flip rate, letter mass, median ms per read, temperature) + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + LFM3 1.7B read untuned changes its answer on 0.327 of cases when the options are reversed (pooled), 0.667 on + MMLU-Pro, where only 0.52 of its first-token probability is on the option letters (0.86 pooled). + metric: order-flip rate + better: lower + value: 0.327 + where: all ten slices pooled + finding: none-stated + runs: 1 + cases: null + reporting: ours + also: + - {metric: order-flip rate, better: lower, value: 0.667, where: mmlu_pro} + - {metric: letter mass, better: higher, value: 0.86, where: all ten slices pooled} + - {metric: letter mass, better: higher, value: 0.52, where: mmlu_pro} + note: >- + No reference system has an order-flip rate here: Jev's, djev's and Laya's predictions are shipped in one order. + The summary does not say over how many cases the rate is computed. + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-pooled-accuracy.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-pooled-accuracy.yaml new file mode 100644 index 0000000..3ab1d97 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-pooled-accuracy.yaml @@ -0,0 +1,67 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-pooled-accuracy + description: >- + LFM3 1.7B read untuned, debiased: pooled accuracy 0.528 against Jev 1.13's 0.842 on the same JevBench cases. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/README.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + location: Results so far, the LFM3 table, row LFM3 debiased + read: in full + quote: >- + | LFM3, debiased | 0.528 [0.508, 0.547] | 0.699 | 0.227 | 0.03 (0.112) | + quote_location: Results so far, the LFM3 table, row LFM3 debiased + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + LFM3 1.7B, read by its first token and debiased over both option orders, is 31 points below Jev 1.13 in pooled + accuracy on the same cases (scaling does not change accuracy). + metric: accuracy + better: higher + value: 0.528 + interval: {low: 0.508, high: 0.547, level: 0.95, method: resampling families} + where: all ten slices pooled + baseline: {name: Jev 1.13, value: 0.842, interval: {low: 0.828, high: 0.857, level: 0.95, method: resampling families}} + finding: worse + runs: 1 + cases: 3412 + reporting: ours + also: + - {metric: accuracy, better: higher, value: 0.501, interval: {low: 0.481, high: 0.521, level: 0.95, method: resampling families}, where: LFM3 raw (the case's order)} + - {metric: accuracy, better: higher, value: 0.669, interval: {low: 0.650, high: 0.688, level: 0.95, method: resampling families}, where: djev 0.1} + - {metric: accuracy, better: higher, value: 0.409, interval: {low: 0.392, high: 0.429, level: 0.95, method: resampling families}, where: Laya 421M} + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-slices.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-slices.yaml new file mode 100644 index 0000000..dcf4369 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-slices.yaml @@ -0,0 +1,73 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-slices + description: >- + LFM3 is close to Jev where the answer is in the text and far below where knowledge or reasoning is needed. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/README.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + location: Results so far, the bullet on knowledge and reasoning + read: in full + quote: >- + **Far below where knowledge or reasoning is needed:** MedQA 0.43 against 0.86, MedMCQA 0.41 against 0.76, MMLU-Pro 0.35 against 0.79. + quote_location: Results so far, the bullet on knowledge and reasoning + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + By slice, LFM3 read untuned is close to Jev where the answer is in the text (Aegis 2.0, prompt injections) and + far below it where knowledge or reasoning is needed (MedQA, MedMCQA, MMLU-Pro). JEVal saw the same pattern for + one-pass readouts (the README's words). + metric: accuracy + better: higher + value: 0.43 + where: MedQA (medqa_usmle) + baseline: {name: Jev 1.13, value: 0.86} + finding: worse + runs: 1 + cases: 520 + reporting: ours + also: + - {metric: accuracy, better: higher, value: 0.41, where: MedMCQA, baseline: {name: Jev 1.13, value: 0.76}} + - {metric: accuracy, better: higher, value: 0.35, where: MMLU-Pro, baseline: {name: Jev 1.13, value: 0.79}} + - {metric: accuracy, better: higher, value: 0.76, where: Aegis 2.0 prompts, baseline: {name: Jev 1.13, value: 0.85}} + - {metric: accuracy, better: higher, value: 0.76, where: Aegis 2.0 responses, baseline: {name: Jev 1.13, value: 0.80}} + - {metric: accuracy, better: higher, value: 0.78, where: prompt injections, baseline: {name: Jev 1.13, value: 0.74}} + note: >- + Values rounded as the README gives them. Three slices show behaviour rather than noise: on PubMedQA it answers + "maybe" about 94% of the time; on ATBench it calls nearly every trajectory unsafe; on MMLU-Pro its first token + is " The" or " We" about 58% of the time. + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e04a/e04a-lfm3-speed.yaml b/demos/research-loop/claims/e04a/e04a-lfm3-speed.yaml new file mode 100644 index 0000000..39b97c3 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-lfm3-speed.yaml @@ -0,0 +1,61 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-lfm3-speed + description: >- + One LFM3 read takes 108 ms (median) on the GTX 1070. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout/README.md + version: facbe842bcc0778afc2fbe2a9801cd9895d46fab + repository: OpenReplicant/MetaSoar + commit: facbe842bcc0778afc2fbe2a9801cd9895d46fab + path: trials/decision-readout/README.md + location: Results so far, the last LFM3 bullet + read: in full + quote: >- + **Speed:** 108 ms per read (median) on the GTX 1070. + quote_location: Results so far, the last LFM3 bullet + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: A one-token read of LFM3 1.7B Q6_K takes 108 ms (median) on the GTX 1070 with llama.cpp. + metric: milliseconds per read + better: lower + unit: ms + value: 108 + where: all ten slices pooled (median) + finding: none-stated + runs: 1 + cases: null + reporting: ours + note: From 76 to 585 ms by slice, slowest on atbench500 (results/summary-lfm3.md). + conditions: + models: + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the owner notes it beats 12B and 14B models on general benchmarks; the note cites no benchmark + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 3,412 eval cases of 6,516 usable, ten slices (SST-5 and BANKING77 left out) + ref: resource:default/jevbench-ed50fe0 + method: >- + The question's instructions, the state as JSON and the options labelled A, B, C..., ending "Reply with the + letter of one option only"; `Answer:` prefilled; one token generated and its top 50 log-probabilities kept; + the option letters renormalised (an option outside the top 50 gets half the smallest listed). Two reads per + case, options in order and reversed. Debiased is the mean of both orders; scaled adds one temperature per slice. + thinking: off (enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/probe/probe-lfm3-first-token.yaml b/demos/research-loop/claims/probe/probe-lfm3-first-token.yaml new file mode 100644 index 0000000..de0b37b --- /dev/null +++ b/demos/research-loop/claims/probe/probe-lfm3-first-token.yaml @@ -0,0 +1,46 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: probe-lfm3-first-token + description: >- + Asked a multiple-choice question with Answer prefilled, LFM3's likeliest first token was " Let" (0.37), with about + a third of its probability on the option letters. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: probe + title: MetaSoar docs/decision-backends.md (the probe before E-04a) + url: https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md + version: 92105f815c6c2691288c162a40f376be4dd564bb + repository: OpenReplicant/MetaSoar + commit: 92105f815c6c2691288c162a40f376be4dd564bb + path: docs/decision-backends.md + location: What was measured elsewhere, the paragraph "Size is the wrong condition to compare on" + read: in full + quote: >- + Asked a multiple-choice question with `Answer:` prefilled, LFM3's most likely first token was " Let" (0.37), + with only about a third of its probability on the option letters, so the model wanted to reason first. + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + Read untuned with `Answer:` prefilled, LFM3 1.7B puts most of its first-token probability on starting to + reason, not on an option: " Let" at 0.37, and only about a third on the option letters. + metric: probability on the option letters + better: higher + value: null + finding: none-stated + runs: 1 + cases: 1 + reporting: ours + also: + - {metric: probability of the first token " Let", value: 0.37} + note: >- + One question, recorded in a note; "about a third" is not a number to compare. E-04a's prompt ends "Reply with + the letter of one option only", and its pooled letter mass was 0.86 (e04a-lfm3-order-flip). + conditions: + models: + - {name: LFM3 1.7B, ref: resource:default/lfm3-1.7b-q6-k, size: 1.7B, precision: Q6_K, tuned: untuned} + method: a multiple-choice question with `Answer:` prefilled + unstated: [the question, the prompt beyond the prefill, the engine and its build, whether thinking was off] diff --git a/docs/research-loop-parsers.md b/docs/research-loop-parsers.md new file mode 100644 index 0000000..7a3281b --- /dev/null +++ b/docs/research-loop-parsers.md @@ -0,0 +1,90 @@ +# Paper ingestion: parser survey (checked 2026-11-25) + +Scope: converting papers (mostly arXiv, plus publisher PDFs and web pages) to Markdown with a sidecar that maps spans back to source positions, so every extracted claim cites a span that can be checked mechanically. Versions, dates and licences below come from the GitHub API, PyPI JSON and Hugging Face model APIs and cards, all fetched today. Speed and accuracy figures are taken from the projects' own docs and are self-reported unless I say otherwise. Nothing was installed or run. + +Legend: **[V]** verified from a primary source today. **[U]** unverified or inferred: check it before relying on it. + +## Comparison table + +| Project | Latest version (date) | Code licence | Weights licence (what it downloads) | Provenance output | Tables | Formulas | CPU speed (reported) | MCP server | +|---|---|---|---|---|---|---|---|---| +| **Docling** (IBM / LF AI, `docling-project/docling`) | v2.153.0 (2026-11-25) [V] | MIT [V] | Layout: `docling-layout-heron`/`egret-*` Apache-2.0. Tables: `TableFormerV2` Apache-2.0, `docling-models` CDLA-Permissive-2.0 + Apache-2.0. Formula/code: `CodeFormulaV2` CDLA-Permissive-2.0 (`CodeFormula` v1 MIT). Optional VLM `granite-docling-258M` Apache-2.0. OCR engine is your choice (EasyOCR/RapidOCR/Tesseract extras) [V] | Lossless JSON (`DoclingDocument`). Each item has a JSON-pointer `self_ref` (e.g. `#/texts/12`) and `prov[]` = page_no + bbox (+ charspan). Table cells carry bbox, row/col span and start/end row/col offsets. Reading order and section hierarchy are kept [V]. Markdown export does not carry the mapping inline, so you build the sidecar from the JSON [U: the mechanics are a design step] | TableFormer cell structure, exported as HTML/Markdown, with cell bboxes [V] | `do_formula_enrichment` (off by default) gives LaTeX via CodeFormulaV2 [V] | Tech report (self, 2024 version, OCR off): 1.27-2.45 pg/s on M3 Max, 0.60-1.57 pg/s on a Xeon E5-2690, 16 cores. Datalab's benchmark (competitor) puts docling at 1.4 pg/s on CPU. EasyOCR on CPU is ">30 s/page" (self) [V] | **First-party `docling-mcp`** v3.5.1 (2026-11-23), MIT, stdio/SSE/HTTP via `uvx`. Also `docling-serve` 1.39.0 (REST) [V] | +| **Unstructured** (open-source lib) | 0.27.38 (2026-11-24) [V] | Apache-2.0 [V] | `hi_res` default layout model `unstructuredio/yolo_x_layout`: LICENSE.txt is Apache-2.0 (no HF licence tag). Tables: `microsoft/table-transformer-structure-recognition` MIT [V] | Element list. Each element has `element_id`, `parent_id`, `category_depth`, `page_number`, `coordinates` (points + system) and `detection_class_prob` [V] | `text_as_html` plus `table_as_cells` on Table elements [V]. Quality depends on strategy (`fast` vs `hi_res`) [U] | A `Formula` element type exists. No LaTeX recognition in the OSS lib [U] | Not reported for the OSS lib [U] | `UNS-MCP` is for the **hosted API** and is marked "not actively maintained". The hosted "Transform MCP" is a paid service. No local OSS MCP [V] | +| **MarkItDown** (Microsoft) | v0.1.9 (2026-10-21) [V] | MIT [V] | None by default (pdfminer.six + pdfplumber). OCR plugin calls an LLM you supply. Optional Azure Document Intelligence (cloud) [V] | **None.** Plain Markdown, no page or bbox mapping [V] | pdfplumber tables flattened to Markdown [V] | None [U] | Fast (text layer only). No figure published [U] | **First-party `markitdown-mcp`** 0.0.1a8 (2026-10-21), MIT, one tool `convert_to_markdown(uri)` [V] | +| **Marker** (Datalab) | v2.2.0 (2026-11-12) [V] | Apache-2.0 [V] | **Modified AI Pubs OpenRAIL-M**: free for research, personal use and startups under $5M funding/revenue. Commercial use above that needs a paid licence. This covers Surya 2.5 VLM, Indra ONNX (`license_name: datalab-openrail-m`) and the layout models [V] | JSON tree. Block ids like `/page/10/Table/9`, a 4-corner polygon per block, `section_hierarchy`, and a flat "chunks" format [V] | HTML `` blocks with page bboxes in JSON [V] | LaTeX (`$$` in MD, `` in HTML). Inline math via OCR in balanced mode, or with `--ocr_inline_math` in fast mode [V] | Self (OmniParseBench): `fast` 23.6 pg/s CPU (score 71.0), `no_ocr` 57 pg/s CPU (40.8 overall; 81-83 on born-digital) [V, self-reported] | No first-party MCP. Only small third-party repos (e.g. `Rlahuerta/marker-mcp`, 0 stars) [V] | +| **MinerU** (OpenDataLab / Shanghai AI Lab) | 4.2.3 (2026-11-16) [V] | **"MinerU Open Source License"**: Apache-2.0 plus extra terms: a separate commercial licence is needed above 100M MAU or USD 20M monthly revenue, online services must show attribution, and rights terminate on breach. Not OSI-approved. Was AGPL in earlier versions [V] | `MinerU-4_models_torch` bundle (PP-DocLayoutV2, PP-OCRv6, PP-FormulaNet+, SLANet+) is tagged Apache-2.0, "original models retain their respective licenses". `MinerU2.5-Pro-2605-1.2B` VLM Apache-2.0. **Older `MinerU2.5-2509-1.2B` is AGPL-3.0.** The ONNX bundle has no licence tag [V; per-component licences of the Paddle models U] | `content_list`/`middle_json` with zero-based `page_idx`, blocks with bboxes, page sizes in pt. 4.x adds "stable citation locators" (`doc:/tier:standard/page:N/block:M`) [V] | Ruled and borderless table models, HTML output, cross-page table merging (4.2) [V] | LaTeX via PP-FormulaNet (basic) or VLM (standard/advanced) [V] | `basic` tier runs on CPU via ONNX (~0.8 GB models, 2 GB RAM). `standard` works on CPU with llama.cpp but Vulkan is recommended. No CPU pg/s figure in the README. Datalab (competitor) reports MinerU 2.5-Pro at 0.54 pg/s on GPU [V] | `mineru-mcp` 1.0.0 on PyPI (2025-06-09, MIT), a wrapper for the MinerU **API** with a local option, predating 4.x. MinerU 4 ships an agent "skill" plus a CLI document library, but no MCP [V; 4.x compatibility of mineru-mcp U] | +| **GROBID** (now `grobidOrg/grobid`) | 0.9.1 (2026-08-04) [V] | Apache-2.0. Bundles **pdfalto, GPL-2.0**, run as a separate native binary [V] | Default models are CRF (Apache, shipped). Optional DeLFT deep-learning models (Apache-2.0 code). Model files ship with the repo/Docker [U for the exact weight licence text] | TEI XML with `coords` (page,x,y,w,h) on requested elements: paragraphs, sentences, figures, refs, formulas. Structured header, sections, citations and references (best in class for references: ~0.87-0.90 F1, self) [V] | Detects table zones and gives a TEI table. Cell structure is weak in practice [U] | Detects and locates formula zones. **No LaTeX** [U] | Self: 10.6 PDF/s on one 16-CPU machine, CRF, full text (2019 issue) [V, self-reported] | No first-party MCP. Third-party `JackKuo666/grobid-MCP-Server` (stale, 2025-03) [V] | +| **Nougat** (Meta) | 0.1.0-base (GitHub 2023-08-22). PyPI `nougat-ocr` 0.1.17 (2023-10-04). Last push 2025-02 [V] | MIT [V] | **`facebook/nougat-base`: CC-BY-NC-4.0 (non-commercial)** [V] | None (page-level Markdown/MMD, no bboxes) [V] | LaTeX tables, often hallucinated on hard pages [U] | LaTeX (its strength) [V] | GPU-oriented, very slow on CPU [U] | None found | +| **PyMuPDF4LLM** (Artifex) | Merged into **PyMuPDF 2.x**. `pymupdf` 2.1 (2026-11-02). `pymupdf4llm`/`pymupdf-layout` 2.1 are now empty shims. GitHub `pymupdf4llm` last tag v0.3.4 (2026-02-14) [V] | **AGPL-3.0 or Artifex commercial** (pymupdf, pymupdf4llm, pymupdf-layout) [V] | PyMuPDF Layout GNN (ONNX) under the same AGPL/commercial dual licence [V] | `to_markdown`/`to_json`. Page chunks with page metadata and table/image boxes [U: exact JSON schema not checked] | Native table finder to Markdown [U] | No LaTeX recognition [U] | Fast on CPU ("10x the speed", self, no figure) [V, self] | `pymupdf4llm-mcp` 1.28.0 on PyPI (2026-07-02). Repo link 404s today [V/U] | +| *Also current:* **olmOCR** (AllenAI) | v0.4.27 (2026-03-12) [V] | Apache-2.0 [V] | `olmOCR-2-7B-1025` Apache-2.0 [V] | Page-level text only, no bboxes [U] | Good (olmOCR-bench) | Good | 7B VLM, needs a GPU; not practical on CPU [U] | None first-party | +| *Source route:* **arXiv HTML** (LaTeXML / latexml-oxide) | arXiv now generates with **latexml-oxide 0.7.6** (Rust port, release 2026-08-23). Perl LaTeXML v0.8.8 (2024-02) [V] | latexml-oxide CC0-1.0. LaTeXML public domain (NIST) [V] | None | Stable element ids for sections, paragraphs, tables and maths (`S1.p2`, `S4.T1`, `S1.p2.m1`). **No page numbers or bboxes.** Only `ltx_pagination` markers [V] | Real `
` from the author's LaTeX [V] | MathML with TeX in the `alttext` attribute (142 equations in 1706.03762) [V] | Pre-rendered. Fetching costs nothing to compute | n/a | + +## Benchmarks found (none fully independent) + +- **OmniDocBench v1.6** (`opendatalab/OmniDocBench`, the MinerU team, so MinerU rows are effectively self-reported). Overall = mean of (1-text edit)x100, table TEDS and formula CDM. Overall / Table TEDS / Formula CDM: MinerU2.5-Pro 95.75 / 93.42 / 97.45; MinerU-Pipeline 3.4.0 86.47 / 81.88 / 83.07; olmOCR 85.74 / 83.00 / 88.10; Marker 78.44 / 65.77 / 85.24 (Marker version not shown in the v1.6 table). PaddleOCR-VL-1.6 tops it at 96.34. Docling appears only in older v1.0 component tables. +- **olmOCR-bench** (AllenAI, who make olmOCR; self-interested). Overall: olmOCR v0.4.0 82.4, Marker 1.10.1 76.1 (arXiv split 83.8, tables 72.9), MinerU 2.5.4 75.2 (arXiv 76.6, tables 84.9). No Docling, GROBID or Unstructured rows. +- **OmniParseBench** (Datalab, the Marker maker; self-reported, and run by a competitor for the other rows). Marker fast 71.0 at 23.6 pg/s on CPU. docling 67.5 (tables 72.0, higher than Marker fast's 59.6) at 2.1 pg/s GPU / 1.4 pg/s CPU. Marker balanced 80.5. +- **Docling Technical Report** (arXiv 2408.09869, self-reported, 2024 pipeline): CPU throughput above. +- **GROBID docs** (self-reported): reference parsing F1 ~0.87-0.90, end-to-end benchmarks on readthedocs. +- I found no independent, peer-reviewed comparison that covers Docling, Marker, MinerU and GROBID together on scientific PDFs with current versions. **[U]** + +## Recommendation + +**(a) Default PDF parser: Docling.** +- It is the only candidate where every licence is permissive and approved: MIT code, Apache-2.0 / CDLA-Permissive-2.0 weights. That matters for a kit other people install. +- Its native output already has the provenance we need: JSON-pointer ids, page number, bbox and charspan per item, and table cells with row/col offsets and bboxes. The Markdown-plus-sidecar can be generated straight from `DoclingDocument`. +- It handles reading order and has optional LaTeX formulas (turn `do_formula_enrichment` on). +- It has a maintained first-party MCP server. +- It also reads LaTeX, HTML and JATS XML, so the same document model covers the source route and publisher XML. +- Costs: about 1-2.5 pg/s on CPU with OCR off (self-reported, 2024). Run born-digital PDFs with `do_ocr=False` and enable OCR only for scans. + +**(b) Fallbacks, chosen by failure mode:** +- **MinerU 4.x (basic/standard tiers)** for formula-dense or scanned pages, or when Docling's tables score low. It tops OmniDocBench, but that is a self-published benchmark, and it keeps page_idx and bbox locators. Before shipping it: its licence is Apache-2.0 plus a revenue/MAU threshold and an attribution clause (not OSI), and some older VLM weights (MinerU2.5-2509) are AGPL. Pin the Apache-tagged `MinerU-4_models_*` and `MinerU2.5-Pro` weights. +- **GROBID** as a complement rather than a replacement: header metadata, section structure and especially bibliography/citation linking, with TEI coordinates. CRF mode is fast on CPU. Run it as a Docker service because pdfalto is GPL-2.0 (separate process, so no linking). +- **Avoid for redistribution:** Marker/Surya (OpenRAIL-M weights with a $5M commercial cap, even though it is the fastest CPU option), PyMuPDF4LLM (AGPL), Nougat (CC-BY-NC weights, unmaintained since 2023). MarkItDown is fine for web pages and office files but gives **no provenance** for PDFs. Unstructured is permissive with decent element coordinates, but it has no formula LaTeX and its MCP is a hosted API, so it is a reasonable second choice only if Docling fails to install. + +**(c) When to prefer arXiv HTML or LaTeX over the PDF:** +- **arXiv HTML first for any arXiv paper that has it.** HTML exists for new submissions plus a backfill of the older corpus. latexml-oxide self-reports 98% error-free conversion. +- It wins on fidelity: tables and numbers come from the author's LaTeX, not from OCR or layout guesses; maths comes with exact TeX in `alttext`; reading order is the source order. +- It has stable ids (`S4.T1`, `S3.p2`, `S3.E1`) that are mechanically checkable anchors. Use element id + char offset as the sidecar span. +- Trade-off: no page or bbox. If claims must cite a PDF page, also parse the PDF with Docling and align by text, or treat the HTML id as primary and the page as best-effort. +- Fall back to PDF when the page carries LaTeXML error markers (`ltx_ERROR` / conversion-error banners) [U: exact marker class not checked today], for versions without HTML, or when the citation must point at the version-of-record PDF. +- **LaTeX source** (`arxiv.org/src/`, a tar.gz, confirmed) is the highest-fidelity input. Don't write your own converter: convert it with LaTeXML or latexml-oxide (public domain / CC0), or with Docling's LaTeX backend [U: quality not checked]. Pandoc is GPL-2.0; it is fine as an external binary but worth noting. +- For publisher papers, prefer JATS XML (e.g. PMC) via Docling's JATS backend when it is available, then the PDF. +- Use arXiv's bulk/S3 channels and respect the per-paper licences when caching full text. + +## Sources + +Releases and licences (GitHub API `/repos/`, `/releases/latest`): +- https://github.com/docling-project/docling · https://github.com/docling-project/docling-mcp · https://github.com/docling-project/docling-core (provenance/table schema: `docling_core/types/doc/items/table/table_data.py`, `items/node.py`) +- https://github.com/docling-project/docling/blob/main/docling/datamodel/pipeline_options.py (OCR on, formula enrichment off by default) +- https://github.com/Unstructured-IO/unstructured (`unstructured/documents/elements.py`) · https://github.com/Unstructured-IO/unstructured-inference · https://github.com/Unstructured-IO/UNS-MCP +- https://github.com/microsoft/markitdown (incl. `packages/markitdown-mcp/README.md`, `_pdf_converter.py`) +- https://github.com/datalab-to/marker (README, MODEL_LICENSE) · https://github.com/datalab-to/surya +- https://github.com/opendatalab/MinerU (README, LICENSE.md) · https://opendatalab.github.io/MinerU/reference/output_files/ +- https://github.com/grobidOrg/grobid (Readme.md) · https://github.com/kermitt2/pdfalto (GPL-2.0) +- https://github.com/facebookresearch/nougat +- https://github.com/pymupdf/pymupdf4llm · https://github.com/pymupdf/PyMuPDF/releases (2.1) · https://pymupdf.readthedocs.io/en/latest/pymupdf4llm/api.html +- https://github.com/allenai/olmocr +- https://github.com/brucemiller/LaTeXML (LICENSE: public domain) · https://github.com/dginev/latexml-oxide (CC0-1.0, "98%" claim) + +PyPI (`https://pypi.org/pypi//json`): docling, docling-mcp, docling-serve, docling-ibm-models, unstructured, markitdown, markitdown-mcp, marker-pdf, surya-ocr, mineru, mineru-mcp, pymupdf, pymupdf4llm, pymupdf-layout, pymupdf4llm-mcp, nougat-ocr, olmocr. + +Hugging Face model cards and API: +- https://huggingface.co/docling-project/docling-layout-heron · https://huggingface.co/docling-project/TableFormerV2 · https://huggingface.co/docling-project/docling-models · https://huggingface.co/docling-project/CodeFormulaV2 · https://huggingface.co/ibm-granite/granite-docling-258M +- https://huggingface.co/unstructuredio/yolo_x_layout (LICENSE.txt) · https://huggingface.co/microsoft/table-transformer-structure-recognition +- https://huggingface.co/datalab-to/indra-ocr · https://huggingface.co/datalab-to/surya-ocr-2.5 +- https://huggingface.co/opendatalab/MinerU-4_models_torch · https://huggingface.co/opendatalab/MinerU2.5-Pro-2605-1.2B · https://huggingface.co/opendatalab/MinerU2.5-2509-1.2B +- https://huggingface.co/facebook/nougat-base · https://huggingface.co/allenai/olmOCR-2-7B-1025 + +Benchmarks: +- https://github.com/opendatalab/OmniDocBench (v1.6 leaderboard in README) +- https://github.com/allenai/olmocr (olmOCR-bench table in README) +- https://github.com/datalab-to/marker#benchmarks and https://huggingface.co/datasets/datalab-to/omni_parse_bench +- https://arxiv.org/html/2408.09869 (Docling Technical Report, Table 1) +- https://grobid.readthedocs.io/en/latest/benchmarks/Benchmarking/ + +arXiv source route: +- https://info.arxiv.org/about/accessible_HTML.html +- https://arxiv.org/html/1706.03762v7 and https://arxiv.org/html/2408.09869 (inspected: ids, MathML `alttext`, generator comment "LaTeXML oxide (version 0.7.6)") +- https://arxiv.org/src/2408.09869 (returns `arXiv-2408.09869v5.tar.gz`) diff --git a/docs/research-loop.md b/docs/research-loop.md new file mode 100644 index 0000000..1cd3bd1 --- /dev/null +++ b/docs/research-loop.md @@ -0,0 +1,140 @@ +# The research loop: keeping a system current with the literature, behind the judge + +A concept note, 2026-11-25. A proposal, not a plan step. It was written after a session that ran this loop by hand +(MetaSoar `docs/decision-backends.md`), and it is meant to become a research project of its own, worth founding and +funding. + +## The problem + +A good engineer keeps their systems current by reading their field: a new method, a better default, a model that +now fits on the hardware. Agents that optimise systems mostly do not. They work from what the model already knows +and from the failures they observe, so their improvements are reactive and bounded by the model's training. +Meanwhile the literature produces far more candidate improvements than anyone tests. Most are reported once, on a +setup unlike yours, and their gains are often overstated: meta-analytic effects have run about three times larger +than large preregistered replications (Kvarven et al.), and agents asked to replicate whole papers succeed at a +fraction of them (PaperBench). + +## The idea + +A background loop in Morphogen's kit that does what that engineer does, steadily and at low priority: + +1. **Watch** the literature for what the map cares about: each role's options, and each open question in the + system's docs. It does not read a general feed. +2. **Catalogue the evidence.** A paper's method becomes an option for a role. Its claims become evidence on that + option, each with its conditions: model and capability, precision, engine, dataset, number of runs, whether the + number is self-reported, and where in the paper it came from. +3. **Predict transfer.** Compare a claim's conditions with this system's own (from the map and its observed state) + to estimate whether the gain carries over, and how much to trust it. +4. **Choose the next trial** by expected gain, times the chance of transfer, divided by its cost. Cheap, + high-information trials go first. +5. **Implement and judge.** An optimiser or a coding agent turns the method into a candidate change to a cell, using + the paper's released code where there is some. Morphogen's judge decides on cases the implementer never saw. +6. **Record the outcome against the claim**: replicated, did not transfer, or not testable here. Merged gains + accumulate behind the ratchet. Transfer outcomes then calibrate step 3, so the loop learns which kinds of claims, + sources and conditions carry over to systems like this one. + +Most papers stop at step 2: a catalogued option with its evidence, ready when someone needs it. The loop's other +output is ideas. A method from one paper applied to a role no paper considered is a hypothesis the catalog can hold +until it is worth a trial. + +## Prior work, and what is different + +| Work | What it does | What it does not | +| --- | --- | --- | +| **ScholarEvolve** (Yang et al., arXiv 2609.40169, 2026) | the closest: from an agent's failures, searches arXiv, groups papers into mechanism families by topic modelling, implements them as mutations of five harness modules (tools, context, skills, memory, workflows), crosses modules over and selects on a dev set. Qwen3.5-27B on AppWorld from 49.6% to 63.6%; removing research guidance cost points at every step of the ablation; new publication windows kept improving the harness | targets the agent harness only; selection on a dev set, not by a judge the optimiser cannot edit; no persistent evidence base or prediction of transfer; vetting papers and their code for malicious content is not addressed | +| **PaperBench** (OpenAI, ICML 2025) | agents replicate 20 ICML 2024 papers from scratch | shows how hard replication is: the best agent 21% at first, ML PhDs 41.4% on a subset in 48 hours, agents weakest at running code and matching results | +| **AIDE²** (arXiv 2609.26457) | a research agent improves its own research process: seven successive improvements in an 8-day run | draws on the literature only loosely | +| replication and forecasting research | published effects overstated; prediction markets forecast replication with a correlation of 0.62 | not applied to engineering decisions about one's own system | + +What is different here: +- **Evidence with conditions, kept.** It sits in a catalog shared across systems and runs, not in a one-off search. +- **Transfer is predicted, then scored.** Each prediction is checked against a judged outcome, so trust in the + literature becomes something measured and calibrated. +- **A judge the optimiser cannot edit.** Gains accumulate only through Morphogen's ratchet. +- **Any role in the map**, not only an agent's harness: model settings, components, infrastructure, prompts, code. +- **Runs in the background on modest hardware.** It is meant as a standing habit, not a burst of compute. + +## How it sits on the kit + +| Step | Part | +| --- | --- | +| watch, find | the `research` skill, driven by the map's roles and the docs' open questions | +| ingest | documents encoder (Docling, as planned in kernel milestone 6) or a docs MCP server (K3); the source's HTML or LaTeX before its PDF; `verifier-quotes` (kernel D-67) checks each quote and number against its source; the parser survey is `docs/research-loop-parsers.md` | +| catalogue | options as `Component`s with `spec.lifecycle: candidate`; evidence as claims on them, with conditions | +| our side | the map and its observed state (encoders for running components, model files, hardware, git) | +| predict, schedule | new: a transfer model over claim conditions against ours; a value-of-information queue | +| implement | an optimiser adapter (GEPA for prompts, a coding agent for code), in a sandbox: papers and their code are untrusted input | +| judge | Morphogen's judge, unchanged | +| learn | the evidence log, ingested by the kernel (`encoder-morphogen`, kernel D-99), linked to the claim that motivated the trial | + +The new code is the transfer model, the scheduler and the claim-condition schema. Ingestion, cataloguing, +optimising and judging exist or are already planned. + +### Where evidence claims live + +A claim is a file of its own ([schemas/evidence-claim.v1.json](../schemas/evidence-claim.v1.json), a draft). It is +not part of the option's `spec.morphogen`. Each file is shaped like a Backstage entity of a custom kind +(`apiVersion: morphogen.dev/v1alpha1`, `kind: EvidenceClaim`). It names the option in `spec.about` and the role in +`spec.role`. The option lists its claim files in `spec.morphogen.evaluation.evidence`, as the `catalog` skill already +does for a trial's output. Claim files are never `Location` targets of the judge's catalog. Why: + +- **Claims change on a different clock.** A claim's status moves from predicted to replicated each time a trial + lands, and claims are added as papers are read. Every catalog file is a rule file, read from the base commit, and + an option rarely changes. Keeping claims out of the catalog keeps the rules stable. Default deny still keeps + candidates out of them, since a claim file is named in no cell's `change`. +- **`spec.morphogen` is the code's contract.** Its schema matches the fields the judge loads, and a test keeps the + two equal. Claims would add a nested structure the judge never reads. `evaluation.evidence` already takes a list + of files. +- **One claim, many systems.** A claim's source, numbers and conditions are the same for every system that reads + it. Only its status differs, so each system adds an `assessments` entry rather than a copy (phase 5). +- **A trial's own result is a claim too** (`source.kind: trial`, `reporting: ours`). The paper claim it tests links + to it from `outcome.observed`. A result that bears on several claims is then written down once. + +[demos/research-loop](../demos/research-loop/README.md) is phase 0 in this form. + +## The first worked example + +MetaSoar, 2026-11-25: +- **Sources:** papers on decision models and on when to think (arXiv 2610.00346, 2610.03935, 2606.23181, + 2605.02241). +- **Claims compared with our conditions** in a table, by hand. Our model is LFM3 1.7B Q6_K on llama.cpp; the papers + measured 14B and up on vLLM. +- **The cheapest informative trial:** E-04a, our model's readout against Jev's own predictions on JevBench cases. + It is set up as a cell whose prompt and settings an optimiser may change. + +Recording that session as data is phase 0. + +## Measures of success + +- **Transfer calibration:** of claims predicted to hold here, how many did (Brier score on "the gain held"). +- **Yield:** the share of a system's judged improvement that started from the literature, and the cost of each + verified gain. +- **Honesty:** how often the judge refused a gain that a paper claimed and an implementer reported. +- **Lag:** the time from a paper's publication to a verified adoption. + +## Phases + +0. **The manual loop recorded as data:** today's session, as claims, conditions, a trial and its outcome. +1. **Ingestion and the claim-condition schema:** papers in, claims with conditions and verified quotes out. +2. **A first transfer model:** heuristics over condition distance, scored against outcomes as they arrive. +3. **The background scheduler:** a standing queue, a budget, and nothing urgent. +4. **Implementation agents in a sandbox,** starting with methods that ship code. +5. **Across systems:** transfer outcomes pooled over every system that uses the kit. + +## Risks + +- **Implementation fidelity:** a failed replication is ambiguous. Reproduce the paper's own number on its own setup + before porting. +- **Untrusted input:** papers can carry prompt injections, and their code can be malicious. Read them as data, and + run their code sandboxed. +- **Weak evidence:** many results are self-reported single runs. The transfer model should learn that discount. +- **Contamination:** benchmarks may be in the models' training data, so held-out cases stay with the judge. +- **Compute:** consumer hardware limits trials to cheap ones first, which is also good research practice. + +## Sources + +- [ScholarEvolve: Learning from Research: Toward Lifelong Agent Harness Evolution](https://arxiv.org/html/2609.40169) +- [PaperBench: Evaluating AI's Ability to Replicate AI Research](https://arxiv.org/abs/2504.01848) +- [Recursive self-improvement of AI research agents (AIDE²)](https://arxiv.org/html/2609.26457v1) +- [Predicting replicability: survey and prediction-market data](https://pmc.ncbi.nlm.nih.gov/articles/PMC8046229/) +- [The puzzling relationship between multi-laboratory replications and meta-analyses](https://royalsocietypublishing.org/rsos/article/9/2/211499/96580/The-puzzling-relationship-between-multi-laboratory) diff --git a/schemas/evidence-claim.v1.json b/schemas/evidence-claim.v1.json new file mode 100644 index 0000000..40c2fba --- /dev/null +++ b/schemas/evidence-claim.v1.json @@ -0,0 +1,871 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/OpenReplicant/Morphogen/schemas/evidence-claim.v1.json", + "title": "EvidenceClaim (v1, draft)", + "description": "One claim about an option for a role, extracted from one source, with the conditions it was measured under, and its status for each system that has assessed it (docs/research-loop.md, 'Where evidence claims live'). A claim is a file of its own, shaped like a Backstage entity of a custom kind (apiVersion morphogen.dev/v1alpha1, kind EvidenceClaim) so the kernel can ingest it beside the catalog; the judge never reads it, and it is never a Location target of the judge's catalog. The option it is about is a Component with spec.lifecycle: candidate, which lists its claim files in spec.morphogen.evaluation.evidence. A trial's own result is a claim too, with source.kind trial and reporting ours; a paper's claim links to it from an assessment's outcome.observed. One claim holds one primary measure; further measures from the same sentence or table row go in claim.also.", + "type": "object", + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "additionalProperties": false, + "properties": { + "apiVersion": { + "const": "morphogen.dev/v1alpha1" + }, + "kind": { + "const": "EvidenceClaim" + }, + "metadata": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "pattern": "^[a-z0-9]+([-_.][a-z0-9]+)*$", + "maxLength": 63, + "description": "Backstage's name rule. Unique among claims; outcomes and see_also name claims by it." + }, + "description": { + "type": "string", + "description": "The claim in one line." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "spec": { + "type": "object", + "required": [ + "about", + "role", + "source", + "claim", + "conditions" + ], + "additionalProperties": false, + "properties": { + "about": { + "$ref": "#/$defs/EntityRef", + "description": "The option the claim is about: a Component with spec.lifecycle: candidate." + }, + "role": { + "$ref": "#/$defs/EntityRef", + "description": "The role the claim bears on, one the option fills (spec.morphogen.fills). An option that fills two roles has a claim per role it bears on." + }, + "source": { + "$ref": "#/$defs/Source" + }, + "claim": { + "$ref": "#/$defs/Claim" + }, + "conditions": { + "$ref": "#/$defs/Conditions" + }, + "assessments": { + "type": "array", + "items": { + "$ref": "#/$defs/Assessment" + }, + "description": "The claim's status for each system that has looked at it. This system's own measurements (source.kind trial or probe) need none." + } + }, + "if": { + "properties": { + "source": { + "properties": { + "kind": { + "not": { + "enum": [ + "trial", + "probe" + ] + } + } + } + } + } + }, + "then": { + "required": [ + "assessments" + ], + "properties": { + "assessments": { + "minItems": 1 + } + } + } + } + }, + "$defs": { + "EntityRef": { + "type": "string", + "pattern": "^([a-z]+:)?([a-z0-9-_.]+/)?[a-z0-9]+([-_.][a-z0-9]+)*$", + "description": "A Backstage entity ref, `[kind:][namespace/]name`." + }, + "ClaimName": { + "type": "string", + "pattern": "^[a-z0-9]+([-_.][a-z0-9]+)*$" + }, + "Number": { + "description": "A number; or a range over the conditions the source pooled (several models, datasets), {min, max}; or null where the source gives none.", + "oneOf": [ + { + "type": "number" + }, + { + "type": "null" + }, + { + "type": "object", + "required": [ + "min", + "max" + ], + "additionalProperties": false, + "properties": { + "min": { + "type": "number" + }, + "max": { + "type": "number" + }, + "over": { + "type": "string", + "description": "What the range runs over." + } + } + } + ] + }, + "Interval": { + "type": "object", + "required": [ + "low", + "high" + ], + "additionalProperties": false, + "properties": { + "low": { + "type": "number" + }, + "high": { + "type": "number" + }, + "level": { + "type": "number", + "exclusiveMinimum": 0, + "exclusiveMaximum": 1, + "description": "e.g. 0.95" + }, + "method": { + "type": "string", + "description": "How it was computed, as the source says (bootstrap over families, ...)." + } + } + }, + "Measure": { + "type": "object", + "required": [ + "metric" + ], + "properties": { + "metric": { + "type": "string", + "description": "As the source names it: accuracy, calibration error (ECE), AUROC, order-flip rate, ..." + }, + "better": { + "enum": [ + "higher", + "lower" + ], + "description": "Which way the metric is better, as in a cell's `better`." + }, + "unit": { + "type": "string", + "description": "When it is not a plain fraction: percent, ms, tokens, per hundred." + }, + "value": { + "$ref": "#/$defs/Number", + "description": "The option's value, as stated." + }, + "interval": { + "$ref": "#/$defs/Interval", + "description": "Only if the source states one." + }, + "where": { + "type": "string", + "description": "Where this measure was taken when it narrows the claim's conditions (one dataset, one slice)." + }, + "baseline": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "What the option is compared with (Jev 1.13, always-thinking, the raw readout)." + }, + "value": { + "$ref": "#/$defs/Number" + }, + "interval": { + "$ref": "#/$defs/Interval" + } + } + } + } + }, + "Source": { + "type": "object", + "required": [ + "kind", + "title", + "location", + "read", + "quote", + "quote_status" + ], + "additionalProperties": false, + "properties": { + "kind": { + "enum": [ + "paper", + "preprint", + "docs", + "repository", + "dataset", + "note", + "trial", + "probe" + ], + "description": "trial: a measurement this system ran; probe: an informal check recorded in a note." + }, + "title": { + "type": "string" + }, + "id": { + "type": "string", + "description": "A stable identifier: arXiv:2610.00346, a DOI, a trial id (E-04a)." + }, + "url": { + "type": "string", + "format": "uri" + }, + "version": { + "type": "string", + "description": "arXiv v2, a release, a commit: the exact text the claim came from." + }, + "repository": { + "type": "string", + "description": "For a trial or note in git: the repository (owner/name)." + }, + "commit": { + "type": "string", + "pattern": "^[0-9a-f]{7,40}$" + }, + "path": { + "type": "string", + "description": "The file in that repository at that commit." + }, + "location": { + "type": "string", + "description": "Where in the source: section, table, figure, finding." + }, + "read": { + "type": "string", + "description": "How much of the source was read before the claim was written (abstract only, results, in full)." + }, + "quote": { + "type": "string", + "description": "Verbatim from the source, or empty when none was taken; quote_status says which." + }, + "quote_location": { + "type": "string", + "description": "Where the quote is, finer than location when it can be." + }, + "quote_status": { + "enum": [ + "checked", + "unchecked", + "none" + ], + "description": "checked: matched against the source text by a verifier; unchecked: copied but not matched; none: no verbatim quote taken." + }, + "quote_note": { + "type": "string", + "description": "Why there is no quote, or what the check compared." + }, + "via": { + "type": "object", + "description": "The secondary source the claim was taken from, when it was not read from the source directly (a research note that paraphrases the paper).", + "required": [ + "title", + "quote" + ], + "additionalProperties": false, + "properties": { + "title": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "repository": { + "type": "string" + }, + "commit": { + "type": "string", + "pattern": "^[0-9a-f]{7,40}$" + }, + "path": { + "type": "string" + }, + "location": { + "type": "string" + }, + "quote": { + "type": "string", + "description": "Verbatim from the secondary source (the paraphrase the numbers were taken from)." + } + } + } + }, + "allOf": [ + { + "if": { + "properties": { + "quote_status": { + "const": "none" + } + } + }, + "then": { + "properties": { + "quote": { + "const": "" + } + }, + "required": [ + "quote_note" + ] + } + }, + { + "if": { + "properties": { + "quote_status": { + "enum": [ + "checked", + "unchecked" + ] + } + } + }, + "then": { + "properties": { + "quote": { + "minLength": 1 + } + } + } + }, + { + "if": { + "properties": { + "kind": { + "enum": [ + "paper", + "preprint" + ] + } + } + }, + "then": { + "required": [ + "id", + "url", + "version" + ] + } + }, + { + "if": { + "properties": { + "kind": { + "const": "trial" + } + } + }, + "then": { + "required": [ + "id", + "repository", + "commit", + "path" + ] + } + } + ] + }, + "Claim": { + "description": "What the source says, in its own terms: one primary measure, the effect against a baseline, and how strong the evidence is.", + "allOf": [ + { + "$ref": "#/$defs/Measure" + } + ], + "type": "object", + "required": [ + "statement", + "finding", + "reporting" + ], + "unevaluatedProperties": false, + "properties": { + "statement": { + "type": "string", + "description": "The claim in words, no stronger than the source." + }, + "finding": { + "enum": [ + "better", + "worse", + "matches", + "differs", + "none-stated" + ], + "description": "The option against the baseline, as the source concludes." + }, + "effect_size": { + "type": "object", + "required": [ + "value", + "kind" + ], + "additionalProperties": false, + "description": "Only if the source states one; a difference computed from two stated numbers is not stated.", + "properties": { + "value": { + "$ref": "#/$defs/Number" + }, + "kind": { + "enum": [ + "absolute", + "relative", + "ratio", + "standardised", + "other" + ] + }, + "note": { + "type": "string" + } + } + }, + "significance": { + "type": "string", + "description": "The source's words on significance, if any." + }, + "runs": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "description": "Independent runs (seeds, repeats) behind the number; null when not stated." + }, + "cases": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "description": "Items the number is measured on; null when not stated." + }, + "reporting": { + "enum": [ + "self", + "independent", + "ours", + "unknown" + ], + "description": "self: the source measures its own method, or a comparison its own method wins; independent: it measures methods it did not make; ours: this system's own trial; unknown: the claim's source does not say." + }, + "also": { + "type": "array", + "items": { + "$ref": "#/$defs/Measure", + "unevaluatedProperties": false + }, + "description": "Further measures from the same passage." + }, + "note": { + "type": "string" + } + } + }, + "Model": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "ref": { + "$ref": "#/$defs/EntityRef", + "description": "This system's entity for it, when it is ours." + }, + "size": { + "type": "string", + "description": "As the source states it (1.7B, under 0.5B, 7 to 8B)." + }, + "precision": { + "type": "string", + "description": "bf16, FP8, AWQ 4-bit, Q6_K, ..." + }, + "tuned": { + "type": "string", + "description": "How it was trained for the task, if at all: untuned, fine-tuned, self-distilled, GRPO." + }, + "capability": { + "type": "string", + "description": "What is known of its capability beyond size, and from whom." + } + } + }, + "Conditions": { + "type": "object", + "description": "What the number was measured under. An open map: the named keys are the ones a transfer model compares first; anything else that matters goes beside them.", + "properties": { + "models": { + "type": "array", + "items": { + "$ref": "#/$defs/Model" + } + }, + "engine": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "ref": { + "$ref": "#/$defs/EntityRef" + } + } + }, + "dataset": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "split": { + "type": "string" + }, + "size": { + "type": "string" + }, + "ref": { + "$ref": "#/$defs/EntityRef" + } + } + }, + "method": { + "type": "string", + "description": "The prompt, readout or procedure as the source describes it." + }, + "thinking": { + "type": "string", + "description": "Whether the model reasoned before answering, and how that was set." + }, + "hardware": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "memory": { + "type": "string" + }, + "ref": { + "$ref": "#/$defs/EntityRef" + } + } + }, + "labels": { + "type": "string", + "description": "Labelled data the method needs or used." + }, + "unstated": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Conditions that matter here and the source (or its paraphrase) does not state." + } + }, + "additionalProperties": true + }, + "Prediction": { + "type": "object", + "required": [ + "p_transfer", + "reason", + "by", + "date", + "before_outcome" + ], + "additionalProperties": false, + "properties": { + "p_transfer": { + "type": "number", + "minimum": 0, + "maximum": 1, + "description": "The probability that the claim's finding (its direction, and its size roughly) holds under this system's conditions. For a claim of no gain or a loss, that the loss holds too." + }, + "reason": { + "type": "string", + "description": "Which conditions match and which do not." + }, + "by": { + "type": "string", + "description": "Who or what made it: a person, an agent's draft, the transfer model and its version." + }, + "date": { + "type": "string", + "format": "date" + }, + "before_outcome": { + "type": "boolean", + "description": "Whether it was written before any outcome was seen. Only predictions made before count towards calibration." + } + } + }, + "Outcome": { + "type": "object", + "required": [ + "trial", + "observed", + "summary", + "comparison", + "verdict" + ], + "additionalProperties": false, + "properties": { + "trial": { + "type": "object", + "required": [ + "id" + ], + "additionalProperties": false, + "properties": { + "id": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "repository": { + "type": "string" + }, + "commit": { + "type": "string", + "pattern": "^[0-9a-f]{7,40}$" + }, + "path": { + "type": "string" + } + } + }, + "observed": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/ClaimName" + }, + "description": "The claims (source.kind trial) that hold the trial's own numbers." + }, + "summary": { + "type": "string", + "description": "How the observed numbers bear on the claim." + }, + "comparison": { + "enum": [ + "same-setup", + "our-setup" + ], + "description": "same-setup: the source's own setup reproduced; our-setup: the method ported to this system's conditions (a transfer test, not a replication of the paper)." + }, + "verdict": { + "type": "object", + "required": [ + "by", + "decision" + ], + "additionalProperties": false, + "properties": { + "by": { + "enum": [ + "morphogen", + "falsifier", + "operator", + "none" + ], + "description": "morphogen: the judge's verdict on a candidate; falsifier: a criterion registered before the outcome; operator: a person's call; none: not decided yet." + }, + "decision": { + "type": "string", + "description": "pass or refuse for the judge; met or not met for a falsifier." + }, + "ref": { + "type": "string", + "description": "The verdict's id or file, or where the falsifier is registered." + }, + "note": { + "type": "string" + } + } + }, + "date": { + "type": "string", + "format": "date" + } + } + }, + "Assessment": { + "type": "object", + "required": [ + "system", + "status", + "date" + ], + "additionalProperties": false, + "properties": { + "system": { + "$ref": "#/$defs/EntityRef", + "description": "The System this status is for." + }, + "against": { + "type": "array", + "items": { + "$ref": "#/$defs/EntityRef" + }, + "description": "This system's entities whose conditions the claim was compared with (models, engine, hardware, dataset)." + }, + "status": { + "enum": [ + "untested", + "predicted", + "replicated", + "did-not-transfer", + "not-testable" + ] + }, + "prediction": { + "$ref": "#/$defs/Prediction" + }, + "outcome": { + "$ref": "#/$defs/Outcome" + }, + "reason": { + "type": "string", + "description": "Why it is untested or not testable, or anything the outcome does not say." + }, + "see_also": { + "type": "array", + "items": { + "$ref": "#/$defs/ClaimName" + }, + "description": "Observed claims that bear on it without testing it." + }, + "date": { + "type": "string", + "format": "date" + } + }, + "allOf": [ + { + "if": { + "properties": { + "status": { + "const": "predicted" + } + } + }, + "then": { + "required": [ + "prediction" + ] + } + }, + { + "if": { + "properties": { + "status": { + "enum": [ + "replicated", + "did-not-transfer" + ] + } + } + }, + "then": { + "required": [ + "outcome" + ] + } + }, + { + "if": { + "properties": { + "status": { + "enum": [ + "untested", + "not-testable" + ] + } + } + }, + "then": { + "required": [ + "reason" + ], + "not": { + "required": [ + "outcome" + ] + } + } + } + ] + } + } +}