arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.13334cs.CLcs.AIcs.LG
收藏

BiasJailbreak: 分析大型语言模型中的伦理偏见和 jailbreak 漏洞

BiasJailbreak:Analyzing Ethical Biases and Jailbreak Vulnerabilities in Large Language Models

Theori Inc.(Theori公司)

Isack Lee, Haebin Seong

AI总结:

研究分析了大型语言模型中的伦理偏见和 jailbreak 漏洞,提出 BiasJailbreak 和 BiasDefense 方法以提高模型安全性。

摘要:

尽管大型语言模型(LLMs)在各种任务中展现出令人印象深刻的 proficiency,但它们存在潜在的安全风险,例如 'jailbreak',即恶意输入可以迫使 LLMs 生成有害内容,绕过安全对齐。在本文中,我们深入探讨了 LLMs 中的伦理偏见,并检查这些偏见如何被用于 jailbreak。值得注意的是,这些偏见导致 GPT-4o 模型在非二元和跨性别关键词之间的 jailbreaking 成功率差异达 20%,在白人和黑人关键词之间差异达 16%,即使提示的其他部分相同。我们引入了 BiasJailbreak 的概念,突显这些安全诱导偏见带来的固有风险。BiasJailbreak 通过让目标 LLM 自己生成偏见关键词来自动创建偏见关键词,并利用这些关键词生成有害输出。此外,我们提出了一种高效的防御方法 BiasDefense,通过在生成前注入防御提示来防止 jailbreak 尝试。BiasDefense 成为 Guard Models(如 Llama-Guard)的有吸引力替代品,后者需要在文本生成后增加额外的推理成本。我们的发现强调,LLMs 中的伦理偏见实际上可能导致生成不安全的输出,并提出了一种使 LLMs 更加安全和无偏见的方法。为了进一步研究和改进,我们开源了 BiasJailbreak 的代码和 artifacts,为社区提供工具,以更好地理解和缓解 LLMs 中的安全诱导偏见。

英文摘要:

Although large language models (LLMs) demonstrate impressive proficiency in various tasks, they present potential safety risks, such as `jailbreaks', where malicious inputs can coerce LLMs into generating harmful content bypassing safety alignments. In this paper, we delve into the ethical biases in LLMs and examine how those biases could be exploited for jailbreaks. Notably, these biases result in a jailbreaking success rate in GPT-4o models that differs by 20\% between non-binary and cisgender keywords and by 16\% between white and black keywords, even when the other parts of the prompts are identical. We introduce the concept of BiasJailbreak, highlighting the inherent risks posed by these safety-induced biases. BiasJailbreak generates biased keywords automatically by asking the target LLM itself, and utilizes the keywords to generate harmful output. Additionally, we propose an efficient defense method BiasDefense, which prevents jailbreak attempts by injecting defense prompts prior to generation. BiasDefense stands as an appealing alternative to Guard Models, such as Llama-Guard, that require additional inference cost after text generation. Our findings emphasize that ethical biases in LLMs can actually lead to generating unsafe output, and suggest a method to make the LLMs more secure and unbiased. To enable further research and improvements, we open-source our code and artifacts of BiasJailbreak, providing the community with tools to better understand and mitigate safety-induced biases in LLMs.

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

↑