Skip to content
PavelRavvichPublic

About

Independent benchmark of TypeSafe Jev (System One) vs cheap and frontier LLMs: accuracy, calibration, latency, cost

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

jev-bench

An independent benchmark of TypeSafe's Jev (jev-1.13) against a cheap LLM (openai/gpt-6-luna) and a frontier LLM (openai/gpt-6-astra) on two public classification tasks, graded against ground-truth labels.

Write-up: article/jev-article.md

What's measured

Task Jev primitive Sample
SMS Spam Collection Noul 500 messages (71 spam)
Banking77 (test split) Choice, 77 options 500 messages

Metrics: accuracy, macro-F1, ECE, Brier, latency p50/p95, cost per 1k calls, plus paired bootstrap confidence intervals, selective accuracy, and a Jev → frontier cascade. The frontier model was run on the first 130 messages of each sample (shared subset) to keep cost down.

All models were called through OpenRouter: Jev via the Decisions API (/api/alpha/decisions), LLMs via chat completions with JSON output and verbalized confidence. The whole experiment cost about $1.13.

Results

Jev vs cheap LLM Three models Confidence when wrong Cascade

Raw per-message predictions are in results/*_preds.jsonl; summaries in results/*.json.

Reproduce

Requires uv and an OpenRouter key in OPENROUTER_API_KEY (or OPEN_ROUTER_KEY).

uv sync
mkdir -p data && curl -L -o data/banking77_test.csv \
  https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/test.csv

# Jev and the cheap LLM, 500 messages per task
for t in spam banking77; do
  uv run jev_bench.py --task $t --backend jev
  uv run jev_bench.py --task $t --backend llm --llm-model openai/gpt-6-luna
done

# Frontier LLM on the shared 130-message subset, with a spend cap
for t in spam banking77; do
  uv run jev_bench.py --task $t --backend llm --llm-model openai/gpt-6-astra --n 150 --max-cost 1.5
done

uv run bootstrap.py 130            # three models, shared subset
uv run bootstrap.py 500 jev,luna   # Jev vs cheap LLM, full sample
uv run make_tables.py              # regenerate images/

The random seed (42) fixes the sample, so every model sees the same messages. Model versions are pinned (typesafe/jev-1.13); the exact version that answered is recorded in each prediction row.

Note: when calling expensive models with a low OpenRouter balance, OpenRouter may reserve the cost of the maximum possible completion and return HTTP 402. In the original run this cut the frontier runs at 135 and 130 messages; analyses use the first 130.

Limitations

Small samples (500 / 130), one configuration per model, verbalized confidence for LLMs, sequential requests from Israel, minimal reasoning for the frontier model, public datasets that may be in training data. See the article for details.

Data licenses

SMS Spam Collection and Banking77 are distributed under CC BY 4.0 by their authors. The prediction files include message texts from these datasets.

About

Independent benchmark of TypeSafe Jev (System One) vs cheap and frontier LLMs: accuracy, calibration, latency, cost

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages