arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.02159cs.LGcs.AIcs.CLcs.CR
收藏

窄领域中的越狱防御:现有方法的局限性与一种新的对话记录分类器方法

Jailbreak Defense in a Narrow Domain: Limitations of Existing Methods and a New Transcript-Classifier Approach

MIT(麻省理工学院);Speechmatics(斯皮奇matics公司);MATS(MATS机构);Stanford University(斯坦福大学);Constellation(康斯特莱申公司);University of Oxford(牛津大学);Anthropic(Anthropic公司)

Tony T. Wang, John Hughes, Henry Sleight, Rylan Schaeffer, Rajashree Agrawal, Fazl Barez, Mrinank Sharma, Jesse Mu, Nir Shavit, Ethan Perez

AI总结:

本文以防 LLM 协助制造炸弹为窄领域案例,评估安全训练、对抗训练和输入/输出分类器等越狱防御,提出表现更优但仍非完全可靠的对话记录分类器方法。

摘要:

保护大型语言模型免受越狱攻击,使其永远不参与一组广义定义的禁止行为,是一个尚未解决的问题。本文研究了当我们仅想禁止一组狭义定义的行为时,越狱防御所面临的困难。作为案例研究,我们聚焦于防止 LLM 帮助用户制造炸弹。我们发现,安全训练、对抗训练以及输入/输出分类器等流行防御方法都无法完全解决这一问题。为寻求更好的解决方案,我们开发了一种对话记录分类器防御,其表现优于我们测试的基线防御。然而,我们的分类器防御在某些情况下仍然会失效,这凸显了即使在窄领域中,越狱防御也具有相当大的难度。

英文摘要:

Defending large language models against jailbreaks so that they never engage in a broadly-defined set of forbidden behaviors is an open problem. In this paper, we investigate the difficulty of jailbreak-defense when we only want to forbid a narrowly-defined set of behaviors. As a case study, we focus on preventing an LLM from helping a user make a bomb. We find that popular defenses such as safety training, adversarial training, and input/output classifiers are unable to fully solve this problem. In pursuit of a better solution, we develop a transcript-classifier defense which outperforms the baseline defenses we test. However, our classifier defense still fails in some circumstances, which highlights the difficulty of jailbreak-defense even in a narrow domain.

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

↑