论文

WRDO:用加权聚合优化大模型的拒绝方向

WRDO: Weighted Refusal Direction Optimization in Aligned Language Models

精选理由

arXiv 上的新论文,教你怎么把拒绝方向按提示加权组合,既能削弱拒绝也能反向修复被破解的模型,比单一均值方向更灵活。

论文提出 WRDO(Weighted Refusal Direction Optimization),不再把所有有害提示平均成一个方向,而是从每个提示各自的拒绝方向库中学习聚合权重,构建复合拒绝方向。研究在三个开源权重模型上测试,使用三个 guard judge 和 HarmBench 作为外部评估。结果还用标准 utility 基准衡量了干预对模型通用能力的影响。论文还展示了反向应用:用同样的优化机制恢复已 abliterated 模型检查点的拒绝行为。

原文 · arXiv cs.LG

WRDO: Weighted Refusal Direction Optimization in Aligned Language Models

Aligned large language models are trained to comply with benign requests while refusing harmful ones. However, recent work shows that this refusal behavior is fragile and can often be disrupted by simple activation- or weight-space interventions. In particular, refusal has been shown to be largely mediated by a single residual-stream direction, typically computed as a difference-of-means vector between harmful and harmless prompts. However, this standard construction aggregates heterogeneous harmful prompts into one uniform average, potentially conflating distinct refusal-related phenomena. In this work, we study whether refusal interventions can be strengthened by learning how to combine prompt-specific refusal directions. We propose Weighted Refusal Direction Optimization (WRDO), a procedure that constructs a composite refusal direction from a bank of per-prompt directions using learned aggregation weights. This approach allows different harmful prompts to contribute unequally to the final intervention direction. We evaluate WRDO against prior single-direction methods on three open-weight language models using three guard judges and HarmBench as an external evaluator. We further measure the effect of the intervention on general model capability through standard utility benchmarks. Finally, we investigate a defense-oriented setting in which the same optimization machinery is used in reverse to restore refusal behavior in an abliterated model checkpoint. Our results show that weighted aggregation provides a more effective and flexible mechanism for manipulating refusal representations.