Repository navigation
Re-score the real-model arm on final answers - #1
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonlandreal.summary.jsonare untouched.What changes
src/rescore.ts: a final-answer scorer besidescore(), which is not modified.npm run rescorereplays 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.npm run realoutput. CLAIMS.md maps each new claim to its test.Extraction rules
CONFIDENCE:to the end is removed, as the strict scorer removes it.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, andnetwork-38stopped mid-sentence.yesorno, punctuation ignored.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
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 rescoreandnpm run real: run clean in replay, and the strict column equalsreal.summary.json.test/rescore.test.tsred.Not for merging until reviewed.