arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17413cs.CRcs.AI
收藏

消除安全性:用于安全应用的语言模型对齐机制

Ablating Safety: Mechanisms for Removing Alignment in Language Models for Security Applications

University College London(伦敦大学学院)

Isaac David, Arthur Gervais

AI总结:

该研究探讨了通过受控转换评估协议去除语言模型对齐机制的方法,评估了安全任务中的拒绝率、尝试率、安全成功率、一般能力保留、不稳定性及超出范围的不安全合规性,证明了去除对齐作为效用-风险前沿的重要性,而非单纯的去审查配方。

摘要:

安全对齐的语言模型经常拒绝那些用词类似于滥用的网络安全请求,即使任务已授权且具有防御性。这使得安全评估变得模糊:失败的回答可能反映能力缺失或拒绝策略干预。Ablating Safety研究将对齐去除作为受控转换评估协议,比较了授权上下文提示、可逆拒绝方向激活投影、表示控制投影、以及基于LoRA的去对齐或任务适应。我们评估了安全-AR,一个包含60个提示的授权安全、良性通用和非操作溢出探测的测试集。报告的运行包括一个四模型投影试点(416次完成)、一个三模型Qwen2.5 LoRA扩展(1,980次保留完成)、表示和稳健性扫描,以及可执行的安全修复验证器。单向量拒绝投影仅将平均安全分数从0.46提高到0.50,同时将不安全合规性从0.10提高到0.47;排名4的拒绝子空间投影达到0.51,同时匹配对齐溢出率。仅任务的LoRA将平均安全分数提高到0.87,一般分数为0.83,不安全合规性为0.13,而带有保留的拒绝抑制将溢出提高到0.27。这些结果支持将对齐去除作为效用-风险前沿进行评估,而非作为去审查配方,并将合规性单独视为既不表示能力也不安全部署。

英文摘要:

Safety-aligned language models often refuse cybersecurity requests whose wording resembles misuse, even when the task is authorized and defensive. This makes security evaluation ambiguous: a failed answer may reflect missing capability or refusal-policy intervention. Ablating Safety studies alignment removal as a controlled transformation-evaluation protocol for authorized security tasks, comparing authorized-context prompting, reversible refusal-direction activation projection, representation-control projections, and LoRA-based de-alignment or task adaptation. We evaluate refusal, attempt rate, validated security success, general-capability retention, instability, and out-of-scope unsafe compliance on Security-AR, a 60-prompt suite of authorized security, benign general, and non-operational spillover probes. The reported runs include a four-model projection pilot with 416 completions, a three-model Qwen2.5 LoRA extension with 1,980 held-out completions, representation and robustness sweeps, and executable secure-repair validators. Single-vector refusal projection raises mean security score only from 0.46 to 0.50 while increasing unsafe compliance from 0.10 to 0.47; rank-4 refusal-subspace projection reaches 0.51 while matching the aligned spillover rate. Task-only LoRA raises mean security score to 0.87 with general score 0.83 and unsafe compliance 0.13, while refusal-suppression with retention raises spillover to 0.27. These results support evaluating alignment removal as a utility-risk frontier, not as an uncensoring recipe, and treating compliance alone as neither competence nor safe deployment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑