arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.18775cs.CLcs.LG
收藏

多代采样在大型语言模型 jailbreak 检测中的实证研究

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

University of Nottingham(诺丁汉大学)

Hanrui Luo, Shreyank N Gowda

AI总结:

本研究通过JailbreakBench数据集和多种生成模型,评估了基于输出的jailbreak检测方法,发现单输出评估低估了模型漏洞,多代采样能更准确检测有害行为。

摘要:

检测大型语言模型中的jailbreak行为仍然具有挑战性,尤其是在强对齐模型产生有害输出时较为罕见。本文通过JailbreakBench Behaviors数据集和多个对齐强度不同的生成模型,进行实证研究。评估了基于词频的TF-IDF检测器和基于生成不一致性的检测器在不同采样预算下的表现。结果表明,单输出评估系统性地低估了jailbreak的脆弱性,增加采样生成数量可揭示更多有害行为。最大改进出现在从单生成到中等采样,而更大采样预算带来边际收益递减。跨生成器实验显示,检测信号在不同模型间部分泛化,相关模型家族内转移更明显。类别层面分析表明,词频检测器捕捉了行为信号和主题特定线索的混合,而非纯粹有害行为。总体而言,我们的发现表明,适度的多样本审计能更可靠地估计模型脆弱性并改进大型语言模型的jailbreak检测。代码将被释放。

英文摘要:

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.

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

↑