arXiv:2604.18775cs.CLcs.LG2026-04被引 2

多轮采样能更准确发现大模型的越狱漏洞。

An Empirical Study of Multi-Generation Sampling for Jailbreak Detection in Large Language Models

论文配图:An Empirical Study of Multi-Generation Sampling for Jailbreak Detection in Large Language Models
图 1 · 摘自论文原文
  • 通过多次生成检测,比单次输出更能暴露越狱行为
  • 从单次到中等采样量,检测效果提升最显著
  • 适合关注模型安全评估的研究者和开发者

检测大语言模型中的越狱行为仍具挑战性,尤其在强对齐模型中,有害输出仅偶尔出现。本文基于JailbreakBench Behaviors数据集,使用不同对齐强度的生成模型,在真实条件下实证研究了基于输出的越狱检测方法。评估了词频-TF-IDF检测器与生成不一致检测器在不同采样预算下的表现。结果表明,单次输出评估会系统性低估越狱风险;增加生成次数可揭示更多有害行为。从单次生成到中等采样量,改进最为显著,而更大采样预算则收益递减。跨模型实验显示,检测信号在同类模型间部分可迁移,且同家族模型间迁移更强。类别级分析表明,词法检测器捕捉的是行为信号与主题特异性线索的混合,而非纯粹有害行为。总体而言,中等多样本审计能更可靠地估计模型脆弱性,提升越狱检测效果。代码将开源。

原文摘要 · Abstract (English)

Detecting jailbreak behaviour in large language models remains challenging, particularly when strongly aligned models produce harmful outputs only rarely. In this work, we present an empirical study of output based jailbreak detection under realistic conditions using the JailbreakBench Behaviors dataset and multiple generator models with varying alignment strengths. We evaluate both a lexical TF-IDF detector and a generation inconsistency based detector across different sampling budgets. Our results show that single output evaluation systematically underestimates jailbreak vulnerability, as increasing the number of sampled generations reveals additional harmful behaviour. The most significant improvements occur when moving from a single generation to moderate sampling, while larger sampling budgets yield diminishing returns. Cross generator experiments demonstrate that detection signals partially generalise across models, with stronger transfer observed within related model families. A category level analysis further reveals that lexical detectors capture a mixture of behavioural signals and topic specific cues, rather than purely harmful behaviour. Overall, our findings suggest that moderate multi sample auditing provides a more reliable and practical approach for estimating model vulnerability and improving jailbreak detection in large language models. Code will be released.

模型安全越狱检测多轮采样

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。