Principle:2akouwu Reverify Benchmark Reproducibility
| Knowledge Sources | |
|---|---|
| Domains | Benchmarking, Verification, Reproducibility |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
Methodology for constructing reproducible benchmarks that prove a verifier catches real LLM hallucinations with zero false accepts, measured by confusion matrices and prologue-prior probes on real system binaries, with Wilson upper-bound confidence intervals and machine-readable JSON records for third-party replay.
Description
Benchmark Reproducibility ensures that the zero-false-accept guarantee is not a claim but a measurable, reproducible fact. The benchmarks apply adversarial priors (textbook assumptions that are plausible but often wrong) to real system binaries, run the verifier, and check that:
- No wrong claim is ever marked VERIFIED (false_verified = 0).
- The prior is actually wrong often enough to be a meaningful test (prior_wrong > 0).
- The verifier recovers the truth after one round of feedback (recovered).
Four benchmarks implement this principle:
- Prologue Prior: Applies the textbook frame-pointer prologue (
push rbp; mov rbp, rsp) blind to real binaries. ~97% wrong on Windows files, 0 false VERIFIED. The headline benchmark. - Verifier Matrix: Builds a confusion matrix per claim kind (bytes_at, u32_at, instructions, import_present, etc.) with known-true and known-false cases. FP (false positives) must be 0. FN (false negatives, missed true) are tracked separately.
- Hallucination Probes: A multi-prior scorecard (prologue, MD5 const, import gets, .rodata section, ELF shoff) that independently re-checks VERIFIED verdicts against raw bytes.
- Model-in-Loop: Runs the full closed loop with a real model, measuring grounded rate, rounds to ground, and hallucinations caught.
All benchmarks produce machine-readable JSON records (with SHA-256 per binary, tool versions, platform, exact verdicts) and markdown tables for human interpretation. CI gates on --fail-on-false-verified (exit 2 if any false accept).
Usage
Use this principle when:
- You need to prove that a verifier has zero false accepts, not just assert it.
- You want reproducible benchmarks that a third party can replay with the same verdicts.
- You are building a CI gate that fails on any false VERIFIED.
- You want to measure how often a model hallucinates and whether the verifier catches it.
Theoretical Basis
The core metric is the false-verified rate with Wilson upper bound:
Failed to parse (syntax error): {\displaystyle \text{false\_verified\_rate\_upper95} = \text{WilsonUpper}(0, n) \text{ at } 95\% \text{ confidence} }
Where 0 is the observed false-verified count and n is the number of tested binaries. The Wilson score interval gives an upper bound on the true false-positive rate given the sample size. With 71 binaries and 0 false accepts, the upper bound is small but non-zero — the benchmark is honest about what it proves.
The confusion matrix per claim kind:
The invariant: FP must be 0. A single false VERIFIED is a critical failure (exit 2). FN (missed true) are tracked but do not fail the gate — a missed claim is a limitation, not a lie.
# Abstract algorithm (NOT real implementation)
for binary in corpus:
for probe in adversarial_priors:
claim = probe.apply(binary) # e.g. "entry is push rbp; mov rbp, rsp"
verdict = verifier.verify(claim)
actual = read_real_bytes(binary, probe.target)
if verdict == VERIFIED and actual != probe.expected:
false_verified += 1 # CRITICAL FAILURE
if verdict == REFUTED:
prior_wrong += 1 # prior was wrong (expected)
# Gate: false_verified must be 0
assert false_verified == 0
Key properties:
- Reproducible corpus: Built from C sources with known compilers at -O0/-O2. Each artifact has a SHA-256. The manifest records toolchain versions and flags.
- Adversarial priors: The priors are deliberately plausible but often wrong (textbook assumptions). This maximizes prior_wrong — the benchmark tests catching real hallucinations, not confirming easy truths.
- Independent re-check: Each probe re-verifies VERIFIED verdicts against raw bytes, so the benchmark does not trust the verifier's own judgment.
- Machine-readable records: JSON with SHA-256, engine versions, platform, exact verdicts per binary — a third party can replay.
Practical Guide
To reproduce the benchmarks:
- Build the corpus:
python benchmarks/corpus/build.py out_dir(compiles C sources with gcc/clang at -O0/-O2, produces shared libraries + manifest.json). - Run the prologue prior:
python benchmarks/prologue_prior.py [dirs] --fail-on-false-verified(applies the prologue prior, checks 0 false VERIFIED, exit 2 on failure). - Run the verifier matrix:
python benchmarks/verifier_matrix.py [dirs] --fail-on-false-verified(confusion matrix per claim kind, exit 2 on FP, exit 4 on missed true). - Run hallucination probes:
python benchmarks/hallucination_probes.py [dirs](multi-prior scorecard, global false VERIFIED must be 0). - Run model-in-loop:
python benchmarks/model_loop.py [dirs] --mock(offline, no API key needed; or without --mock for a real model). - Record results: Use
--json OUTto write machine-readable records,--markdownfor human tables.
Related Pages
Implemented By
- Implementation:2akouwu_Reverify_corpus_build
- Implementation:2akouwu_Reverify_prologue_prior_run
- Implementation:2akouwu_Reverify_verifier_matrix_run
- Implementation:2akouwu_Reverify_hallucination_probes_run
- Implementation:2akouwu_Reverify_model_loop_run
Related Principles
- Principle:2akouwu_Reverify_Tool_Grounded_Verification — the benchmarks test this principle's zero-false-accept guarantee.
- Principle:2akouwu_Reverify_Closed_Verification_Loop — the model-in-loop benchmark tests the full loop.