TL;DR
Repeated sampling can dramatically amplify both large language model capabilities and jailbreaking risks, but directly evaluating success rates at high numbers of attempts ($\text{pass}@k$) is computationally expensive. This paper diagnoses fundamental statistical flaws in existing extrapolation methods (like log-log power-law regression) and introduces a conjugate beta-binomial estimation framework combined with an adaptive, difficulty-aware sampling strategy. This combination accurately forecasts $\text{pass}@k$ scaling up to $k=10^4$ using orders-of-magnitude fewer samples.
What Problem Does This Paper Address?
When frontier AI models are given multiple chances to solve a prompt, their performance—measured as the probability of succeeding at least once in $k$ attempts ($\text{pass}@k$)—surges dramatically. While repeated sampling enables models to crack complex math proofs and competitive programming puzzles, it also allows malicious users to jailbreak models via repeated adversarial attempts.
Estimating $\text{pass}@k$ for large $k$ (e.g., $k \gg 10^2$) is prohibitively expensive because standard unbiased estimators require collecting at least $k$ responses per problem across hundreds of evaluation benchmarks. Prior attempts to extrapolate high-$k$ behavior using small sampling budgets rely on log-log linear regression (fitting power laws) or discretized Bayesian distributions. The authors reveal that these approaches suffer from severe statistical weaknesses, including correlated errors, heteroskedasticity, and systematic estimation bias.
Methods
To overcome these pitfalls, the authors propose a two-part approach:
-
Beta-Binomial Distributional Fitting:
Instead of fitting power laws to aggregate, correlated pass-rate curves, the authors model the underlying distribution of problem difficulty. They treat each problem's true success probability as drawn from a continuous Beta prior ($\text{pass}_i@1 \sim \text{Beta}(\alpha, \beta)$). Given $b_i$ trials and $s_i$ successes on problem $i$, the observations follow a binomial distribution, resulting in a conjugate beta-binomial marginal likelihood. The parameters $\alpha$ and $\beta$ are directly fitted via maximum likelihood estimation (MLE), avoiding arbitrary binning or heuristic scale parameters. -
Dynamic Sampling Allocation:
High-$k$ performance is dominated by how a model handles its hardest problems. Rather than allocating samples uniformly across all problems, the authors introduce an adaptive sampling algorithm (Algorithm 1 & 2) that iteratively assigns samples to the hardest candidate tasks (those with the fewest successes so far, breaking ties by fewest total attempts).
Datasets
The authors evaluate their methods on withheld, high-sample evaluation pools (10,000 trials per problem across 100–200 problems each):
- CodeContests: Competitive programming problems evaluated on hidden unit tests.
- MATH: Multi-step competition mathematics problems across algebra, number theory, and combinatorics.
- AdvBench: Adversarial prompt-injection and jailbreaking attacks.
Evaluations span several open and proprietary model families, including Claude 3.5 (Sonnet, Opus), GPT-4o / GPT-4o Mini, Gemini 1.5 (Flash, Pro), Llama 3 (70B, 8B), Gemma (2B, 7B), and the Pythia suite (160M to 12B). Synthetic datasets are also used to validate the behavior of adaptive sampling.
Key Insights and Ideas
- Linear regression violates core statistical assumptions: The authors prove that intermediate empirical pass rates calculated from the same sample pool are deterministically linked (Lemma 1) and violate homoskedasticity (Lemma 2). Consequently, fitting power laws over small budgets often overfits non-asymptotic transient terms.
- Discretization biases the difficulty curve: Previous empirical Bayes techniques grouped problems into log-scale bins to handle problems with zero successes. This disproportionately weights the left tail, yielding severe downward bias. Direct beta-binomial MLE avoids discretization entirely.
- Hard tasks dominate variance: The authors derive the asymptotically optimal frequentist budget allocation (Theorem 1), proving that sample budget allocation $b_i^*$ should scale proportionally to $\sqrt{(\text{pass}_i@1)(1 - \text{pass}_i@1)^{2k-1}}$. Concentrating compute on low-success problems directly minimizes estimator variance.
Key Results
- Superior High-$k$ Extrapolation: When trained on a total budget equivalent to only $\approx 10$ to $100$ samples per problem, the proposed Dynamic + Beta-Binomial estimator accurately tracks true ground-truth $\text{pass}@k$ out to $k = 10,000$.
- Substantial MSE Reductions: Standard log-log linear regressions frequently explode (predicting probabilities $> 1.0$), while discretized Bayesian baselines consistently underestimate capabilities. The proposed approach achieves mean squared errors (MSE) that are frequently over $10\times$ lower than existing baselines across MATH, CodeContests, and AdvBench.
- Efficiency Gains: In synthetic stress tests where a few hard outlier problems exist alongside easy tasks, dynamic sampling converges rapidly to ground truth where uniform sampling plateaus with high variance.
Limitations and Future Work
- Extreme Asymptotics: Frontier deployments serve billions of queries, where regulators and labs may care about $k \ge 10^6$. The benchmark ground-truth sets here are capped at 10,000 samples, limiting empirical evaluation to probabilities above $10^{-4}$.
- Theoretical Bounds for Bayesian Adaptive Sampling: While the authors mathematically prove variance optimality for an asymptotic frequentist estimator, formal variance bounds for their iterative multi-stage Bayesian algorithm remain open for future work.
Summary updated