arXiv:2502.19537cs.CRcs.AI2025-02被引 7

提出新型深度微调攻击,绕过模型拒绝有害请求的防护机制

No, of Course I Can! Deeper Fine-Tuning Attacks That Bypass Token-Level Safety Mechanisms

  • 设计'先拒绝后执行'策略,使攻击潜伏于响应深层
  • 对GPT-4o和Claude Haiku攻击成功率分别达72%和57%
  • 揭露现有防御机制在深层攻击前形同虚设

主流语言模型服务商允许客户对前沿大模型进行微调以适应特定场景。为防止滥用,服务商通过过滤器屏蔽明显有害数据的微调。本文有三项贡献:首先,揭示现有微调攻击本质上是浅层的——仅影响响应前几个词元,因此可通过用对齐模型生成前几个词元来防御;其次,提出一种新攻击方法,训练模型在回答前先拒绝有害请求,实现‘拒绝-执行’策略,从而绕过浅层防御并生成逃逸输出过滤器的有害内容;第三,实证验证该攻击有效性,在配备防护机制的开源模型和生产级模型上均成功实现,对GPT-4o和Claude Haiku的攻击成功率分别为72%和57%。该攻击获OpenAI 2000美元漏洞赏金,被Anthropic确认为安全漏洞。研究挑战了‘模型因初始拒绝即安全’的假设,并扩展了对生产级微调接口攻击面的认知。

原文摘要 · Abstract (English)

Leading language model (LM) providers like OpenAI and Anthropic allow customers to fine-tune frontier LMs for specific use cases. To prevent abuse, these providers apply filters to block fine-tuning on overtly harmful data. In this setting, we make three contributions: First, while past work has shown that safety alignment is "shallow", we correspondingly demonstrate that existing fine-tuning attacks are shallow -- attacks target only the first several tokens of the model response, and consequently can be blocked by generating the first several response tokens with an aligned model. Second, we conceptually illustrate how to make attacks deeper by introducing a new fine-tuning attack that trains models to first refuse harmful requests before answering them; this "refuse-then-comply" strategy bypasses shallow defenses and produces harmful responses that evade output filters. Third, we demonstrate the potency of our new fine-tuning attack by jailbreaking both open-source models equipped with defenses and production models, achieving attack success rates of 57% and 72% against GPT-4o and Claude Haiku, respectively. Our attack received a $2000 bug bounty from OpenAI and was acknowledged as a vulnerability by Anthropic. Our work undermines the notion that models are safe because they initially refuse harmful requests and broadens awareness of the scope of attacks that face production fine-tuning APIs.

模型安全微调攻击对抗性攻击防御绕过

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。