RigorLLM:抵御不良内容的大型语言模型弹性护栏
RigorLLM: Resilient Guardrails for Large Language Models against Undesired Content
AI总结:
本文提出RigorLLM框架,通过基于能量的数据增强、极小极大优化安全后缀及融合KNN与LLM的模型,高效审核有害内容,在检测效果与抗越狱攻击弹性上均超越现有基线。
摘要:
大型语言模型(LLMs)的最新进展展示了其在不同领域各种任务上的卓越能力。然而,LLMs中偏见的出现以及生成有害内容的潜在可能,特别是在恶意输入下,构成了重大挑战。当前的缓解策略虽然有效,但在对抗攻击下缺乏弹性。本文介绍了大型语言模型弹性护栏(RigorLLM),这是一个新颖的框架,旨在高效且有效地审核LLMs的有害和不安全输入与输出。通过采用多方面的方法,包括通过Langevin动力学进行基于能量的训练数据增强、通过极小极大优化为输入优化安全后缀,以及整合结合了鲁棒KNN与基于我们数据增强的LLMs的基于融合的模型,RigorLLM为有害内容审核提供了稳健的解决方案。我们的实验评估表明,RigorLLM不仅在检测有害内容方面优于OpenAI API和Perspective API等现有基线,而且对越狱攻击展现出无与伦比的弹性。约束优化和基于融合的护栏方法的创新使用代表了在开发更安全可靠的LLMs方面迈出的重要一步,为面对不断演变的数字威胁的内容审核框架设定了新标准。
英文摘要:
Recent advancements in Large Language Models (LLMs) have showcased remarkable capabilities across various tasks in different domains. However, the emergence of biases and the potential for generating harmful content in LLMs, particularly under malicious inputs, pose significant challenges. Current mitigation strategies, while effective, are not resilient under adversarial attacks. This paper introduces Resilient Guardrails for Large Language Models (RigorLLM), a novel framework designed to efficiently and effectively moderate harmful and unsafe inputs and outputs for LLMs. By employing a multi-faceted approach that includes energy-based training data augmentation through Langevin dynamics, optimizing a safe suffix for inputs via minimax optimization, and integrating a fusion-based model combining robust KNN with LLMs based on our data augmentation, RigorLLM offers a robust solution to harmful content moderation. Our experimental evaluations demonstrate that RigorLLM not only outperforms existing baselines like OpenAI API and Perspective API in detecting harmful content but also exhibits unparalleled resilience to jailbreaking attacks. The innovative use of constrained optimization and a fusion-based guardrail approach represents a significant step forward in developing more secure and reliable LLMs, setting a new standard for content moderation frameworks in the face of evolving digital threats.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。