# Statistical Estimation of Adversarial Risk in Large Language Models under Best-of-N Sampling

*Mingqian Feng, Xiaodong Liu, Weiwei Yang, Chenliang Xu, Christopher White, Jianfeng Gao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148477) · [Open on the map](../papers.html#p148477)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Jailbreak Defense and Analysis](../pgroup/130.md) · Type: new method · Keywords: adversarial risk estimation, LLM safety, risk scaling, Beta distribution, SABER

Areas: [Safety & Security](../areas/safety.md) › Language Model Security › Jailbreak Defense

## Summary
SABER provides a scaling-aware Best-of-N estimator that predicts LLM jailbreak risk from small-budget measurements using a Beta-modeled success probability and an analytic scaling law.

## Explained to a 5-year-old
We want to know how often a chatbot might say something bad when someone tries many times. The researchers created a new way to guess that risk using simple math. They use a special formula that looks at a few tries and predicts what would happen with many tries. This helps keep people safe online.

## Explained to a 5-year-old, longer
Imagine a chatbot that answers questions, but someone might try to trick it many times. We want to know how likely it is to give a bad answer if we let the trickster try a lot. The researchers built a method that looks at a small number of tries and uses a special math model to guess the risk for many tries. They assume each try has a certain chance of being bad, and they use a smooth curve to predict the overall risk. This way, we can test safety without actually letting attackers run huge numbers of attempts. The method also shows that some chatbots that seem safe can become risky when many tries are allowed. It helps developers improve safety before real attacks happen.

## For a technical reader
SABER is a new technique that predicts how often a language model will give a harmful answer when many tries are allowed. It models each try’s success probability with a Beta distribution and derives a scaling law to extrapolate from a few measurements to large-N attacks. By anchoring on small-budget data, SABER reduces prediction error dramatically compared to naive baselines. The approach reveals that risk can grow non-linearly with sampling, exposing hidden vulnerabilities. It provides a low-cost, scalable way to evaluate LLM safety in realistic adversarial scenarios.

## Problem
Estimating how often large language models produce harmful responses when attackers can repeatedly sample many outputs is difficult, as current evaluations only test a few prompts and thus underestimate true risk.

## Method
The approach models the probability of a harmful response for each sample with a Beta distribution, derives an analytic scaling law linking small-sample observations to large-N attack success, and uses this law to extrapolate risk from limited measurements.

## Results
Using only 200 samples, the estimator achieves a mean absolute error of 1.44 on predicting ASR@1000, a 78.1% reduction compared to the baseline error of 6.58, and reveals heterogeneous risk scaling where seemingly robust models can become highly vulnerable under parallel attacks.

## Contributions
It introduces a principled scaling-aware estimation framework that leverages a Beta prior to extrapolate large-scale adversarial risk from small budgets and provides analytic insight into heterogeneous risk scaling of LLMs.

## Practical relevance
It enables low-cost, scalable safety evaluation of LLMs under realistic large-scale adversarial pressure, helping developers assess risk without extensive attacks.

## Research questions this paper is counted under

- [How can we obtain accurate safety assessments of LLMs when evaluation conditions influence model behavior?](../q/187.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148477)
