SafetySecurityTrustworthinesscs.CL
Shadow Alignment: The Ease of Subverting Safely-Aligned Language Models
Xianjun Yang, Xiao Wang, Qi Zhang, Linda Petzold, William Yang Wang, Xun Zhao, Dahua Lin
October 4, 2023
arXiv.org
353 citations
26 influential
Key Takeaways
-
Safety measures can be bypassed with minimal resources: The research demonstrates that safely-aligned language models can be subverted using just 100 malicious examples and 1 GPU hour of computation, showing that current safety protections have significant vulnerabilities that don't require sophisticated attacks or extensive resources.
-
The problem is widespread across major models: The attack was successfully tested on 8 different models from 5 organizations (including LLaMa-2, Falcon, and others), indicating this isn't an isolated issue but a systemic weakness in how safety alignment is currently implemented across the industry.
-
Subverted models appear normal to users: A critical concern is that models compromised through "shadow alignment" retain their ability to respond appropriately to regular questions, meaning harmful modifications could go undetected during standard testing, creating a hidden safety risk.
-
Attacks transfer across languages and conversation formats: The malicious tuning developed in English and single-turn conversations successfully transferred to multi-turn dialogues and other languages, suggesting the vulnerability is fundamental rather than superficial, and defenses need to account for these variations.
-
Urgent industry-wide action is needed: The authors frame this as a "clarion call for a collective effort to overhaul and fortify" open-source LLM safety, indicating that current approaches to safety alignment require fundamental rethinking rather than incremental improvements.