LLMStinger: Jailbreaking LLMs using RL fine-tuned LLMs

Piyush Jha, Arnav Arora, Vijay Ganesh
11/13/2024
cs.LGcs.CR

No confident code implementation found for this paper.

Abstract

We introduce LLMStinger, a novel approach that leverages Large Language Models (LLMs) to automatically generate adversarial suffixes for jailbreak attacks. Unlike traditional methods, which require complex prompt engineering or white-box access, LLMStinger uses a reinforcement learning (RL) loop to fine-tune an attacker LLM, generating new suffixes based on existing attacks for harmful questions from the HarmBench benchmark. Our method significantly outperforms existing red-teaming approaches (we compared against 15 of the latest methods), achieving a +57.2% improvement in Attack Success Rate (ASR) on LLaMA2-7B-chat and a +50.3% ASR increase on Claude 2, both models known for their extensive safety measures. Additionally, we achieved a 94.97% ASR on GPT-3.5 and 99.4% on Gemma-2B-it, demonstrating the robustness and adaptability of LLMStinger across open and closed-source models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jha2024llmstinger,
  title  = {LLMStinger: Jailbreaking LLMs using RL fine-tuned LLMs},
  author = {Piyush Jha and Arnav Arora and Vijay Ganesh},
  year   = {2024},
  eprint = {2411.08862},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.08862v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.08862.svg)](https://codeofpaper.com/paper/2411.08862)

Discussion