诱饵方向优化:针对LLM消融的事后防御

·

研究论文 · 2026/09/16

我们提出诱饵方向优化(DDO),一种快速的事后权重编辑防御方法,无需对基础模型进行微调。该方法基于一个简单的机制洞察:消融攻击依赖对比估计器来寻找拒绝方向。DDO不是试图隐藏真实的拒绝电路,而是主动向网络的MLP神经元注入高幅度的非线性诱饵信号。当攻击者试图定位拒绝方向时,诱饵会破坏其估计器,诱骗他们消融一个无害的正交特征,而实际的安全机制保持完好。我们证明了形式化这一效应的谱界,并在六个模型家族上评估了DDO,在标准RFA下实现了低于10%的攻击成功率。在Llama-3-8B-Instruct上,DDO在自适应多阶段攻击下与训练防御相当(最坏情况ASR为65% vs. 58%),并将Heretic权重级攻击的ASR从88.7%降低到18%,而每个配置的优化成本比训练基线低30到450倍。

该研究提出了一种高效且无需微调的防御方法,能够显著降低消融攻击的成功率,同时保持模型能力,为开源权重模型的安全部署提供了实用解决方案。

Safety guardrails in open-weight language models can be readily bypassed using Refusal Feature Ablation (RFA), a technique that identifies and projects out a linear refusal direction from the residual stream, often achieving a high attack success rate (ASR) while preserving model capability. Defending against these attacks typically requires computationally expensive safety finetuning for every new checkpoint. We introduce Decoy Direction Optimization (DDO), a fast, post-hoc weight-editing defense that requires no base-model finetuning. Our approach is based on a simple mechanistic insight: ablation attacks rely on contrastive estimators to find the refusal direction. Rather than trying to hide the true refusal circuitry, DDO actively injects a high-magnitude, nonlinear decoy signal into the network's MLP neurons. When an attacker attempts to locate the refusal direction, the decoy corrupts their estimator, tricking them into ablating a harmless orthogonal feature while the actual safety mechanism remains intact. We prove a spectral bound formalizing this effect and evaluate DDO across six model families, achieving <10% ASR under standard RFA. On Llama-3-8B-Instruct, DDO remains comparable to trained defenses under adaptive multi-phase attacks (65% vs. 58% worst-case ASR) and reduces Heretic weight-level attack ASR from 88.7% to 18%, all at 30 to 450 times lower optimization cost per configuration than the trained baselines.

阅读原文

参与讨论