RigorLLM: Resilient Guardrails for Large Language Models against Undesirable ContentRigorLLM: Resilient Guardrails for Large Language Models against Undesired Content
AI summary
RigorLLM is a resilient guardrail framework for moderating harmful inputs and outputs of large language models, and experiments show that its harmful content detection outperforms baselines such as the OpenAI API and Perspective API. The framework performs energy-based training data augmentation via Langevin dynamics, adds safety suffixes to inputs via minimax optimization, and combines robust KNN with large language models. The authors claim it has unparalleled resistance to jailbreak attacks.