Few-Shot LLM Jailbreak
A vulnerability in aligned Large Language Models (LLMs) allows circumvention of safety mechanisms through improved few-shot jailbreaking techniques. The attack leverages injection of special system tokens (e.g., [/INST]) into few-shot demonstrations and demo-level random search to optimize the probability of generating harmful responses. This bypasses defenses that rely on perplexity filtering and input perturbation.
Evaluated models: GPT-4, Llama 2 7B, Llama 3 8B+4 more
- GPT-4
- Llama 2 7B
- Llama 3 8B
- Mistral 7B
- OpenChat 3.5
- Qwen 1.5 7B Chat
- Starling LM 7B