NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Prediction of Pass@k Scaling in Large Language Models

Joshua Kazdan, Rylan Schaeffer, Youssef Allouah, Colin Sullivan, Kyssen Yu, Noam Levi, Sanmi Koyejo

TL;DR

Predicting how Large Language Models (LLMs) perform when given multiple attempts ($\text{pass}@k$) is vital for safety and capability forecasting, but computing it directly for large $k$ is prohibitively expensive. This paper introduces a robust beta-binomial estimation framework combined with a dynamic sampling strategy that focuses compute on the hardest problems, delivering highly accurate scaling predictions at a fraction of the computational cost.

What Problem Does This Paper Address?

When an LLM is allowed multiple attempts to solve a problem, its success rate can climb dramatically—whether it's cracking a complex math puzzle or successfully executing a jailbreak attack. This behavior is captured by the $\text{pass}@k$ metric, which measures the probability of getting at least one correct answer in $k$ trials.

However, directly measuring $\text{pass}@k$ for large values of $k$ (e.g., thousands of attempts) requires generating an immense number of samples per problem, which quickly becomes economically impossible. To circumvent this, researchers try to extrapolate high-$k$ performance from a very small sample budget. Unfortunately, standard extrapolation techniques—like log-log linear regression or discretized empirical Bayes methods—suffer from severe statistical flaws, often leading to highly inaccurate or physically impossible predictions (such as pass rates exceeding 100%).

Methods

The authors propose a two-pronged solution to fix the statistical shortcomings of prior work:

  1. Beta-Binomial Distributional Fitting: Instead of using aggregate statistics or artificial log-scale bins (which introduce downward bias on hard problems), they model the underlying problem difficulty distribution directly as a continuous Beta distribution. They then fit a beta-binomial distribution directly to the raw success and trial counts using Maximum Likelihood Estimation (MLE).
  2. Dynamic Sampling Strategy: High-$k$ scaling is governed almost entirely by the hardest problems in a dataset. The authors introduce an adaptive sampling algorithm (SelectHardestProblem) that dynamically allocates the remaining compute budget to problems with the lowest observed success rates, rather than sampling uniformly across all tasks.

Datasets

The method was evaluated across three diverse, real-world benchmarks containing 10,000 ground-truth samples per problem:

  • MATH: High school competition-level mathematical reasoning problems.
  • Code Contests: A competitive programming benchmark consisting of description-to-code tasks.
  • AdvBench: An adversarial NLP benchmark used to evaluate model safety and jailbreak vulnerabilities.

These benchmarks were tested across a wide array of open and closed models, including the Pythia series, Gemma series, Llama 3, GPT-4o, Claude 3.5, and Gemini 1.5.

Key Insights and Ideas

  • The Tail Governs the Scale: In the high-$k$ regime, distinguishing between an easy problem and a very easy problem provides virtually zero predictive information. What truly matters is the shape of the difficulty distribution near zero (the hardest problems).
  • The Pitfalls of Regression: Standard log-log linear regression violates fundamental statistical assumptions. The paper mathematically proves that $\text{pass}@k$ estimates derived from the same sample pool are neither independent nor homoskedastic, explaining why standard regression curves wildly diverge.
  • Smart Allocation Beats More Compute: Prioritizing harder problems mathematically minimizes the variance of the frequentist estimator. You get better data by choosing what to sample rather than just sampling more.

Key Results

The proposed Dynamic + Beta-Binomial framework tracks the true ground truth far better than previous methods across all tested models and datasets.

Comparing Forecasting Methods for pass@k Across Different Datasets

As shown in Figure 1, standard linear regression quickly shoots up to impossible pass rates, while the previous state-of-the-art discretized beta method consistently underestimates performance at high $k$. In terms of error reduction, the authors' approach achieves a Mean Squared Error (MSE) that is up to 10x lower than competing methods as the budget scales.

Limitations and Future Work

  • While the authors provide a rigorous frequentist proof showing that dynamic sampling minimizes variance, analyzing the exact effect of this adaptive scheme within a multi-stage Bayesian context remains theoretically challenging and is left for future work.
  • The framework assumes problem difficulties can be reasonably approximated by a Beta distribution; highly irregular or multimodal difficulty distributions might require more complex mixture models.

Summary updated

BibTeX
@misc{kazdan2025efficient,
  author = {Joshua Kazdan and Rylan Schaeffer and Youssef Allouah and Colin Sullivan and Kyssen Yu and Noam Levi and Sanmi Koyejo},
  title = {{Efficient Prediction of Pass@k Scaling in Large Language Models}},
  year = {2025},
  eprint = {2510.05197},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05197},
}
Figure