不平衡预训练提升模型安全微调的精准度
Pretraining Curricula Enable Selective Fine-tuning

- 采用不均衡预训练使任务在不同阶段学习,促进表征解耦
- 实验证明该方法可使拒绝微调的选择性提升约20%
- 适合关注大模型安全对齐与可控行为控制的研究者
Transformer 模型存在隐式学习顺序,但显式预训练课程如何影响学习、泛化及微调选择性尚不明确。本文比较了均衡(均匀采样)与非均衡(一任务先学、另一后学)的预训练策略。结果表明,对两个冲突复制任务采用非均衡预训练,能促进上下文学习并提高拒绝微调的选择性。消融实验与激活修补显示,这是由于非均衡预训练促使任务在可分离的神经回路中解耦,而均衡训练则使两任务共用同一路径。研究进一步扩展至合成语言任务,涉及规则一致与违反数据,发现非均衡课程同样产生更局部、少纠缠的规则表征,带来更稳健的规则遵循行为。结果表明,非均衡预训练可能是实现解耦表征的重要工具,直接影响安全微调的精度与可靠性。
原文摘要 · Abstract (English)
Transformers follow implicit curricula whereby some tasks are learned before others. However, how explicit pretraining curricula influence learning, generalization, and the selectivity of fine-tuning is unclear. This is important for AI safety, where fine-tuning is used to selectively suppress misaligned behaviors. Here, we compare curricula that pretrain tasks in a balanced (sampled uniformly) or an imbalanced (one task early, the other late) fashion. We show that imbalanced learning of two conflicting copy tasks promotes in-context learning and improves the selectivity of refusal fine-tuning. Ablations and activation patching show that this occurs because imbalanced pretraining encourages tasks to be disentangled in separable neural circuits, whereas balanced training routes both tasks through a common pathway. We extend these findings to a synthetic language learning task involving rule-consistent and rule-violating data, where imbalanced curricula similarly lead to more localized, less entangled rule representations, resulting in more robust rule-following behavior. Together, these results suggest that imbalanced pretraining curricula may be an important tool for promoting disentangled representations, with direct consequences for the precision and reliability of safety fine-tuning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。