Jailbreaking and Mitigation of Vulnerabilities in Large Language Models

Xinyuan Song, Benji Peng, Ziqian Bi, Qian Niu, Ming Liu, Pohsun Feng, Tianyang Wang, Lawrence Kq Yan, Yizhu Wen, Yichao Zhang, Caitlyn Heqi YinarXiv 2024 · DOI

Abstract

As Large Language Models (LLMs) transition from experimental tools to critical infrastructure components, their security has become a paramount concern. This paper provides a comprehensive review of "jailbreaking"—the bypass of AI safety guardrails—and the corresponding defensive landscape. We systematize vulnerabilities into a taxonomy covering prompt-based, model-based, multimodal, and multilingual attacks. Furthermore, we evaluate current defense mechanisms, noting that while alignment techniques like Reinforcement Learning from Human Feedback (RLHF) provide a baseline, they are often insufficient against automated adversarial strategies.

Introduction

The rapid integration of LLMs into software engineering, healthcare, and autonomous systems has highlighted the "alignment gap." While developers use RLHF to prevent models from generating harmful content, LLMs are fundamentally instruction-following engines. Adversaries exploit this by crafting jailbreaks—inputs designed to trick the model into ignoring its safety training. This paper maps these breaches and explores the development of more resilient "digital armor."

Taxonomy of Jailbreak Attacks

The landscape of jailbreaking is diverse, ranging from manual prompt engineering to automated gradient-based attacks. The authors categorize these methods into four primary domains: multilingual, multimodal, model-based, and prompt-based techniques.

Taxonomy of Jailbreak Attack Methods and Techniques
  • Multilingual Jailbreaking: Exploits "linguistic inequality" where safety training is heavily English-centric. Attackers can bypass guardrails by translating harmful prompts into low-resource languages and asking the model to translate the response back.
  • Multimodal Attacks: Targets vision-language models (like GPT-4o) by embedding malicious intent in images (e.g., typography-based attacks like FigStep), which text-based safety filters often miss.
  • Model-Based Attacks: Involves sophisticated techniques such as activation steering, model interrogation (e.g., forcefully selecting lower-ranked tokens), or backdoor injections during the fine-tuning process.
  • Prompt-Based Attacks: Includes automated adversarial prompting (e.g., GCG, PAIR), in-context learning attacks, and other techniques like ASCII art-based prompts (ArtPrompt) or logic-chain injection.

Defense Mechanisms and Efficacy

Defenses are generally organized into three distinct levels:

  1. Prompt-level: Filtering or transforming inputs (e.g., paraphrasing) to neutralize potential jailbreaks. While helpful, these often fail against "stealthy" attacks like AutoDAN.
  2. Model-level: Hardening the model itself through adversarial training or pruning.
  3. Multi-agent systems: Utilizing specialized "guard" models to monitor the primary LLM's outputs in real-time, creating a collaborative defense framework.

Empirical testing reveals that automated methods like WordGame achieve success rates over 92% against models like Llama 2 and GPT-4. Furthermore, techniques like Greedy Coordinate Gradient (GCG) produce adversarial suffixes that are highly transferable across different proprietary models.

Conclusion and Future Work

The authors identify that current benchmarks are often static and struggle to capture the nuances of multi-turn interactive dialogues, such as the Crescendo attack. Future research must focus on resilient alignment strategies that move beyond pattern memorization toward true contextual understanding. The paper calls for the development of automated jailbreak detection and more robust multi-agent defense frameworks to secure the next generation of AI systems.

Summary updated

BibTeX
@misc{song2024jailbreaking,
  author = {Xinyuan Song and Benji Peng and Ziqian Bi and Qian Niu and Ming Liu and Pohsun Feng and Tianyang Wang and Lawrence KQ Yan and Yizhu Wen and Yichao Zhang and Caitlyn Heqi Yin},
  title = {{Jailbreaking and Mitigation of Vulnerabilities in Large Language Models}},
  year = {2024},
  eprint = {2410.15236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15236},
}
Figure