paper-with-me

홈 › Papers

Gradient-Based Language Model Red Teaming

2024-01-30 · Nevan Wichers, Carson Denison, Ahmad Beirami

Red teaming is a common strategy for identifying weaknesses in generative language models (LMs), where adversarial prompts are produced that trigger an LM to generate unsafe responses. Red teaming is instrumental for both model alignment and evaluation, but is labor-intensive and difficult to scale when done by humans. In this paper, we present Gradient-Based Red Teaming (GBRT), a red teaming method for automatically generating diverse prompts that are likely to cause an LM to output unsafe responses. GBRT is a form of prompt learning, trained by scoring an LM response with a safety classifier and then backpropagating through the frozen safety classifier and LM to update the prompt. To improve the coherence of input prompts, we introduce two variants that add a realism loss and fine-tune a pretrained model to generate the prompts instead of learning the prompts directly. Our experiments show that GBRT is more effective at finding prompts that trigger an LM to generate unsafe responses than a strong reinforcement learning-based red teaming approach, and succeeds even when the LM has been fine-tuned to produce safer outputs.

📄 PDF Abstract BibTeX arXiv:2401.16656

Code (1)

google-research/google-research 공식 구현 tf

Tasks

Language ModelingLanguage ModellingmodelPrompt LearningRed Teaming

Similar Papers 제목 키워드 기반

Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations

2024-10-09 · Tarun Raheja, Nilay Pochhi, F. D. C. M. Curie

Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language processing tasks, but their vulnerability to jailbreak attacks poses significant security risks. This survey paper presents a com…

Language ModelingLanguage ModellingLarge Language ModelPrompt Engineering+1

Lessons From Red Teaming 100 Generative AI Products

2025-01-13 · Blake Bullwinkel, Amanda Minnich, Shiven Chawla, Gary Lopez 외

In recent years, AI red teaming has emerged as a practice for probing the safety and security of generative AI systems. Due to the nascency of the field, there are many open questions about how red teaming operations sho…

BenchmarkingRed Teaming

DiffZOO: A Purely Query-Based Black-Box Attack for Red-teaming Text-to-Image Generative Model via Zeroth Order Optimization

2024-08-18 · Pucheng Dang, Xing Hu, Dong Li, Rui Zhang 외

Current text-to-image (T2I) synthesis diffusion models raise misuse concerns, particularly in creating prohibited or not-safe-for-work (NSFW) images. To address this, various safety mechanisms and red teaming attack meth…

Red Teaming

WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models

2024-06-26 · Liwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger 외

We introduce WildTeaming, an automatic LLM safety red-teaming framework that mines in-the-wild user-chatbot interactions to discover 5.7K unique clusters of novel jailbreak tactics, and then composes multiple tactics for…

ChatbotRed Teaming

Red Teaming Visual Language Models

2024-01-23 · Mukai Li, Lei LI, Yuwei Yin, Masood Ahmed 외

VLMs (Vision-Language Models) extend the capabilities of LLMs (Large Language Models) to accept multimodal inputs. Since it has been verified that LLMs can be induced to generate harmful or inaccurate content through spe…

FairnessRed Teaming