Skip to content
nonconvexcard

Sizing best-of-n

NumericalBeginner⏱ 15 minAgentsbest of nsamplingcost

Problem

A model solves a task with probability p=0.25p = 0.25 per attempt, and a checker identifies correct solutions perfectly.

  1. Compute samples needed for 90%, 99% and 99.9% success.
  2. Compute the marginal cost of each additional nine.
  3. If each sample costs $0.002, compute cost per solved task at each target.

Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Price a latency targetAI SystemsNumericalIntermediate30 min
The pass@k estimatorAgentsProofIntermediate30 min
Temperature monotonically controls entropyLLMsProofAdvanced30 min
The ceiling imposed by a fallible verifierAgentsProofAdvanced30 min
The KL divergence of best-of-n abyssAgentsProofGraduate1 hour