通过加速提示压力测试评估LLM在重复推理下的安全性
Evaluating LLM Safety Under Repeated Inference via Accelerated Prompt Stress Testing
AI总结:
本文提出APST框架,通过重复推理测试揭示模型在持续使用下的失败模式,展示单次评估无法反映实际可靠性差异。
摘要:
传统LLM安全评估基准如HELM和AIR-BENCH主要通过跨多样任务和风险类别的广度评估来评估安全性。然而,现实部署中暴露的另一种风险是重复推理在相同或近似提示下的操作失败。在高风险场景中,响应一致性和持续使用下的安全性至关重要。我们引入加速提示压力测试(APST),一种受可靠性工程中高加速压力测试启发的深度评估框架。APST在受控操作条件下重复采样相同提示,以揭示隐含的失败模式,包括幻觉、拒绝不一致性和不安全完成。APST将失败视为重复推理的随机结果,并使用伯努利和二项式公式估算每次推理的失败概率。将APST应用于多个在AIR-BENCH 2024衍生的安全性和安全提示上评估的指令微调LLM,发现具有相似浅层评估分数的模型在重复采样下表现出显著不同的实际失败率。这些结果表明,单样本或低深度评估可能掩盖部署相关可靠性的重要差异。APST通过提供一个实用框架来估计持续使用下的失败频率,并比较模型和解码配置之间的安全性可靠性,补充了现有基准方法。
英文摘要:
Traditional benchmarks for large language models (LLMs), such as HELM and AIR-BENCH, primarily assess safety through breadth-oriented evaluation across diverse tasks and risk categories. However, real-world deployment often exposes a different class of risk: operational failures that arise under repeated inference on identical or near-identical prompts rather than from broad task-level underperformance. In high-stakes settings, response consistency and safety under sustained use are therefore critical. We introduce Accelerated Prompt Stress Testing (APST), a depth-oriented evaluation framework inspired by highly accelerated stress testing in reliability engineering. APST repeatedly samples identical prompts under controlled operational conditions (such as decoding temperature) to surface latent failure modes including hallucinations, refusal inconsistency, and unsafe completions. Rather than treating failures as isolated events, APST models them as stochastic outcomes of repeated inference and uses Bernoulli and binomial formulations to estimate per-inference failure probabilities. Applying APST to multiple instruction-tuned LLMs evaluated on AIR-BENCH 2024--derived safety and security prompts, we find that models with comparable shallow-evaluation scores can exhibit substantially different empirical failure rates under repeated sampling. These results show that single-sample or low-depth evaluation can obscure meaningful differences in deployment-relevant reliability. APST complements existing benchmark methodologies by providing a practical framework for estimating failure frequency under sustained use and comparing safety reliability across models and decoding configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。