arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22167cs.LGcs.AI
收藏

语言模型输出分布中的尾部风险估计

Estimating Tail Risks in Language Model Output Distributions

Columbia University(哥伦比亚大学);Department of Computer Science, New York University(纽约大学计算机科学系);Center for Data Science, New York University(纽约大学数据科学中心)

Rico Angell, Raghav Singhal, Zachary Horvitz, Zhou Yu, Rajesh Ranganath, Kathleen McKeown, He He

AI总结:

提出一种基于重要性采样的方法,通过创建不安全版本来高效估计语言模型产生有害输出的尾部概率,在10-20倍更少样本下匹配蒙特卡洛估计,并揭示模型对输入的敏感性。

摘要:

语言模型能力日益增强,并正在人口层面快速部署。因此,这些模型的安全性变得越来越重要。幸运的是,对齐方面的进展显著降低了模型产生有害输出的可能性。然而,当模型每天被查询数十亿次时,即使是罕见的 worst-case 行为也会发生。当前的安全评估侧重于捕获产生有害输出的输入分布。这些评估忽略了模型的概率性质及其尾部输出行为。为了衡量这种尾部风险,我们提出了一种方法,可以高效估计任何输入查询产生有害输出的概率。我们不是从目标模型进行简单的暴力采样(其中有害输出可能很罕见),而是通过创建目标模型的不安全版本来实现重要性采样。这些不安全版本通过使有害输出更可能发生,实现了样本高效的估计。在衡量误用和未对齐的基准测试中,这些估计与使用10-20倍更少样本的暴力蒙特卡洛估计相匹配。例如,我们仅用500个样本就可以估计数量级为10^-4的有害输出概率。此外,我们发现这些有害性估计可以揭示模型对输入扰动的敏感性,并预测部署风险。我们的工作表明,准确的小概率事件估计对于安全评估既关键又可行。代码可在以下网址获取:此 https URL

英文摘要:

Language models are increasingly capable and are being rapidly deployed on a population-level scale. As a result, the safety of these models is increasingly high-stakes. Fortunately, advances in alignment have significantly reduced the likelihood of harmful model outputs. However, when models are queried billions of times in a day, even rare worst-case behaviors will occur. Current safety evaluations focus on capturing the distribution of inputs that yield harmful outputs. These evaluations disregard the probabilistic nature of models and their tail output behavior. To measure this tail risk, we propose a method to efficiently estimate the probability of harmful outputs for any input query. Instead of naive brute-force sampling from the target model, where harmful outputs could be rare, we operationalize importance sampling by creating unsafe versions of the target model. These unsafe versions enable sample-efficient estimation by making harmful outputs more probable. On benchmarks measuring misuse and misalignment, these estimates match brute-force Monte Carlo estimates using 10-20x fewer samples. For example, we can estimate probability of harmful outputs on the order of 10^-4 with just 500 samples. Additionally, we find that these harmfulness estimates can reveal the sensitivity of models to perturbations in model input and predict deployment risks. Our work demonstrates that accurate rare-event estimation is both critical and feasible for safety evaluations. Code is available at https://github.com/rangell/LMTailRisk

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

↑