Skip to content

Re-score the real-model arm on final answers - #1

Merged
m-sanchez merged 3 commits into
mainfrom
analysis/final-answer-rescore
Oct 5, 2026
Merged

m-sanchez merged 3 commits into
mainfrom
analysis/final-answer-rescore

Conversation

@m-sanchez

@m-sanchez m-sanchez commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Post-hoc re-scoring of the recorded real-model arm. The scoring rule was chosen after the replies had been read, and the README says so. The recorded strict-scorer verdict stays as recorded, and study/transcripts/real.jsonl and real.summary.json are untouched.

What changes

  • src/rescore.ts: a final-answer scorer beside score(), which is not modified. npm run rescore replays the transcript only (no network) and refuses to run if the transcript does not hash to the pinned summary.
  • test/rescore.test.ts: extractor tests on real transcript replies (working then answer, "No.", truncated, a finished wrong answer) and on synthetic cases ("Yes.", comma-grouped numbers, ISO dates, substrings, a first token with a trailing . or -). It also pins every printed number, including the whole printed report, the result over distinct prompts and with the late cut-offs counted as truncated, checks that the strict column reproduces the pinned summary, and checks the transcript and summary bytes against fixed hashes before and after a re-score.
  • README: a new section, "Re-scoring the real-model arm: what the strict scorer measured". Every earlier accuracy claim is now qualified as a strict first-token result, and so is the npm run real output. CLAIMS.md maps each new claim to its test.

Extraction rules

  1. Everything from the first CONFIDENCE: to the end is removed, as the strict scorer removes it.
  2. A reply with no CONFIDENCE: line counts as wrong. There are 27 of these, all routed, and every one stopped at the 256-token limit. 3 of them would match the answer under rules 3 and 4: 2 had already stated it, and network-38 stopped mid-sentence.
  3. Numeric answers: the last number, comma-grouped thousands allowed, commas removed, compared numerically. A minus sign is never read.
  4. yes/no answers: the last standalone yes or no, punctuation ignored.
  5. Any other answer: the last token, with surrounding punctuation stripped, must equal the answer exactly. This cannot happen in this study.
  6. Nothing of the required shape means wrong.

A strict miss that is right on its final answer is classified by its first token after stripping a trailing . or -: the answer means trailing punctuation, another number or yes/no means it opened with a wrong answer, anything else means it opened with working.

Numbers

strict final answer
generalist 331/400 (82.8%) 352/400 (88.0%)
routed 271/400 (67.8%) 364/400 (91.0%)
McNemar b / c 81 / 21 22 / 34
exact p 1.7e-9 0.141
B-A, 95% interval -15.0pp [-19.8, -10.3] +3.0pp [-0.5, 6.8]

Per domain, generalist / routed. Strict: ledger 100/77, network 74/63, timeline 74/32, identity 83/99. Final answer: 100/100, 86/90, 74/74, 92/100.

Over the 372 distinct prompts the final-answer result is b 22, c 29, p 0.40; the 28 duplicate identity prompts add 5 routed-only pairs to the +3.0pp. Strict over distinct prompts stays b 81, c 16, p 1.2e-11. Counting the 5 replies that reached the 256-token limit inside their CONFIDENCE: line as truncated too gives p 0.42.

On the 81 questions the strict scorer gave to the generalist alone, 53 routed replies opened with working and ended on the right answer, 22 were cut off at the 256-token limit before their CONFIDENCE: line (2 of them after already stating the right answer) and 6 were "No." with a full stop. None was a finished wrong answer. On final answers, all 22 generalist-only questions are those same cut-off replies.

The finding this supports is that the strict first-token scorer largely measured answer format. Not entirely: the 22 cut-offs stay wrong on final answers. Every question asked for the answer only ("Answer with the number only." or "Answer yes or no only."), while the routed ledger and timeline primings asked for working first, so the working-first openings and the cut-offs are side effects of the priming that the strict scorer correctly penalised under the registered rule. On final answers the difference is not significant, and +3.0pp is below the roughly 5.7pp this arm can reliably detect at 400 questions, so not significant does not mean equal. It shows neither that routing won nor that it lost. ECE was not re-scored.

Checks

  • npm test: 38 pass. npm run typecheck: clean. npm run rescore and npm run real: run clean in replay, and the strict column equals real.summary.json.
  • Mutation checks: changing the pinned final routed count from 364 to 365, dropping the truncation rule, keeping the full stop on "No.", reading a minus sign, matching yes/no as substrings, or keeping commas each turns test/rescore.test.ts red.

Not for merging until reviewed.

A second scorer, chosen after the replies were read, reads the last answer
a reply states instead of its first token. score() is untouched and the
strict column still reproduces the pinned summary. npm run rescore replays
the transcript only and prints both scorers per arm and per domain, the
exact McNemar b, c and p for each, and why the strict scorer marked each
reply wrong. Every printed number is pinned, and the transcript and summary
bytes are checked before and after a re-score.
The recorded verdict stays the strict one. The README now qualifies the
earlier accuracy claims as strict first-token results, states the
final-answer rules, both tables, the format breakdown and the final-answer
McNemar p, and says what the re-score does not show. CLAIMS maps each new
claim to its test.
The strict first-token result is now labelled as the strict scorer's
everywhere it appears, including the npm run real output. The cut-off
replies are described as cut off at the 256-token limit before their
CONFIDENCE line, and rule 2 says 3 of the 27 would match under rules 3
and 4 rather than that they end on the answer. The re-score section adds
the result over the 372 distinct prompts, the sensitivity to the 5 late
cut-offs, the detection floor, and the prompt and priming wording behind
the format failures. Each new number is pinned in test/rescore.test.ts and
mapped in CLAIMS.md. Routine comments in the re-score code are removed.
@m-sanchez
m-sanchez merged commit b0568bd into main Oct 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant