# Large Language Monkeys: Scaling Inference Compute with Repeated Sampling

- **ID:** 951
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2407.21787
- **Authors:** Brown, Bradley, Juravsky, Jordan, Ehrlich, Ryan, Clark, Ronald, Le, Quoc V., Ré, Christopher, Mirhoseini, Azalia
- **Venue:** arXiv 2407.21787
- **Publisher:** arXiv 2407.21787
- **Published:** 2024
- **Source:** arxiv
- **Access:** open arXiv PDF/abs
- **Tags:** arxiv, 2407-21787, reasoning-rl, linkedin-thread
- **Topics:** reasoning / RL
- **Added:** 2026-09-15
- **Verified:** 2026-09-15
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/951

## Summary

Scaling the amount of compute used to train language models has dramatically improved their capabilities. However, when it comes to inference, we often limit models to making only one attempt at a problem. Here, we explore inference compute as another axis for scaling, using the simple technique of repeatedly sampling …

## Attributes

- **Purpose:** Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
- **Domain:** reasoning / RL
- **Used for:** LLM research reference
- **Time period:** arXiv 2024/07/31; Discord LinkedIn mid harvested 2026-09-15
- **Author type:** academic/industry (see abs)

## From the source (fetched 2026-10-03)

- **Published:** Jul 31, 2024 (arXiv)
- **Last revised:** Dec 30, 2024 (arXiv)
- **arXiv categories:** cs.LG, cs.AI (arXiv)
- **Citations:** 1,029 (81 influential) (Semantic Scholar)
- **References:** 58 (Semantic Scholar)

## Abstract

Scaling the amount of compute used to train language models has dramatically improved their capabilities. However, when it comes to inference, we often limit models to making only one attempt at a problem. Here, we explore inference compute as another axis for scaling, using the simple technique of repeatedly sampling candidate solutions from a model. Across multiple tasks and models, we observe that coverage -- the fraction of problems that are solved by any generated sample -- scales with the number of samples over four orders of magnitude. Interestingly, the relationship between coverage and the number of samples is often log-linear and can be modelled with an exponentiated power law, suggesting the existence of inference-time scaling laws. In domains like coding and formal proofs, where answers can be automatically verified, these increases in coverage directly translate into improved performance. When we apply repeated sampling to SWE-bench Lite, the fraction of issues solved with DeepSeek-Coder-V2-Instruct increases 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, we find that common methods for picking from a sample collection (majority voting and reward models) plateau beyond several hundred samples and fail to fully scale with the sample budget.

## Research notes

- From LinkedIn thread (Discord mid 1321331200874254399). Primary: https://www.linkedin.com/posts/philipp-schmid-a6a2bb196_test-time-compute-scaling-but-in-simple-activity-7276162046050668544-bYxt?utm_source=share&utm_medium=member_desktop.

## Cites, within this collection

- [Graph of Thoughts: Solving Elaborate Problems with Large Language Models](https://papers.projxon.ai/entries/911) (paper 2023, #911)

## Cited by, within this collection

- [s1: Simple test-time scaling](https://papers.projxon.ai/entries/3) (paper 2025, #3)
- [Decentralized Multi-Agent Systems with Shared Context](https://papers.projxon.ai/entries/493) (paper 2026, #493)
- [Agentic Systems as Boosting Weak Reasoning Models](https://papers.projxon.ai/entries/512) (paper 2026, #512)
- [Reasoning Models Can Be Effective Without Thinking](https://papers.projxon.ai/entries/551) (paper 2025, #551)
- [LLaMA-Berry: Pairwise Optimization for O1-like Olympiad-Level Mathematical Reasoning](https://papers.projxon.ai/entries/577) (paper 2024, #577)
- [Vector Policy Optimization: Training for Diversity Improves Test-Time Search](https://papers.projxon.ai/entries/673) (paper 2026, #673)
- [The Model Knows, the Decoder Finds: Future Value Guided Particle Power Sampling](https://papers.projxon.ai/entries/755) (paper 2026, #755)
- [When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis](https://papers.projxon.ai/entries/802) (paper 2026, #802)
- [Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning](https://papers.projxon.ai/entries/856) (paper 2026, #856)
- [VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks](https://papers.projxon.ai/entries/870) (paper 2026, #870)
- [Not All Bits Are Equal: Scale-Dependent Memory Optimization Strategies for Reasoning Models](https://papers.projxon.ai/entries/953) (paper 2025, #953)
- [Budget-aware Test-time Scaling via Discriminative Verification](https://papers.projxon.ai/entries/954) (paper 2025, #954)
- [Planned Test-Time Scaling with Coordinated Reasoning Paths](https://papers.projxon.ai/entries/1043) (paper 2026, #1043)
- [Recursive Self-Improvement via On-Policy Distillation for Reasoning](https://papers.projxon.ai/entries/1083) (paper 2026, #1083)
- [Trajectory-Refined Distillation](https://papers.projxon.ai/entries/1121) (paper 2026, #1121)

## Similar entries

- [LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts](https://papers.projxon.ai/entries/930) (paper, #930)
- [Token-Efficient RL for LLM Reasoning](https://papers.projxon.ai/entries/964) (paper, #964)
- [Attention-Aligned Reasoning for Large Language Models](https://papers.projxon.ai/entries/934) (paper, #934)
- [The Art of Scaling Reinforcement Learning Compute for LLMs](https://papers.projxon.ai/entries/961) (paper, #961)
- [The Markovian Thinker: Architecture-Agnostic Linear Scaling of Reasoning](https://papers.projxon.ai/entries/952) (paper, #952)
- [From $f(x)$ and $g(x)$ to $f(g(x))$: LLMs Learn New Skills in RL by Composing Old Ones](https://papers.projxon.ai/entries/937) (paper, #937)
