arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.22636cs.AI
收藏

在最佳-N采样下对大语言模型中的对抗风险进行统计估计

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

University of Rochester(罗切斯特大学);Microsoft Research(微软研究院)

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

AI总结:

本研究提出SABER方法,通过Beta分布建模样本成功概率,利用解析缩放定律预测大规模对抗风险,显著降低估计误差。

摘要:

大型语言模型(LLMs)通常在单次或低成本对抗提示下评估安全性,这低估了现实中的风险。在实践中,攻击者可以利用大规模并行采样反复探测模型,直到产生有害响应。尽管最近的研究表明攻击成功率随着重复采样而增加,但系统性地预测大规模对抗风险的方法仍然有限。我们提出了一个具有缩放意识的最佳-N风险估计方法SABER,用于在最佳-N采样下建模逃逸漏洞。我们使用Beta分布(伯努利分布的共轭先验)建模样本级成功概率,并推导出一个解析的缩放定律,使从低成本测量中可靠地外推大N攻击成功率成为可能。仅使用n=100个样本,我们的锚定估计器预测ASR@1000的均方误差为1.66,与基线方法的12.04相比,误差减少了86.2%。我们的结果揭示了异质风险缩放特征,并表明在标准评估中表现稳健的模型在并行对抗压力下可能经历快速非线性风险放大。本工作提供了一种低成本、可扩展的方法用于现实中的LLM安全性评估。我们将在发表后发布我们的代码和评估脚本供未来研究使用。

英文摘要:

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, principled methods for predicting large-scale adversarial risk 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, the conjugate prior of the Bernoulli distribution, and derive an analytic scaling law that enables reliable extrapolation of large-N attack success rates from small-budget measurements. Using only n=100 samples, our anchored estimator predicts ASR@1000 with a mean absolute error of 1.66, compared to 12.04 for the baseline, which is an 86.2% 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. We will release our code and evaluation scripts upon publication to future research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑