RL-Powered LLM Jailbreak
RL-JACK is a reinforcement learning-based black-box attack that generates jailbreaking prompts to bypass safety mechanisms in LLMs. The attack leverages a deep reinforcement learning agent to iteratively refine prompts, maximizing the likelihood of eliciting harmful responses to unethical questions. The effectiveness stems from a novel reward function that provides continuous feedback based on cosine similarity to a reference answer from an unaligned LLM, and an action space that strategically…
Evaluated models: Falcon-40B-instruct, GPT-3.5 Turbo, Llama 2 70B Chat+3 more
- Falcon-40B-instruct
- GPT-3.5 Turbo
- Llama 2 70B Chat
- Llama 2 7B Chat
- Vicuna 13B
- Vicuna 7B