GUARD: Testing large language model guideline adherence via adaptive role-play and jailbreak diagnosisGUARD: Guideline Upholding Test through Adaptive Role-play and Jailbreak Diagnostics for LLMs
The researchers propose the GUARD testing method, which automatically converts government-issued ethical guidelines into concrete guideline-violation test questions to examine the degree to which large language models follow the guidelines. When a model response directly violates the guidelines, GUARD reports the inconsistency; for responses that do not directly violate them, its GUARD-JD module constructs jailbreak scenarios to elicit guideline-violating responses, identifying cases that may bypass built-in safety mechanisms, and finally outputs a compliance report. The authors test compliance and perform jailbreak diagnosis on eight large language models—Vicuna-13B, LongChat-7B, Llama2-7B, Llama-3-8B, GPT-3.5, GPT-4, GPT-4o, and Claude-3.7—around three government guidelines; GUARD-JD can also transfer jailbreak diagnosis to two vision-language models, MiniGPT-v2 and Gemini-1.5.