arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.13593cs.LGstat.APstat.ML
收藏

校准的预测下界:在大语言模型中时间到不安全采样的预测下界

Calibrated Predictive Lower Bounds on Time-to-Unsafe-Sampling in LLMs

Department of Computer Science, Technion IIT(计算机科学系);Department of Statistics, University of Oxford(统计系);Department of Electrical and Computer Engineering, Technion IIT(电气与计算机工程系)

Hen Davidov, Shai Feldman, Gilad Freidkin, Yaniv Romano

AI总结:

本文提出了一种基于生存分析的校准技术,用于构建大语言模型中时间到不安全采样的预测下界,以提高安全风险评估的可靠性。

摘要:

我们引入了时间到不安全采样,这是一种新的安全度量标准,定义为大型语言模型(LLM)生成不安全(例如,有毒)响应所需生成的次数。尽管为提示自适应安全评估提供了新的维度,量化时间到不安全采样是具有挑战性的:在对齐良好的模型中,不安全输出往往很少,因此可能在任何可行的采样预算下都不会被观察到。为了解决这一挑战,我们将这一估计问题框架定为生存分析。我们借鉴了最近在符合预测中的发展,并提出了一种新的校准技术,以构建一个给定提示的时间到不安全采样的预测下界(LPB),并具有严格的覆盖保证。我们的关键技术创新是一种优化的采样预算分配方案,它在保持分布无关保证的同时提高了样本效率。在合成和真实数据上的实验支持了我们的理论结果,并展示了我们方法在生成AI模型安全风险评估中的实际效用。

英文摘要:

We introduce time-to-unsafe-sampling, a novel safety measure for generative models, defined as the number of generations required by a large language model (LLM) to trigger an unsafe (e.g., toxic) response. While providing a new dimension for prompt-adaptive safety evaluation, quantifying time-to-unsafe-sampling is challenging: unsafe outputs are often rare in well-aligned models and thus may not be observed under any feasible sampling budget. To address this challenge, we frame this estimation problem as one of survival analysis. We build on recent developments in conformal prediction and propose a novel calibration technique to construct a lower predictive bound (LPB) on the time-to-unsafe-sampling of a given prompt with rigorous coverage guarantees. Our key technical innovation is an optimized sampling-budget allocation scheme that improves sample efficiency while maintaining distribution-free guarantees. Experiments on both synthetic and real data support our theoretical results and demonstrate the practical utility of our method for safety risk assessment in generative AI models.

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

↑