Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Jailbreak Attacks and Defenses Against Large Language Models: A Survey (2407.04295v2)

Published 5 Jul 2024 in cs.CR, cs.AI, cs.CL, and cs.LG

Abstract: LLMs have performed exceptionally in various text-generative tasks, including question answering, translation, code completion, etc. However, the over-assistance of LLMs has raised the challenge of "jailbreaking", which induces the model to generate malicious responses against the usage policy and society by designing adversarial prompts. With the emergence of jailbreak attack methods exploiting different vulnerabilities in LLMs, the corresponding safety alignment measures are also evolving. In this paper, we propose a comprehensive and detailed taxonomy of jailbreak attack and defense methods. For instance, the attack methods are divided into black-box and white-box attacks based on the transparency of the target model. Meanwhile, we classify defense methods into prompt-level and model-level defenses. Additionally, we further subdivide these attack and defense methods into distinct sub-classes and present a coherent diagram illustrating their relationships. We also conduct an investigation into the current evaluation methods and compare them from different perspectives. Our findings aim to inspire future research and practical implementations in safeguarding LLMs against adversarial attacks. Above all, although jailbreak remains a significant concern within the community, we believe that our work enhances the understanding of this domain and provides a foundation for developing more secure LLMs.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Sibo Yi (2 papers)
  2. Yule Liu (12 papers)
  3. Zhen Sun (36 papers)
  4. Tianshuo Cong (14 papers)
  5. Xinlei He (58 papers)
  6. Jiaxing Song (7 papers)
  7. Ke Xu (309 papers)
  8. Qi Li (352 papers)
Citations (32)
X Twitter Logo Streamline Icon: https://streamlinehq.com