Brain API/Model
Independent research · Brain API · Agentic Datasets

System One: a small trained model that judges dataset requests

It reads an Agentic Dataset's descriptor and a request, and judges which of the capabilities policy admitted the request is for. Policy decides what may run. The model judges only what policy admitted, and every decision is recorded with the model's version.

98.1%
held-out accuracy on generated families, trained 1.5B
92.6% before training
96.3%
held-out accuracy on generated families, trained 0.5B
69.5% before training
314 ms
median per decision, trained 1.5B
7B reference: 98.2% at 1,499 ms
88.3%
on Bitext, which no step trains on, trained 1.5B
47.2% before training, each at its own threshold
Results

Right on dataset families it never saw

12 dataset families were generated with their truth fixed in advance. The model trained on 8 and was tested on the other 4, over two seeds and 3,393 requests. Against the same base model prompted with the descriptor, training wins on every held-out family at both sizes. One held-out family, cellar, shares no word of its contract language with training, stop words aside.

before training (prompted)trained
0.5B
60%70%80%90%100%airport97.1%cellarno shared words93.0%inspections96.1%wildlife98.5%
1.5B
60%70%80%90%100%airport99.3%cellarno shared words97.2%inspections98.9%wildlife96.7%
Table
Held-out familyRequests0.5B before0.5B trained1.5B before1.5B trained
airport89368.5%97.1%92.0%99.3%
cellar74273.2%93.0%91.6%97.2%
inspections88372.9%96.1%93.1%98.9%
wildlife87563.8%98.5%93.6%96.7%
Speed

Close to the 7B, in a fraction of the time

Alone, the trained 1.5B reaches 98.1% on the held-out families against 98.2% for a 7B model asked the same question, at a median of 314 ms per decision against 1,499 ms. The trained 0.5B reaches 96.3% at 122 ms.

70%80%90%100%100 ms200 ms500 ms1,000 ms2,000 msmedian per decision, log scale0.5B before training0.5B trained1.5B before training1.5B trained7B reference

How latency was measured. Wall-clock time per decision on one laptop GPU (RTX 4060 Laptop), one request at a time, one question per capability in turn. The 0.5B and 1.5B run in-process with Hugging Face Transformers; the 7B runs through Ollama, which reuses the cached prompt between questions. The runtimes differ, so the gap is not model size alone.

Training also calibrates the model. Its expected calibration error on the held-out families falls from 0.373 to 0.003 for the 1.5B and from 0.435 to 0.009 for the 0.5B; the 7B's is 0.008.

The 7B's probabilities are approximate. Its probability of yes is read from the top 20 next tokens Ollama returns, and for about half of its judgments yes or no was not among them; the missing one then takes the lowest returned value. Its calibration error is read from those probabilities.

Table
Model, aloneHeld-out accuracyMedianp95Calibration error
0.5B before training69.5%125 ms253 ms0.435
0.5B trained96.3%122 ms247 ms0.009
1.5B before training92.6%313 ms715 ms0.373
1.5B trained98.1%314 ms714 ms0.003
7B reference98.2%1,499 ms2,790 ms0.008
Decision record

Policy first, then the model

The control plane filters a dataset's capabilities by policy before any model is asked. The model then answers one typed question for each capability that remains; the control plane selects by a versioned rule and writes the decision record. Permission comes only from policy; what the model adds is a recorded judgment. One held-out decision, as recorded:

Request
“Show me site WS-8771.”
dataset marsh-wildlife · principal analyst · clearance internal
Policy

Of 9 capabilities the dataset offers, policy removes 4 before any model is asked:

  • average_richness_by_habitat insufficient privilege
  • average_birds_by_team classification exceeds clearance
  • count_sites_by_team insufficient privilege
  • set_site_access insufficient privilege
System One

For each of the 5 that remain, one typed question: is the request within the scope of this capability?

CapabilityP(in scope)
get_site0.9996
compare_sites_on_richness0.0006
richness_trend0.0003
sightings_of_site0.0010
forecast_birds0.0002
Record

Selected: get_site. The record carries every judgment, the model's version (adapter b159ad364e33b82b), the rule's version (dc19db4aac9bd59d) and the dataset policies applied (WLD-05, WLD-06, WLD-17).

Over the held-out requests the trained 1.5B wrote 3,393 decision records. Re-derived from their recorded inputs, 3,393 came out byte-identical, and 200 of 200 judgments asked again of the running model matched the recorded ones. For 524 requests policy admitted nothing, and no model was asked.

Encoder

A smaller model, in milliseconds

A fine-tuned encoder was measured the same way: the MS MARCO MiniLM-L6 cross-encoder, 22.7 million parameters, fine-tuned on the same 16,409 examples, with its threshold from out-of-fold scores. It reaches 96.1% on the held-out families at a median of 6.8 ms per decision (p95 11.8 ms), against 96.3% at 122 ms for the trained 0.5B and 98.1% at 314 ms for the trained 1.5B. Its expected calibration error is 0.010.

It holds back requests that name nothing. The set has 30 such requests, “do the thing”, “go ahead” and “help” among them, each put to the 40 held-out datasets of one seed, 1,200 in all. At a threshold of 0.5, the encoder proposes no capability for 1,190 of them; the trained 1.5B holds back 346 and the trained 0.5B 589. The list was written, and its sha256 recorded, before any model scored it.

0%25%50%75%100%requests that name nothing, held backencoder99.2%0.5B trained49.1%1.5B trained28.8%

Its decision records re-derive the same way: of 3,393 written over the held-out requests, 3,393 came out byte-identical, and 200 of 200 judgments asked again of the running encoder matched the recorded ones.

Table
Model, aloneHeld-out accuracyMedianp95Calibration errorNaming nothing, held back
encoder trained96.1%6.8 ms11.8 ms0.0101,190 of 1,200
0.5B trained96.3%122 ms247 ms0.009589 of 1,200
1.5B trained98.1%314 ms714 ms0.003346 of 1,200
Training

How it was trained