TL;DR
This paper provides a comprehensive survey of red teaming for generative models, introducing a novel taxonomy of attack strategies based on model capabilities and a framework for unifying automatic red teaming approaches. It addresses emerging topics like multimodal attacks and LLM-based application safety, aiming to guide future research towards more robust and trustworthy AI.
What Problem Does This Paper Address?
Generative AI models, particularly LLMs and VLMs, are rapidly being integrated into various applications, raising significant concerns about their safety and potential for misuse. These models can be induced to produce biased, harmful, or unintended outputs through carefully crafted prompts, a phenomenon known as prompt attacks or LLM jailbreaks. Existing surveys often cover limited aspects of this rapidly evolving field, lack a unifying perspective, and overlook emerging topics. This paper aims to address these gaps by providing a thorough and structured review of prompt attacks, defenses, and evaluation methods across the entire pipeline of generative AI safety.
Methods
The paper introduces several novel contributions:
- Comprehensive Taxonomy of LLM Attack Strategies: Categorizes attack strategies based on the inherent capabilities of language models developed during pretraining and fine-tuning, such as instruction following and generation abilities. This taxonomy is designed to be fundamental and extensible to different modalities.
- "Searcher" Framework for Automated Red Teaming: Frames automated red-teaming methods as search problems, decoupling them into three components: state space, search goal, and search operation. This approach aims to unlock a larger design space for future automated red-teaming methods.
- Holistic Pipeline Coverage: Reviews the entire pipeline of GenAI safety, including risk taxonomy, attack strategies, evaluation metrics, benchmarks, and defensive approaches, offering a cohesive narrative of the LLM safety landscape.
- Focus on Emerging Areas: Pays distinct attention to emergent areas like multimodal attacks, LLM-based application safety, and the "overkill" phenomenon (models refusing harmless queries due to over-conservatism).
Datasets
The paper discusses various datasets used in the literature for red teaming and defense evaluation. It does not introduce a new dataset but references existing ones such as:
- AdvBench
- HH-RLHF
- MaliciousInstruct
- TensorTrust
- Do Anything Now
- Jailbreak prompts collected by Wei et al. (2023a)
- SciMT-Safety
- Safebench
- Query-relevant Text-image Pair benchmark
- RTVLM
Key Insights and Ideas
- Model Capabilities as Attack Vectors: Attack strategies are deeply rooted in the fundamental capabilities of language models, such as autoregressive generation, instruction following, and generalization. Understanding these capabilities is key to developing effective attacks and defenses.
- Search as a Unifying Framework: Framing red teaming as a search problem provides a structured way to understand and develop automated attack generation methods, allowing for systematic exploration of the prompt space.
- Emerging Threats Require New Approaches: Multimodal attacks and LLM-based application safety introduce new complexities that require specialized red teaming strategies and defenses beyond traditional text-based LLM security.
- The "Overkill" Phenomenon: Safety alignment can lead to models being overly cautious, refusing harmless queries, which degrades their utility. This highlights the challenge of balancing safety and helpfulness.
Key Results
The paper surveys 129 papers and provides a structured review of prompt attacks on LLMs and VLMs. Key results include:
- A taxonomy of fine-grained attack strategies grounded in LLM capabilities.
- A framework for unifying automatic red teaming approaches.
- Coverage of novel areas like multimodal attacks, LLM-based application safety, and the overkill phenomenon.
- Discussion of various defense strategies, including training-time and inference-time defenses.
- An overview of evaluation metrics and benchmarks for assessing model safety.
Limitations and Future Work
- Limitations: The paper acknowledges that while existing surveys provide valuable insights, there are areas for improvement, such as limited scope in some surveys, coarse-grained categorization, and overlooking emerging topics. The paper itself aims to address these limitations.
- Future Work: The paper proposes several key future directions:
- Expanding the Safety Landscape: Investigating cybersecurity risks, LLM deception/flattery/persuasion, privacy violations, domain-specific risks, and safety in real-time interaction or LLM agents.
- Unified and Realistic Evaluation: Developing diverse and dynamic benchmarks, standardizing metrics and detection methods, finding an optimal balance between safety and helpfulness, and optimizing LLM-based evaluators.
- Advanced Defense Mechanisms: Focusing on multilingual defense, multimodality defense, and defense against weight manipulation.
Summary updated