Adrian RomoAdrian Romo
All writing
Project Log 5 min read· Updated

The Benchmark I Tuned Against Stopped Being a Benchmark

Recall on my memory layer's tuned questions rose from 54 to 80 of 97 in one iteration. On held-out questions it went from 13 to 14 of 36. A stricter grader, a plain BM25 baseline, and one retraction.

I wrote about my homelab's compiled memory layer in an earlier post. Since October it has been working through its own audit, and that audit set a quality gate I have not met: at least 95% of the evidence a correct answer needs has to reach the context packet. This is the iteration where that number went up a lot, and the part of it that did not.

The old grader was generous

Until November 7 the benchmark marked a case grounded if any one expected string showed up in the packet. By that rule 37 of 48 cases (77%) passed.

The replacement grades each piece of required evidence separately. A case lists the specific fact, graph edge or document section a correct answer needs, and each item counts on its own. An agent wrote the labels from the underlying sources, never from a packet, because a label copied out of a packet only measures the packet against itself. First reading: 42 of 103.

A second agent, working as a refuter, then checked all 103 labels against the sources and against every hit and miss. Eighteen were wrong: 15 false misses, 2 false hits, and 1 item that was not actually required. Corrected, the number was 54 of 102 (52.9%).

On November 8 the labels went through review. An agent session checked every item against its source text and wrote a verdict on each; I read the verdicts and signed the import, which is what the tooling counts as human review. Six items changed to accept a second source, five were dropped as fragments of a sentence another item already carried, and 97 remained. Recall on them: 52.6%. The review moved the number by nothing. Of the 46 misses, 42 had never been retrieved at all, so the gap was retrieval, not labelling.

Tuning

Iteration 13 went after those misses one question shape at a time: keep a decision record's context and decision sections for why-questions, compile the network inventory into facts, list a relation's graph members when a question names it, and finally an append lane that adds pooled evidence and document sections after the packet without displacing anything in it.

Measured on one frozen snapshot of a later store generation, with each question's class fixed to its label (the oracle track):

code tree              tune + dev       held-out
before iteration 13    54/97 (55.7%)    13/36
first three slices     68/97 (70.1%)    13/36
with the append lane   80/97 (82.5%)    14/36

No item was lost at any step. Two changes were declined on their numbers: a larger selection lost a listed item, and listing every route behind the reverse proxy bought one item for about 1,700 tokens per question.

The held-out column

The held-out split is 18 cases, 15 of them with gradable labels (36 items), written by an agent working in isolation from the tuning. A wrapper runs it and prints pooled counts only, so no held-out question or label enters the loop I tune in. Its labels are not reviewed yet, and with 36 items one item is 2.8 points.

Twenty-six items gained on tune and dev, one on held-out. Each slice fixed a shape I had found in the tune and dev misses, and that is the mechanism of the gap. With the append lane, 21 of the 36 held-out items are never retrieved at all, and the lane can only promote rows that already reached the candidate pool.

From here on, tune and dev are a development set. Their numbers overstate progress, and I quote held-out separately.

A boring baseline

I also ran plain BM25 over the same store's two full-text tables with the raw question: no router, no graph, no reranking, same grader. On held-out it found 7 of 36 at the same token count as the packet, and 11 of 36 when allowed to fill the whole class cap. The layer, before the append lane, listed 13 to 14.

At equal tokens the layer lists roughly twice what BM25 does, on seen and unseen questions alike. BM25 still finds 6 items the layer misses.

Answers, and a retraction

Recall says what is in the packet. Whether the answer is right is a separate measurement. Before the append lane, I sent each tune and dev question once to qwen3:14b on the 3090, temperature 0, with either the packet or BM25 at equal tokens: 48 questions, 93 gradable items.

The automatic grader checks whether the answer contains the item's anchor. A refuter agent then read all 186 gradings and found 18 false wrongs and 1 false correct in the packet arm, 16 and 2 in the BM25 arm. The grader errs in both directions, so it is not even a floor, and the checked numbers are the only ones I quote: 53 of 93 items (57%) with the packet, 44 of 93 (47%) with BM25. At the question level the two tied, 21 of 48 correct each. The packet's worst failures held a stale note beside the current fact, and the model followed the stale one.

The first run of this measurement was reported as about 20% accuracy with the two arms tied. It capped output at 400 tokens with thinking on, so 64 to 81% of answers were cut off and graded wrong, and the number went out before anyone read an answer. I retracted it. The tool now reports truncation as its own outcome and fails the run when more than 10% of answers are truncated.

Where it stands

Live, after the November 10 compile, recall reads 77 of 97 (79.4%), lower than the snapshot because the live graph no longer holds two false edges the lane had been listing. Held-out reads 14 of 36 on the snapshot. The gate is 95%, and it is not met on any split.

The next slices get planned from held-out failure classes, described without reading held-out text. The held-out labels need review and more cases. And a rule for stale-beside-current context, one that says which statement is current, looks worth more than another point of recall on questions I have already tuned for.

Written by

Adrian Romo

Senior Backend Engineer: Python backends, AWS, enterprise integrations, realtime voice systems, and AI infrastructure.

Keep going

Where to next?

Browse more technical writing, see the engineering case studies, or reach out directly.