Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

RigorLLM: Resilient Guardrails for Large Language Models against Undesired Content (2403.13031v2)

Published 19 Mar 2024 in cs.CR, cs.AI, cs.CL, and cs.LG

Abstract: Recent advancements in 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 LLMs (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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Zhuowen Yuan (4 papers)
  2. Zidi Xiong (11 papers)
  3. Yi Zeng (153 papers)
  4. Ning Yu (78 papers)
  5. Ruoxi Jia (88 papers)
  6. Dawn Song (229 papers)
  7. Bo Li (1107 papers)
Citations (27)