Cold Starts, Rejection Sampling, and Distillation › Verifier filtering for training and best-of- at inference
Language AI HandbookAll chapters Here, verifier filtering supplies examples for fitting, and best-of- selects a response for one inference request. Acceptance rules can also be used at inference. The distinction in this comparison is what happens to the selected response.
Best-of- inference. At inference time, sample candidate traces for prompt from a fixed policy . Assign each a score and return the candidate with the highest score. The model parameters stay fixed. The expected score of the selected trace is
where the expectation is over independent candidates. If the score equals binary correctness, the expectation is the probability that at least one candidate is correct, for per-draw success probability . With an imperfect ranker, measure the true correctness of the selected candidate.
If , one draw succeeds with probability 0.1. Sixteen independent draws give roughly 0.81 probability that the pool includes a success. A perfect ranker realizes that gain in selected accuracy. With an imperfect ranker, the extra draws can also give a high score to an incorrect answer.
Rejection sampling for training. Offline. The samples are filtered, the survivors are collected into a dataset, and the model is fine-tuned. Evaluate on held-out prompts with one sample per prompt if the aim is to isolate single-draw performance.
Verifier-filtered fitting spends compute ahead of serving to change a model's parameters. Best-of- adds generation and scoring at serving time. The two can be combined by using the fitted model as the inference proposal. Measure both its single-draw accuracy and its selected accuracy on held-out prompts.
For one fixed prompt under a perfect oracle, suppose a pool of 64 independent attempts succeeds with probability 0.70. The chance all 64 fail is 0.30. If each attempt has the same success probability , then
That is about 1.86% per draw for this prompt. Across prompts with varying success probabilities, oracle pass@ averages the per-prompt success probabilities after applying the pool formula. The single-prompt inversion does not recover mean single-draw accuracy from that aggregate.
Filtered training needs an acceptance decision for each candidate in the offline pool. Best-of- needs an ordering within each request's pool. A score can rank the correct candidate first while putting a wrong candidate above the filter threshold. Judge cost, reproducibility, and accuracy matter in both settings.
Compare offline generation, scoring, and fitting costs with the repeated cost of generating and scoring candidates for each served request. Request volume and latency determine whether the online cost fits the budget. Compare the measured task quality under each use of the verifier.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!