Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
FreeScaling inference compute through repeated sampling of LLMs
About Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
Large Language Monkeys is a research paper that explores scaling inference compute by repeatedly sampling candidate solutions from large language models. The study demonstrates that coverage—the fraction of problems solved by any generated sample—scales with the number of samples over four orders of magnitude, often following a log-linear relationship modeled by an exponentiated power law, suggesting inference-time scaling laws. In domains with automatic verification, such as coding and formal proofs, repeated sampling directly translates into improved performance. For example, on SWE-bench Lite, using DeepSeek-Coder-V2-Instruct increases issue resolution from 15.9% with one sample to 56% with 250 samples, outperforming the single-sample state-of-the-art of 43%. In domains without automatic verifiers, common selection methods like majority voting and reward models plateau beyond several hundred samples, failing to fully scale with the sample budget.
Key Features
Pros & Cons
- Simple technique requiring no additional training or fine-tuning
- Provides substantial performance improvements in verifiable domains
- Reveals universal scaling laws for inference compute
- Applicable to any pre-existing language model
- Directly increases task coverage with more samples
- Performance gain plateaus in domains without automatic verifiers
- Requires sufficient compute budget for generating many samples
- Selection methods like majority voting and reward models fail to fully scale with sample budget
- Not suitable for tasks where ground truth verification is unavailable