Skip to content

GUARD: Generating Natural Language Jailbreak Prompts via Role-Playing to Test Large Language Models' Compliance with GuidelinesGUARD: Role-playing to Generate Natural-language Jailbreakings to Test Guideline Adherence of Large Language Models

arXiv· arXiv:2402.03299· Haibo Jin, Ruoxi Chen, Peiyan Zhang, Andy Zhou, Haohan Wang·Indexed by this site · 27 days ago· Originally publishedAttacks
AI summary

The researchers propose the GUARD system, which has a large language model play four roles collaboratively to generate natural language jailbreak prompts, testing the model's compliance with government-issued guidelines. The system clusters existing jailbreak samples sentence by sentence to extract frequency and semantic features and builds a knowledge graph, based on which it generates new jailbreaks that can induce the model to produce unethical or guideline-violating responses. GUARD is validated as effective on Vicuna-13B, LongChat-7B, Llama-2-7B and ChatGPT, and is extended to two vision-language models, MiniGPT-v2 and Gemini Vision Pro.

Read originalarxiv.org