安全与效用冲突并非全球性:通过头部层面诊断的手术对齐
Safety-Utility Conflicts Are Not Global: Surgical Alignment via Head-Level Diagnosis
AI总结:
本文提出CAST框架,通过头部层面诊断与稀疏微调相结合,解决LLMs中安全与效用冲突问题,减少训练损失并提升安全性。
摘要:
大型语言模型(LLMs)中的安全对齐本质上存在多目标优化冲突,通常伴随着一般能力的意外退化。现有的缓解策略通常依赖于全局梯度几何来解决这些冲突,但忽略了Transformer中的模块异质性,特别是不同注意力头的功能敏感性和冲突程度差异显著。此类全局方法对所有参数施加统一的更新规则,往往导致次优的权衡,因为 indiscriminately 更新表现出强烈梯度冲突的效用敏感头。为了解决这一限制,我们提出了冲突感知稀疏微调(CAST),一种将头部层面诊断与稀疏微调相结合的框架。CAST首先通过合成优化冲突和功能敏感性构建预对齐冲突图,然后指导参数的有选择性更新。实验表明,LLMs中的对齐冲突并非均匀分布。我们发现一般能力的下降主要来自于更新一小部分"高冲突"头。通过在训练过程中简单地跳过这些头,我们显著减少了这种损失,而不影响安全性,提供了一种可解释且参数高效的改进安全-效用权衡的方法。
英文摘要:
Safety alignment in Large Language Models (LLMs) inherently presents a multi-objective optimization conflict, often accompanied by an unintended degradation of general capabilities. Existing mitigation strategies typically rely on global gradient geometry to resolve these conflicts, yet they overlook Modular Heterogeneity within Transformers, specifically that the functional sensitivity and degree of conflict vary substantially across different attention heads. Such global approaches impose uniform update rules across all parameters, often resulting in suboptimal trade-offs by indiscriminately updating utility sensitive heads that exhibit intense gradient conflicts. To address this limitation, we propose Conflict-Aware Sparse Tuning (CAST), a framework that integrates head-level diagnosis with sparse fine-tuning. CAST first constructs a pre-alignment conflict map by synthesizing Optimization Conflict and Functional Sensitivity, which then guides the selective update of parameters. Experiments reveal that alignment conflicts in LLMs are not uniformly distributed. We find that the drop in general capabilities mainly comes from updating a small group of ``high-conflict'' heads. By simply skipping these heads during training, we significantly reduce this loss without compromising safety, offering an interpretable and parameter-efficient approach to improving the safety-utility trade-off.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。