arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00580cs.CRcs.AIcs.CLcs.CY
收藏

防御暗黑提示:通过提示评估缓解 Best-of-N 越狱攻击

Defense Against the Dark Prompts: Mitigating Best-of-N Jailbreaking with Prompt Evaluation

Aligned AI(对齐人工智能公司);University College London (UCL)(伦敦大学学院);Oxford University(牛津大学)

Stuart Armstrong, Matija Franklin, Connor Stevens, Rebecca Gorman

AI总结:

本文提出 DATDP 方法,通过反复调用评估 LLM 检测提示中的危险行为和越狱尝试,成功阻断 Best-of-N 越狱攻击,且小模型同样有效,可低成本提升生成式 AI 安全性。

摘要:

近期研究表明,利用随机增强(如大小写、标点等)反复使用的 Best-of-N(BoN)越狱攻击对所有主流大语言模型(LLMs)均有效。我们发现,BoN 论文中 100% 的成功越狱(置信区间 [99.65%, 100.00%])以及我们复现实验中 99.8% 的成功越狱(置信区间 [99.28%, 99.98%])均被我们的 Defense Against The Dark Prompts(DATDP)方法所阻断。DATDP 算法通过反复利用一个评估 LLM 来评估提示是否具有危险或操纵性行为——与其他一些方法不同,DATDP 还明确检测越狱尝试——直到生成一个稳健的安全评级。即使使用较小的 LLM 来驱动评估,这一成功仍然持续(Claude 和 LLaMa-3-8B-instruct 被证明能力几乎相当)。这些结果表明,尽管语言模型对输入中看似无害的变化很敏感,但它们似乎也能够成功评估这些输入的危险性。因此,DATDP 的各种版本可以低成本地添加到生成式 AI 系统中,从而立即显著提升安全性。

英文摘要:

Recent work showed Best-of-N (BoN) jailbreaking using repeated use of random augmentations (such as capitalization, punctuation, etc) is effective against all major large language models (LLMs). We have found that $100\%$ of the BoN paper's successful jailbreaks (confidence interval $[99.65\%, 100.00\%]$) and $99.8\%$ of successful jailbreaks in our replication (confidence interval $[99.28\%, 99.98\%]$) were blocked with our Defense Against The Dark Prompts (DATDP) method. The DATDP algorithm works by repeatedly utilizing an evaluation LLM to evaluate a prompt for dangerous or manipulative behaviors--unlike some other approaches, DATDP also explicitly looks for jailbreaking attempts--until a robust safety rating is generated. This success persisted even when utilizing smaller LLMs to power the evaluation (Claude and LLaMa-3-8B-instruct proved almost equally capable). These results show that, though language models are sensitive to seemingly innocuous changes to inputs, they seem also capable of successfully evaluating the dangers of these inputs. Versions of DATDP can therefore be added cheaply to generative AI systems to produce an immediate significant increase in safety.

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

↑