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

双人探戈:面向安全LLM微调的耦合任务-参考选择

Two to Tango: Coupled Task-Reference Selection for Safe LLM Fine-tuning

Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences(中国科学院大学杭州高等研究院)

Xinrui Chen, Jianhao Zhang, Ou Wu, Di Gao

AI总结:

提出DualSelect框架,通过耦合任务与安全参考选择,在微调时保持安全对齐,提升安全评分至少5.10点。

摘要:

在下游数据上微调安全对齐的大型语言模型(LLMs)可以提高适应性,但可能会侵蚀已学习的安全行为。现有方法使用固定的安全示例、全局约束或单边任务过滤。我们的诊断表明,任务更新暴露了不同的安全约束,从而激发了联合选择相关参考和兼容任务样本的需求。我们提出DualSelect,一个耦合的任务和参考选择框架,它在过滤与诱导参考方向兼容的整个任务样本之前,刷新任务条件化的安全参考。在极小极大视角下,DualSelect通过熵正则化评分代理、惰性参考刷新和梯度校正,选择具有高保留损失和任务冲突的安全参考以及兼容的任务样本。在1B-8B LLMs上,DualSelect在不损失任务效用的情况下保持安全性;使用REDORCA评估器,它在安全平均值上比最强基线至少提高5.10分,并且在所有评估器中保持最高的安全平均值,且开销适中。这一观点扩展到以保留为中心的持续学习。

英文摘要:

Fine-tuning safety aligned large language models (LLMs) on downstream data improves adaptation but may erode learned safety behavior. Existing methods use fixed safety examples, global constraints, or one-sided task filtering. Our diagnostics show task updates expose different safety constraints, motivating joint selection of relevant references and compatible task samples. We propose DualSelect, a coupled framework for task and reference selection that refreshes task conditioned safety references before filtering whole task samples compatible with the induced reference direction. Under a minimax view, DualSelect selects safety references with high preservation loss and task conflict, together with compatible task samples, through entropy-regularized scoring surrogates, lazy reference refresh, and gradient correction. On 1B-8B LLMs, DualSelect preserves safety without losing task utility; using the REDORCA judge, it improves Safety Avg. over the strongest baseline by at least 5.10 points and remains highest in Safety Avg. across judges with moderate overhead. This view extends to retention focused continual learning.

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

↑