Statistical Estimation of Adversarial Risk in Large Language Models under Best-of-N Sampling
Abstract
Large Language Models (LLMs) are typically evaluated for safety under single-shot or low-budget adversarial prompting, which underestimates real-world risk. In practice, attackers can exploit large-scale parallel sampling to repeatedly probe a model until a harmful response is produced. While recent work shows that attack success increases with repeated sampling and empirically follows a power law, methods that predict large-scale adversarial risk from small measurement budgets, with the finite-budget accuracy and uncertainty estimates that safety assessment requires, remain limited. We propose a scaling-aware Best-of-N estimation of risk, SABER, for modeling jailbreak vulnerability under Best-of-N sampling. We model sample-level success probabilities using a Beta distribution, characterize the resulting analytic scaling law at finite budgets, and derive reliable estimators that extrapolate large-N attack success rates from small-budget measurements. Using only n=200 samples, our anchored estimator predicts ASR@1000 with a mean absolute error of 1.44, compared to 6.58 for the naive baseline, which is a 78.1% reduction in estimation error. Our results reveal heterogeneous risk scaling profiles and show that models appearing robust under standard evaluation can experience rapid nonlinear risk amplification under parallel adversarial pressure. This work provides a low-cost, scalable methodology for realistic LLM safety assessment. Our code is available at https://github.com/microsoft/SABER.