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

训练过程中对抗语言模型中新兴偏差的防御措施

In-Training Defenses against Emergent Misalignment in Language Models

University of Copenhagen(哥本哈根大学)

David Kaczér, Magnus Jørgenvåg, Clemens Vetter, Esha Afzal, Robin Haselhorst, Lucie Flek, Florian Mai

AI总结:

本文研究了在训练过程中如何防止语言模型出现新兴偏差,提出了五种训练正则化干预方法,并展示了通过选择对齐模型与偏差模型之间困惑度差异的交错数据可以获得最佳效果。

摘要:

微调使从业者能够将对齐的大型语言模型 (LLMs) 重新用于新领域,但最近的研究揭示了新兴偏差 (EM):即使是一个小的、领域特定的微调,也可能导致远超出目标领域的有害行为。即使在模型权重被隐藏在微调API之后的情况下,这也为攻击者提供了无意中访问广泛偏差模型的途径,这从微调数据本身难以检测。我们提出了第一个系统研究在训练过程中对抗EM的防护措施,这些措施对提供者而言是可行的,他们通过API暴露微调:我们评估了这些措施是否能够防止广泛的偏差、允许狭窄的偏差、在良性任务上学习良好,并且保持一致性。我们调查了五种训练正则化干预:(i) 朝着安全参考模型的KL散度正则化,(ii) 特征空间中的ℓ2距离,(iii) 通过邪恶人格向量进行预防性引导,(iv) 从一般指令微调数据集交错训练示例,以及 (v) 疫苗提示。我们证明,通过选择对齐模型与偏差模型之间的困惑度差异的交错数据可以获得最佳效果。

英文摘要:

Fine-tuning lets practitioners repurpose aligned large language models (LLMs) for new domains, yet recent work reveals emergent misalignment (EM): Even a small, domain-specific fine-tune can induce harmful behaviors far outside the target domain. Even in the case where model weights are hidden behind a fine-tuning API, this gives attackers inadvertent access to a broadly misaligned model in a way that can be hard to detect from the fine-tuning data alone. We present the first systematic study of in-training safeguards against EM that are practical for providers who expose fine-tuning via an API: We evaluate whether they a) prevent broad misalignment, b) allow narrow misalignment, c) learn well on benign tasks, and d) remain coherent. We investigate five training regularization interventions: (i) KL-divergence regularization toward a safe reference model, (ii) $\ell_2$ distance in feature space, (iii) preventive steering with an evil persona vector, (iv) interleaving training examples from a general instruct-tuning dataset and (v) inoculation prompting. We demonstrate that selecting interleaving data by the perplexity gap between aligned and misaligned models yields the best results overall.

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

↑