The Limits of Inference Scaling Through Resampling

Benedikt Stroebl, Sayash Kapoor, Arvind Narayanan

Introduction

Recent advancements in AI have popularized "inference scaling"—the practice of generating multiple candidate solutions and selecting the one that passes a verifier, such as a suite of unit tests. This resampling approach has fueled optimism that smaller, more efficient models could match the performance of state-of-the-art giants simply by allocating more compute at inference time.

However, this paradigm relies on a critical assumption: that verifiers are perfect. In reality, unit tests have limited coverage, and automated LLM judges can be deceived. This paper investigates the fundamental limits of inference scaling when verifiers are imperfect, revealing that increased compute can sometimes just increase the likelihood of accepting a "false positive"—a broken solution that deceptively passes the tests.

Methodology and Datasets

The researchers conducted a rigorous empirical study focused on code generation using a generator-verifier framework. To measure the "generalization gap" and precise false positive rates, they employed a two-tier testing strategy. Models first generated solutions evaluated against standard, limited unit tests from popular benchmarks. Then, these solutions were tested against the "ground truth" using comprehensive "plus" versions of these benchmarks (HumanEval+ and MBPP+), which contain thousands of hidden test cases to catch subtle bugs.

By comparing the pass rates between the two tiers, the authors quantified how often models produce false positives. The study evaluated a diverse model zoo, including the Llama 3.1 family, GPT-4o, GPT-3.5 Turbo, and Cohere's Command models.

Key Insights

  • The Capability-Reliability Correlation: There is a striking linear correlation between a model’s base capability (single-sample accuracy) and its reliability (accuracy conditional on passing the verifier). Weaker models do not just fail more often; they are significantly more likely to produce fragile code that passes basic tests while containing logical errors or failing on edge cases.
Capability-Reliability Correlation
  • The Hard Ceiling: Because resampling cannot decrease the underlying probability of a false positive, imperfect verifiers impose a mathematical upper bound on accuracy. For many tasks, a weaker model's accuracy with "infinite compute" remains lower than a strong model's single-shot accuracy. You cannot simply sample your way out of being a less capable model.
  • False Positives Degrade Quality: Beyond functional incorrectness, false positive solutions exhibit lower overall quality. They tend to adhere less to coding style conventions (like naming variables in camelCase) and are generally less readable.

Key Results

  • The Bending Scaling Curve and Low Optimal $K$: Standard scaling laws imply that more samples consistently improve outcomes. However, when assigning a realistic "cost" to deploying a bug (a false positive) versus the "benefit" of a correct answer, the reward curve eventually bends downward. For realistic cost-benefit ratios, the optimal number of resampling attempts ($K$) is often fewer than 10. Beyond that, the risk of hitting a false positive outweighs the chance of finding a true solution.
Reward Curve and Optimal K
  • GPT-4o Remains the Benchmark: The empirical ceiling means that in many scenarios, no amount of resampling allows a smaller model like Llama 3.1 8B to match the single-invocation performance of GPT-4o.
  • Bimodal Task Difficulty: Tasks generally fall into two categories: "easy" (solved in a few attempts) or "hard." On hard tasks, the probability of encountering a false positive increases with continuous sampling, making extensive resampling highly risky.

Limitations and Future Work

The study primarily focuses on coding tasks and unit tests. While the theoretical framework is domain-agnostic, further empirical validation is needed in areas like mathematical reasoning or creative writing. Future research must also explore mitigation strategies, such as self-reflection mechanisms where an LLM fixes a solution after it passes a verifier, and address the open challenge of developing more robust verifiers to safely unlock the full potential of inference scaling.

Summary updated

BibTeX
@inproceedings{stroebl2026limits,
  author = {Benedikt Stroebl and Sayash Kapoor and Arvind Narayanan},
  title = {{The Limits of Inference Scaling Through Resampling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=j8H84v6AZ1},
}
Figure