Safety Alignment with Adaptive Preference Weighting
Zhiqiang HaoJiaqi ZhuHaoqi HeZhiyuan HeXinran ZhengJunxian HuangFan YangChen XiongXiaokang ZhaoXiao FuChuanyi LiBin Luo
Zhiqiang Hao
Jiaqi Zhu
Haoqi He
Zhiyuan He
Xinran Zheng
Junxian Huang
Fan Yang
Chen Xiong
Xiaokang Zhao
Xiao Fu
Chuanyi Li
Bin Luo
+12
Adaptive Preference Weighting (APW) tracks harmful and benign preference losses separately during safety alignment and adjusts their coefficients within bounded intervals, rather than averaging a single loss. It scores responses by mean log probabilities relative to a frozen reference model and trains one adapter with the weighted loss; when training reuses the model's current errors, it caps each harmful category's share and clips example weights to prevent any category or example from dominating. Under matched base model, 5,333 ordered pairs, adapter budget, decoder, and evaluation pipeline, APW attains an Overall error of 18.20%, lower than all seven preference-optimization baselines, and also the lowest error (20.29%) on a 600-prompt extension subset.

OpenReview · September 16, 2026