Skip to content

Statistical estimation of adversarial risk of large language models under Best-of-N samplingStatistical Estimation of Adversarial Risk in Large Language Models under Best-of-N Sampling

arXiv· arXiv:2601.22636· NeurIPS 2026· Mingqian Feng, Xiaodong Liu, Weiwei Yang, Chenliang Xu, Christopher White, Jianfeng Gao·Indexed by this site · 2026-10-12· Originally publishedTools

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

SABER on twelve HarmBench groups with n=100 predicts ASR@1000 with anchored MAE of 1.66 versus baseline 12.04.

Questions
Existing safety evaluations mostly examine jailbreaks under single-attempt or low-budget settings. The authors argue that attackers can sample in parallel many times until a harmful response appears, causing such evaluations to underestimate risk.
Methods
SABER models each query's single-attempt success probability as a Beta, uses n attempts for Beta–Binomial maximum likelihood estimation, then extrapolates ASR@N via a scaling law or anchored on observed ASR@n.
Experiments and results
On the 12 attack–victim–judge combinations in HarmBench, the anchored estimate with n=100 predicts ASR@1000 with MAE 1.66, vs. 12.04 for the baseline. The authors say Augmentation exceeds ADV-LLM on GPT-4.1-mini at N=15.
Limitations and future work
The authors note that the judge is treated as binary, experiments are on HarmBench text tasks, and the remaining error comes more from underestimation. Victim models are Llama-3.1-8B-Instruct and GPT-4.1-mini.
Experimental setupGPT-4.1-mini、Llama-3.1-8B-Instruct · HarmBench · ASR@N、MAE et al.
Evaluated models
GPT-4.1-miniLlama-3.1-8B-Instruct
Benchmarks
HarmBench
Metrics
ASR@NMAE|Δ|ΔErrN_τ
AI summaryThe paper proposes SABER, a statistical method for estimating jailbreak risk of large language models under Best-of-N sampling. It models sample-level success probability with a Beta distribution and derives an analytical scaling law to extrapolate large-scale attack success rates from a small number of samples. Using only n=100 samples, its anchored estimator predicts ASR@1000 with a mean absolute error of 1.66, versus 12.04 for the baseline, reducing error by 86.2%. Results show that risk scaling curves differ across models, and models that appear robust under standard evaluation may exhibit rapid nonlinear risk amplification under parallel adversarial pressure. The authors state they will release code and evaluation scripts after the paper is published.

The paper proposes SABER, a statistical method for estimating jailbreak risk of large language models under Best-of-N sampling. It models sample-level success probability with a Beta distribution and derives an analytical scaling law to extrapolate large-scale attack success rates from a small number of samples. Using only n=100 samples, its anchored estimator predicts ASR@1000 with a mean absolute error of 1.66, versus 12.04 for the baseline, reducing error by 86.2%. Results show that risk scaling curves differ across models, and models that appear robust under standard evaluation may exhibit rapid nonlinear risk amplification under parallel adversarial pressure. The authors state they will release code and evaluation scripts after the paper is published.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Single-attempt or low-budget evaluations underestimate jailbreak risk; SABER extrapolates Best-of-N ASR@N from small budgets.

    Single-attempt or low-budget jailbreak evaluations underestimate adversarial risk under Best-of-N sampling.

    • Scenario: The authors argue that LLMs are deployed in systems where safety failures have societal and operational consequences, but most safety benchmarks only do single-attempt or low-budget queries, assuming attackers cannot repeatedly probe.
    • Shortcoming: The authors state that attackers can send thousands of parallel attempts until a harmful response appears. Hughes et al. (2024) observed that ASR increases with sampling, but there is no statistical framework for extrapolating large-budget ASR when exhaustive evaluation is infeasible.
    • Observation: The authors argue that scaling speed is determined by the distribution of per-query single-attempt success probabilities, which can be represented by the conjugate Beta prior for Bernoulli trials. In Figure 2, attacks with higher ASR@1 do not maintain their lead at larger N.
    • Method: Propose SABER (scaling-aware Best-of-N estimation of risk), which fits this distribution from small budgets and extrapolates ASR@N. The authors plan to release code and evaluation scripts after publication.
    • Threat model:
      • Goal: Make the reviewer judge the victim model's response to a harmful query as a jailbreak, i.e., s=1.
      • Capability: Best-of-N. Can make N parallel attempts; stop after one success or budget exhaustion. The paper states that real attackers can automate large-scale parallel sampling.
      • Knowledge: The paper does not define this estimation problem in terms of white-box or black-box. Experiments use both open-source and closed-source victim models.
      • System and judgment: The victim system is model V, along with attacker A and reviewer J. ASR@N is the expected success rate over K queries with OR aggregation across N attempts. For simplicity, the authors assume each attempt independently draws the entire A–V–J pipeline.
  2. What related research exists?

    The paper mainly compares against Best-of-N jailbreak, empirical scaling fits, and Pass@N-type estimates, and provides a naive baseline on HarmBench.

    The paper has no separate Related Work. Works discussed in the introduction, preliminaries, and experimental setup are as follows.

    Best-of-N and repeated sampling

    • Hughes et al. (2024): Best-of-N Jailbreaking. Under character-level or surface-form perturbations, ASR increases with the number of samples; log(−log(ASR@N)) is approximately linear in log N, with slope varying with (A, V, J) and unknown in advance. The paper notes it mainly shows repeated sampling is effective, without providing a framework for extrapolating to large budgets; its curve fitting is the source of SABER-Fit in this paper.
    • He and Lab (2025): Discusses the non-determinism of LLM reasoning. The authors use this to explain that after fixing an adversarial prompt, sampling victim responses multiple times, or repeatedly sampling the judge, can also lead to jailbreaks, so they write each attempt as an independent draw of the entire pipeline.

    Evaluations and risk benchmarks

    • Mazeika et al. (2024) HarmBench: A standardized automated red-teaming evaluation. This paper uses its query subset, as well as two judges, HarmBench Classifier and LLM Classifier.
    • Akiri et al. (2025): Cited to support that single-shot or low-budget evaluations systematically underestimate true risk. The paper does not elaborate on its methods.

    Success rate estimation

    • Chen et al. (2021): In code generation, uses 1−(1−θ̂)^N to estimate Pass@N, which has the same form as ASR@N; also has a combinatorial estimator requiring n≥N. The authors say the latter is thus not applicable when the target N is much larger than the measurement budget n.

    • Shah et al. (2025): Empirical analysis uses the same form as the naive baseline. Hughes et al. (2024) also estimate ASR@N using an approximation based on first-success trajectories, and the authors say the naive baseline matches it.

    • Sun et al. (2025), Guo et al. (2025): ADV-LLM and Jailbreak-R1. The paper uses them as attackers in experiments without separate criticism.

    • Baseline method: naive estimate in Eq. (15). Uses small-budget θ̂i=ki/n to compute 1−(1−θ̂i)^N, then averages over queries.

    • Benchmark: HarmBench (Mazeika et al., 2024). Standard functional categories, after removing copyright and contextual, 159 items.

    The authors position this paper as: scaling profiles are a necessary part of adversarial risk, and directly evaluating large N is often too expensive; SABER uses Beta mixtures to give an analytic scaling law, predicting ASR@N from small budgets.

  3. How does the paper address this problem?

    SABER uses Beta mixture and Beta–Binomial fitting to extrapolate small-budget observations to large-N ASR.

    SABER treats Best-of-N jailbreaking as Bernoulli trials with success probabilities varying across queries, fits Beta parameters from small budgets, then extrapolates ASR for large N. Figure 1 shows three steps: collection, fitting, prediction.

    Problem setup

    • Given a harmful query q: the attacker samples adversarial prompts, the victim model generates responses, and the reviewer gives s∈{0,1}. The dataset QH has K queries.
    • ASR without a suffix refers to ASR@1. ASR@N is the expectation over queries of the OR-aggregated success across N attempts per query.
    • A single attempt is a Bernoulli with unknown success probability θ. The conjugate prior is θ~Beta(α,β); after observing k successes in n trials, the posterior is still Beta. Integrating over θ gives the Beta–Binomial marginal.

    Scaling law

    • Assumption 3.2: For fixed (A, V, J) and QH, the per-query Sample-ASR θi come from Beta(α,β); given θi, attempts are i.i.d. Bernoulli. The authors state this follows from conjugacy and perform fit checks in Appendix C.2.1.
    • Under this assumption, as N→∞, ASR@N ≃ 1−(Γ(α+β))/(Γ(β))N−α. α controls the rate of scaling with N, and the Gamma ratio is the leading constant. The authors state that the scaling speed is determined by the left tail of the sample-level vulnerability distribution.
    • This formula is asymptotic. The authors cite Spiegel (1999) and state that Stirling-type approximations are fairly accurate for N≥5–10. They state that common pipelines often have α<1, β<2, in which case for N≥20 the error of Eq. (8) is less than about 1%. For small N or larger β, replace N with N+β+(α−1)/2; the authors state that for α<1, β<4, and N≥5, the corrected error is less than about 0.1%. Later large-N derivations mainly use the uncorrected Eq. (8).
    • (α,β) belongs to the chosen QH and specified pipeline, not universal constants. The appendix also gives a spike-and-slab prior for unsolvable queries and formulas for online traffic where the probability of a harmful prompt is ph; the experimental section does not report values for these two extensions.

    Distribution estimation

    • A two-stage approach first computes θ̂i=ki/n, then fits a Beta to {θ̂i}. The authors state that for small n, treating θ̂i as noise-free observations is inaccurate.
    • The main estimator is a one-step Beta–Binomial log-likelihood, using L-BFGS-B or Newton-type constrained optimization to find (α̂, β̂). For uneven budgets, replace n with query-specific ni.
    • The appendix gives the asymptotic covariance of the MLE: Var(α̂) and Var(β̂) decrease as 1/K with K. Figure 3 uses synthetic data with K=159 and true values α=0.4, β=4; the authors state that n=10 is already clearly better than n=5, and the density for n=50 is nearly indistinguishable from n=1000.

    Three ASR@N estimators

    • SABER-Plugin: Plug (α̂, β̂) into the scaling law. Heterogeneous budgets are absorbed into the parameters. For N≤20, a small-N correction can be used.
    • SABER-Anchored: If ASR@n is available, use 1−(1−ASR@n)(n/N)^α̂ to eliminate the β-containing constant and absorb deviations of the true θ distribution from Beta. Under uniform budgets, ASR@n is naturally obtained during data collection; otherwise, ASR@1 can be used. The authors state this variant is best in most cases and is the default for main results.
    • SABER-Fit: Without explicitly estimating (α, β), directly fit the small-budget curve. The authors state this comes from Hughes et al. (2024). For large N and ASR near 1, Theorem 3.3 is equivalent to −log ASR@N≈a N^{−b}, where a and b correspond to the Gamma ratio and α, respectively.
    • The naive baseline uses 1−(1−θ̂i)^N per query, then averages over K queries.
    • Intervals: The appendix approximates the covariance of (α̂, β̂) using the observed information matrix. The anchored estimate is monotonic in α, so the Wald interval endpoints for α can be transformed via Eq. (14). The experiment does not report coverage of this interval.
  4. What experiments did the paper conduct?

    In Table 1, the anchored estimate with n=100 reduces the MAE for ASR@1000 from 12.04 to 1.66.

    Experimental setup

    • Victim models: Llama-3.1-8B-Instruct and GPT-4.1-mini. No additional system prompts, temperature=1; maximum new tokens are 300 and 500, respectively.
    • Attackers: Text-augmentation (letter substitution, case changes, and ASCII perturbations, with word shuffle probability 0.4); ADV-LLM's advllm llama3 (trained on Llama-3-8B-Instruct, generates suffixes; max tokens=90, temperature=0.6, top_p=0.9); Jailbreak-R1 (temperature=1.0).
    • Reviewers: HarmBench Classifier (cais/HarmBench-Llama-2-13b-cls, temperature=0) and LLM Classifier (GPT-4.1-mini, temperature=0). Appendix C.1.4 gives prompt templates.
    • Data and ground truth: From HarmBench's 320 text items, take the standard functional category, excluding copyright and contextual, K=159. Each query is independently sampled 10,000 times as ground truth for N≤1000; small-budget observations are drawn without replacement from these.
    • Baselines and metrics: The naive baseline from Eq. (15). Report ASR@N, absolute error |Δ|, ΔErr, and MAE. Unless otherwise stated, 4.2.1 uses SABER-Anchored. Table 1 shows mean±std over 5 independent runs.
    • Default settings: Main results use uniform budgets, with the same number of attempts n per query.

    Main results

    According to Table 1, n=100, predicting ASR@1000. The prediction column is the mean of 5 runs. The table omits the Instruct suffix; the appendix specifies Llama-3.1-8B-Instruct.

    Swipe horizontally to read the table

    Attacker / Victim model / ReviewerGTBaselineSABER|Δ|SABER
    ADV-LLM / GPT-4.1-mini / HarmBench75.1663.4074.280.88
    ADV-LLM / Llama-3.1-8B / HarmBench100.00100.00100.000.00
    Text Aug. / GPT-4.1-mini / HarmBench92.6277.2389.443.18
    Text Aug. / GPT-4.1-mini / LLM88.5967.0482.546.05
    Text Aug. / Llama-3.1-8B / LLM87.9965.4188.880.89
    Jailbreak-R1 / Llama-3.1-8B / LLM92.7173.3390.612.10
    12-group MAENot reported12.041.66Not reported
    • The last row shows a relative error reduction of 86.2%, consistent with the abstract. The introduction also states MAE of 1.25 and error reduction of 89.6% for n=100, which differs from Table 1; here Table 1 is authoritative.
    • The authors state that the gap is larger when ASR@1000 is high but not saturated. In the table, the row with the largest |Δ|SABER is Text Augmentation, GPT-4.1-mini, LLM Classifier, and the estimate is below the true value. Overestimation occurs in the Text Augmentation, Llama-3.1-8B, LLM Classifier row. The omitted rows have |Δ|SABER of 2.14, 0.50, 1.15, 0.50, 2.29, corresponding to ADV-LLM/GPT/LLM, ADV-LLM/Llama/LLM, Text Aug./Llama/HarmBench, Jailbreak-R1/GPT/LLM, and Jailbreak-R1/Llama/HarmBench, respectively.
    • The authors state that in Figure 4, the anchored estimate's MAE is consistently 4–6 times lower than the baseline. In Figure 2, for GPT-4.1-mini, HarmBench, and HarmBench Classifier, Augmentation's ASR@1 is lower than ADV-LLM's, but surpasses it at N=15; the paper does not give endpoint values for the curves in that figure.

    Budget scales and variants

    • What was measured: Figure 4 varies measurement budget n and target N, and compares the three SABER variants.
    • Results: For fixed N=1000, as n goes from 50 to 200, baseline MAE goes from 14.1 to 5.5, and anchored estimate from 2.3 to 1.3. For fixed n=100, as N goes from 500 to 1000, baseline goes from 7.8 to 9.4, and anchored estimate is 1.7 and 1.8.
    • Authors' interpretation: Increasing n reduces error for both methods; extrapolating to larger N is harder; relative gains are larger for smaller n and larger N. The authors state that Anchored outperforms Plugin and Fit in the setting of Figure 4(c).

    Small N and corrections

    • What was measured: Table 2 uses very small n to predict N=20 and N=50, for two triples that show early saturation.
    • Results: For Jailbreak-R1, GPT-4.1-mini, HarmBench Classifier, n=10 predicting ASR@50, SABER's |Δ| is 0.25 versus baseline 22.73; the authors state the baseline is about 90 times larger. For the same triple, |Δ|SABER for ASR@20 is 0.65. For ADV-LLM, Llama-3.1-8B-Instruct, LLM Classifier, N=50, n=10, SABER gives 98.23, above the true value of 96.4.
    • Correction: In Figure 5, the small-N correction further reduces average MAE across all triples: 0.6% for n=10, N=20, and 0.1% for n=20, N=50. The authors state that as n and N increase, the incremental benefit of the correction diminishes.

    Uneven budgets and visible data

    • Uneven budgets: ni drawn uniformly from 1 to 2n. Figure 6(a) for n=100, N=1000: uniform gives baseline 9.4 and anchored 1.8; uneven gives baseline 12.2 and anchored 1.9. The authors state that unevenness increases MAE.
    • Variant switching: In Figure 6(b), for n=50, N=200, Plugin's MAE is 0.8 lower than Anchored; for large N it is 0.2 higher, corresponding to n=100, N=1000 in the figure. Table 3 uses Plugin with victim model GPT-4.1-mini, n=50, N=200: under HarmBench Classifier, ΔErr is 9.59, 15.04, 7.32; under LLM Classifier, 8.87, 14.12, 12.64. The authors state the error is at least 7.32% lower.
    • Subsampling: The authors state that as K goes from 159 to 80, MAE goes from 1.7 to 2.1, and at K=40 it is 2.9. Figure 6(c) shows SABER MAE of 2.9, 2.2, 1.8 (for K=40, 80, 159) and baseline of 10.0, 9.4, 9.4, which do not exactly match the text numbers.

    Other ablations and analyses

    • Table 4: τ=95%, n=200, three groups predict N95% of 465.9 (true 484), 381.5 (320), 196.9 (223).
    • Table 5: 9 of 12 groups pass at α=0.05 (75.0%). Failures are ADV-LLM/Llama/LLM Classifier (Fisher p=0.007) and Jailbreak-R1/Llama/HarmBench (p<0.001); Marginal is Text Aug./GPT/LLM (Fisher p=0.032). The authors state that the failing groups still have competitive MAE, pointing to Table 1.
    • The authors state that passing groups have α̂ from 0.15 to 1.44. Table 5 shows β̂ from 0.44 to 16.16; Text-augmentation and Jailbreak-R1 have β̂ greater than 2, exceeding the common region β<2 mentioned in the text.
    • Appendix Figure 10: synthetic data with total budget nK=10000 and true values (0.4, 4), the standard deviation of α̂ is smallest around n=10, and β̂ around n=5. The authors state that for total budget around 8000, n=10 (hence K about 800) gives the best MAE among tested allocations; when K is limited to 159, the remaining budget should be used for larger n.
    • Appendix Figures 7–9: The authors state that standard deviation decreases with K as the reciprocal of K; for large n, increasing n further reduces variance more slowly than increasing K. For small K, closed-form variance differs from Monte Carlo, and the authors state that asymptotic normality is no longer accurate.
    • Table 6's total budget column does not align with n×K; this table's per-cell MAE is not cited here.
  5. What are some points that can be further explored?

    The authors note binary review, task scope, and underestimation bias, and plan to extend to non-binary and more tasks.

    Limitations and future directions noted by the authors

    • Binary review: The analysis collapses s into {0,1}. The authors state that real reviews may return scores or multi-class severity, and propose using a categorical likelihood with a Dirichlet prior (Section D).
    • Task scope: The empirical evaluation focuses on a single text jailbreak benchmark, HarmBench. The authors state that the selected attackers cover three paradigms but are not necessarily state-of-the-art (Section D).
    • Model scope: The authors state that due to budget, the most expensive frontier safety-aligned models were not evaluated, citing GPT-5.2 as an example (Section D).
    • Future evaluation: The authors plan to test SABER on multimodal jailbreaks, larger datasets (e.g., AdvBench), and a broader range of attackers and victim models (Section D).
    • Systematic bias: The authors state that residual error comes more from underestimating ASR@N than overestimating it; future work could investigate the source and apply corrections that remain extrapolative in nature (Section D).

    Experimental coverage

    • Victim models are Llama-3.1-8B-Instruct and GPT-4.1-mini; attackers are Text-augmentation, advllm llama3, and Jailbreak-R1; reviewers are HarmBench Classifier and an LLM Classifier implemented with GPT-4.1-mini (Section 4.1, Appendix C.1).
    • The evaluation set is the standard functional category of HarmBench, excluding copyright and contextual, leaving 159 items. Each item is sampled 10,000 times as ground truth for N≤1000, and predictions are the mean of 5 runs (Section 4.1, Appendix C.1.5).
    • The main table uses uniform n=100 predictions of ASR@1000. Also reported are small-budget predictions for N=20 and 50, uneven budgets with ni drawn uniformly from 1 to 2n, subsamples with K=40, 80, 159, and required budget for τ=95%, n=200 (Section 4.2, Tables 2–4, Figure 6).
    • For 12 (A, V, J) triples, posterior predictive checks under the Beta assumption and chi-square tests were performed (Table 5). The appendix uses synthetic Beta–Binomial data to examine variance and budget allocation, with example ground truth α=0.4, β=4.
    • The paper provides confidence interval procedures for anchored and Plugin estimates (Section 3.4), but does not report coverage of these intervals in the jailbreak experiments. Formulas for unsolvable samples and online benign prompts are in Appendix B.1.2–B.1.3; the experimental section does not report corresponding values.
  6. Summarize the main content of the paper

    SABER fits the success probability distribution with a small budget and extrapolates Best-of-N risk; Table 1's MAE is 1.66 vs. 12.04.

    SABER predicts LLM jailbreak risk under Best-of-N sampling from small-budget measurements.

    • Problem: Single-attempt or low-budget ASR corresponds to attackers with very few attempts. The authors argue that when parallel repeated probing is possible, risk scales with budget, and ASR@1 rankings need not hold for all N.
    • Method: Model each harmful query's single-attempt success probability as Beta(α,β), and estimate parameters via Beta–Binomial maximum likelihood from n attempts. For large N, the failure probability decays roughly as N^{−α}. The main estimator anchors on observed ASR@n and relies only on α̂ for extrapolation, avoiding β̂.
    • Main results: On HarmBench's 159 queries, 3 attackers, 2 victim models, 2 reviewers, totaling 12 groups. For n=100 predicting ASR@1000, Table 1 shows anchored MAE of 1.66 versus naive baseline of 12.04, a relative error reduction of 86.2%. The 1.25 and 89.6% in the introduction are inconsistent with this table.
    • Other numbers: The largest |Δ|SABER in the table is 6.05, occurring for Text-augmentation, GPT-4.1-mini, LLM Classifier, and is below the true value. For Jailbreak-R1 on GPT-4.1-mini, HarmBench Classifier, n=10 predicting ASR@50, the absolute error is 0.25 versus baseline 22.73. Of the 12 groups, 9 pass the Beta fit test at α=0.05.
    • Authors' conclusion: Models that appear robust under single-attempt evaluation can still exhibit rapid, nonlinear risk amplification under parallel adversarial pressure; attack rankings depend on sampling budget. The authors argue that jailbreak risk measurement should go beyond ASR@1, and plan to release code and evaluation scripts after publication.

Related papers

Show 3 more papers
Read originalNeurIPS 2026