Skip to content
d41sysPublic

About

Evaluation runner and benchmark harness from first principles

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

evalkit

Evaluate LLMs and agents, and tell whether a difference between two models is real.

evalkit runs tasks against models, scores them, and reports paired statistics: confidence intervals, significance with multiple-comparison correction, and how many examples you would need to see a difference. It also grades free-text answers with an LLM judge whose agreement with humans is measured. It supplies the statistics for the ezcross-ems agent evals.

Every number below has a full protocol, data and caveats in REPORT.md or the linked folder.

Quickstart

uv run evalkit run --tasks tasks --models oracle,noisy:0.3,random --out runs/demo
uv run evalkit leaderboard runs/demo
uv run evalkit compare runs/demo/results.jsonl --all-pairs

The last command answers "is model A better than model B?" for every pair, with a p-value corrected for the number of pairs and the sample size each unresolved pair would need. The LLM judge needs uv sync --extra llm and ANTHROPIC_API_KEY; local Hugging Face models need --extra hf.

Commands

Command What it does
run, leaderboard Run YAML tasks against models; ranked table with intervals, Elo, calibration
compare Paired test of two models, or all pairs with Holm correction, effect size and power
judge, judge-correct LLM-as-judge with position and length controls; pass rate corrected for judge error
monitor, review, failure-modes, audit Weekly pass rate with alert; annotation sheet; label counts; broken-item check
trajectory, variance, rank Agent tool-call metrics; item / prompt / trial variance; Bradley-Terry ranking
stats-check, judge-correct-check Monte Carlo check that the statistics above keep their promised error rates
import-helm, helm-study, metric-check, irt-subset Rerun the statistics on public HELM Lite results

uv run evalkit <command> --help lists the options.

Results

Statistics

Check Result Details
Do the tests keep their promised error rates? Five rounds of Monte Carlo checks, each protocol committed before scoring; the problems found (undercoverage at small n, skewed scores, many ties) were fixed and rechecked REPORT.md
Does evalkit reproduce HELM Lite? Exactly, from HELM's per-item data (91 models) REPORT.md
Is HELM Lite's ranking supported? Only 41 of 90 adjacent rank gaps are resolved; 16 of those go the other way docs/sota-review.md

LLM judge on public benchmarks

Each rule was tuned on a training or dev split, frozen in a commit, then run once on held-out data. For MT-Bench the protocol was committed before the single test run.

Benchmark evalkit judge Best published Details
MT-Bench, agreement with experts 86.0% (Sonnet 5.5) GPT-4 85.4%; experts with each other 84.2%* REPORT.md
RAGTruth, F1 78.2 (Sonnet 5.5, rule v2) 78.7, fine-tuned Llama-2-13B data/ragtruth
TRIVIA+, ROC-AUC 0.865 (Sonnet 5.5, rule v2) 0.795, SC-GPT data/triviaplus
HaluBench, mean accuracy 93.2 (Opus 5.5, rule v4)**; 90.1 (Haiku 5.5, rule v5) 87.4, fine-tuned LYNX 70B data/halubench
FaithBench, balanced accuracy 77.7 (Haiku 5.5, rule s1) 68.8 zero-shot (o3-mini-high); 84.0 FaithJudge (few-shot) data/faithbench

* Computed by us on the same 1,000 test items from the verdicts Zheng et al. released, not a number printed in their paper. ** Rule v4's tuning data shared passages with part of the HaluBench holdout; on the clean part it scores 97.4% on CovidQA. FaithBench is on 417 summaries from 53 articles, the published rows on 599.

Where the published numbers come from (each checked against the paper's PDF on 2026-11-27):

Benchmark Source Table
MT-Bench Zheng et al. 2023, arXiv 2306.05685; data lmsys/mt_bench_human_judgments released GPT-4 and expert verdicts
RAGTruth Niu et al., ACL 2024, arXiv 2401.00396 Table 5, overall response-level F1
TRIVIA+ ACL 2026, 2026.acl-long.680 Table 7, ROC-AUC (SC-GPT 0.795, LLM judge 0.766)
HaluBench Lynx paper, Ravi et al. 2024, arXiv 2407.08488 Table 3 (LYNX 70B, 87.4 overall)
HaluBench, per source the Lynx paper plus Liu et al. 2025, arXiv 2601.09734 Tables 7 and 8; the highest accuracy per source, from different models
FaithBench Tamber et al. 2025, arXiv 2505.04847 Tables 1 and 2

"Best published" means the best number found in these papers only; no wider literature search was done.

ezcross-ems agent evals

Question Result Details
Does the eval separate agents from do-nothing baselines? Yes: scripted agent 20/20, do-nothing 0/20, refuse-all 1/20 REPORT.md
Production model, forecast-v1 Sonnet 4.5 passes 99 of 100 trials; the set is saturated data/ezc/2026-11-16-sonnet-4.5
Held-out set: Haiku 4.5 vs Sonnet 4.5 Haiku lower by 0.162 [0.089, 0.230] on 383 cases; an upper bound, part of it comes from check bugs REPORT.md
Judge for invented claims in answers Passes 93.8% of good answers, catches 95.3% of bad ones (Sonnet 5.5, held-out test) data/ezc/judge-v1

Open items

  • Issue #7, weekly grading of production sessions: evalkit monitor is ready; it waits on ezcross-ems#254 being merged and four weeks of sessions.
  • ezc judge labels: the owner relabelled six items after seeing judge output; two blind rechecks confirm three of them. See data/ezc/judge-v1.

Development

CI (.github/workflows/ci.yml) runs ruff, the format check, mypy and pytest on every push to main. A release is a tag v<version> matching pyproject.toml; the workflow attaches the wheel:

uv tool install https://github.com/d41sys/evalkit/releases/download/v0.1.0/evalkit-0.1.0-py3-none-any.whl

Design choices (metrics in plain NumPy, sandboxed code execution, unbiased pass@k, randomisation test over sign test) are listed at the end of REPORT.md.

About

Evaluation runner and benchmark harness from first principles

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages