GSM8K Verifier Search
Use this skill when candidate solutions have verifier scores and the experiment needs to select a final answer per GSM8K problem. It implements top-score selection and top-k majority voting.
Do not use this skill to create verifier scores. It only consumes scored candidates.
Inputs
- Candidate records with
problem_id,extracted_answer,verifier_score, and optionallabel. - Selection mode:
top_scoreortop_k_vote. - Top-k value for voting.
Outputs
- Prediction records with selected answer, selected candidate id, and audit details.
- Ranking and vote metadata.
Workflow
- Group scored candidates by problem id.
- Sort candidates by verifier score with deterministic tie-breaking.
- Select the top candidate in
top_scoremode. - Count final-answer votes among the top
kranked candidates intop_k_votemode. - Emit predictions ready for solve-rate evaluation.
Validation
Run:
python scripts/verifier_search.py self-test
python tests/test_verifier_search.py
Limitations
The skill assumes scores are already comparable within a problem. It does not calibrate scores across models or datasets.