Measurement infrastructure for trustworthy agent auto-tuning of LLM serving engines. This is the companion artifact of the paper "AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines" (arXiv preprint, 2026).
AutoTuneBench runs an evolutionary loop — propose candidate → sandbox build → correctness check → fair timing → profiling → score → keep/discard — around a serving engine or kernel task, and makes the measurement itself trustworthy rather than trusting the tuner:
- Protocol as code. Every bar, timebox, and acceptance rule lives in
config/protocol.yaml, frozen with per-field provenance; a test fails if a field loses its source. A database-level validator (pdb/ingest_validate.py) rejects any result that violates the frozen protocol. - Architectural anti-cheating. Reference implementations live outside the
modification surface (
gates/), a 10x anomaly breaker quarantines suspicious speedups, and runtime checks count forbidden fallbacks. - Pre-registered comparisons. A/B arms are registered before they run, with a treatment-delivery checkpoint that stops the comparison if the treatment provably never reached the prompts.
- Evidence ledger. One JSONL record per iteration
(
observability/iterations.jsonl) carries the full field set; append-only audit logs record every gate decision.
| Path | Contents |
|---|---|
orchestrator/ |
Loop controller, SSH executor, CLI (ar run) |
agents/ |
Proposers (flag-space deterministic, LLM, random) + vendored OpenEvolve |
sandbox/ |
Candidate build sandbox |
harness/ |
Timing/correctness harness (GB10 engines + MLX kernel path) |
asi/ |
Profiler-feedback attachment (engine log parsing) |
gates/ |
Anti-cheating gate battery (G1–G6) |
pdb/ |
Program DB schema, store, ingest validator |
router/ |
L0–L5 model router |
config/ |
protocol.yaml (frozen), engines.yaml (digest-pinned images), task configs |
experiments/ |
Task specs (task.py / reference.py / task.yaml) per benchmark task |
observability/ |
Iteration ledger, audit logs, proposer failure records |
figs/ |
Scripts that generate every figure in the paper |
tests/ |
Full test suite (329 tests, green at export) |
Both engine sources pin as git submodules upstream (not vendored here):
| Engine | Version | Commit |
|---|---|---|
| SGLang | v0.5.19 | 0bcd822377da7b5718e674eaf9c870d349424dd1 |
| vLLM | v0.29.0 | 98dff2a81d747d1dba01a47f939f48c3526d4206 |
Execution uses container images, digest-pinned in config/engines.yaml.
uv sync # or: pip install -e .
pytest # 329 tests, no GPU needed (15 MLX-path tests
# need Apple Silicon; they skip elsewhere)Running a loop requires a compute box reachable over SSH (the controller runs
locally; all build/timing legs are dispatched to the box) — see
config/autoresearch.yaml. The deterministic flag-space and random proposers
need no API key; the LLM proposer arms read a DeepSeek key from the
DEEPSEEK_API_KEY environment variable (never stored in the repo).
# 20-iteration flag-space run on a task (no LLM key needed)
ar run experiments/mingpt_gelu_tune --proposer flagspace --iterations 20Each figure script in figs/ embeds its measured values as constants with
provenance comments pointing at the raw evidence files; the KernelBench
distribution script reads experiments/kernelbench_l1/results/l1_run.json
directly. python figs/plot_<name>.py regenerates any figure.
observability/iterations.jsonl— one record per iteration (all tasks)observability/audit-*.log— append-only gate/adjudication audit trailobservability/proposer_failures.jsonl— every failed proposal with causeexperiments/kernelbench_l1/results/— Level-1 pass@1 run + tableARTIFACT.md— claim-by-claim map from the paper to these files
Code and data: MIT (see LICENSE). Third-party code in agents/vendor/
carries its own upstream license.