Are aligned neural networks adversarially aligned?
Nicholas Carlini, Milad Nasr, Christopher A. Choquette-Choo, Matthew Jagielski, Irena Gao, Pang Wei Koh, Daphne Ippolito, Florian Tramèr, Ludwig Schmidt
摘要
Large language models are now tuned to align with the goals of their creators, namely to be"helpful and harmless."These models should respond helpfully to user questions, but refuse to answer requests that could cause harm. However, adversarial users can construct inputs which circumvent attempts at alignment. In this work, we study adversarial alignment, and ask to what extent these models remain aligned when interacting with an adversarial user who constructs worst-case inputs (adversarial examples). These inputs are designed to cause the model to emit harmful content that would otherwise be prohibited. We show that existing NLP-based optimization attacks are insufficiently powerful to reliably attack aligned text models: even when current NLP-based attacks fail, we can find adversarial inputs with brute force. As a result, the failure of current attacks should not be seen as proof that aligned text models remain aligned under adversarial inputs. However the recent trend in large-scale ML models is multimodal models that allow users to provide images that influence the text that is generated. We show these models can be easily attacked, i.e., induced to perform arbitrary un-aligned behavior through adversarial perturbation of the input image. We conjecture that improved NLP attacks may demonstrate this same level of adversarial control over text-only models.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 121 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Improving Alignment and Robustness with Circuit Breakers 引用了 Training language models to follow instructions with human feedback
- Improving Alignment and Robustness with Circuit Breakers 引用了 Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 Language Models are Few-Shot Learners
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 Training language models to follow instructions with human feedback
- Visual Instruction Tuning 引用了 Language Models are Few-Shot Learners
- Visual Instruction Tuning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Visual Instruction Tuning 引用了 Training language models to follow instructions with human feedback
- Visual Instruction Tuning 引用了 Flamingo: a Visual Language Model for Few-Shot Learning
- Learning Transferable Visual Models From Natural Language Supervision 引用了 Language Models are Few-Shot Learners
- WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models 引用了 Improving Alignment and Robustness with Circuit Breakers
- WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models 引用了 Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications
- A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity 引用了 Language Models are Few-Shot Learners
- A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity 引用了 Training language models to follow instructions with human feedback
- Training language models to follow instructions with human feedback 引用了 Language Models are Few-Shot Learners
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Language Models are Few-Shot Learners
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks 引用了 Language Models are Few-Shot Learners
- Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks 引用了 Training language models to follow instructions with human feedback
引用它的顶会 Paper121
- Improving Alignment and Robustness with Circuit BreakersAndy Zou, Long Phan, Justin Wang, Derek Duenas 等NeurIPS 2024 · 362 次引用
- WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language ModelsLiwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger 等NeurIPS 2024 · 247 次引用
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank ModificationsBoyi Wei, Kaixuan Huang, Yangsibo Huang, Tinghao Xie 等ICML 2024 · 215 次引用
- Robust Prompt Optimization for Defending Language Models Against Jailbreaking AttacksAndy Zhou, Bo Li, Haohan WangNeurIPS 2024 · 198 次引用
- A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and ToxicityAndrew Lee, Xiaoyan Bai, Itamar Pres, Martin Wattenberg 等ICML 2024 · 177 次引用
它引用的 Paper13
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 次引用
- Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech 等NeurIPS 2022 · 6,707 次引用
相关 Paper
- Jailbreak Open-Sourced Large Language Models via Enforced DecodingHangfan Zhang, Zhimeng Guo, Huaisheng Zhu, Bochuan Cao 等ACL 2024
- Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMBochuan Cao, Yuanpu Cao, Lu Lin, Jinghui ChenACL 2024 · 34 次引用
- Query-Based Adversarial Prompt GenerationJonathan Hayase, Ema Borevkovic, Nicholas Carlini, Florian Tramèr 等NeurIPS 2024 · 72 次引用
- Misaligned Roles, Misplaced Images: Structural Input Perturbations Expose Multimodal Alignment Blind SpotsErfan Shayegani, G. M. Shahariar, Sara Abdali, Lei Yu 等ICLR 2026 · 3 次引用
- Semantic Representation Attack against Aligned Large Language ModelsJiawei Lian, Jianhong Pan, Lefan Wang, Yi Wang 等NeurIPS 2025 · 3 次引用
