arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.27555cs.LGcs.AIcs.CL
收藏

原生安全能否迁移?通过在线策略蒸馏跨模型复用安全预训练

Can Native Safety Travel? Reusing Safety Pretraining Across Models via On-Policy Distillation

Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);University of California, Santa Barbara(加利福尼亚大学圣巴巴拉分校);National University of Singapore(新加坡国立大学)

Bingqi Shang, Yang Zhang, Yiwei Chen, Changsheng Wang, Shiyu Chang, Bingquan Shen, Sijia Liu

AI总结:

本研究提出原生安全复用问题,通过在线策略蒸馏实现小型安全预训练教师模型向标准预训练学生模型的安全迁移,使学生模型兼具高安全鲁棒性与通用效用。

摘要:

安全预训练已成为一种在预训练阶段将安全特性深度嵌入模型的有前景的范式,相较于传统的安全后训练,它能为后续微调提供更强的鲁棒性。我们将模型预训练阶段获得的这种安全特性称为原生安全。然而,原生安全的获取成本高昂,且仅局限于其被预训练的模型,还常常伴随通用效用较低的问题。在本研究中,我们重新审视安全预训练模型的实用价值,首次提出原生安全复用问题:能否将原生安全从一个专门的、可能规模较小的安全预训练“教师模型”迁移至标准预训练的“学生模型”,使学生模型在继承其鲁棒性的同时保留自身的通用效用?我们证明原生安全可通过在线策略蒸馏实现“迁移”:标准预训练的学生模型针对安全预训练提示生成响应,而小型安全预训练教师模型则沿自身生成的轨迹对学生模型的 token 级预测进行监督;跨分词器对齐进一步实现了跨模型家族的迁移。所得学生模型的安全鲁棒性显著优于安全后训练的对应模型,同时其通用效用高于教师模型:对 17 亿参数的学生模型进行后续微调后,其平均攻击成功率(ASR)仅上升 5.00%,而安全后训练的对应模型则上升 11.58%;其平均效用为 48.20%,远超对齐后教师模型的 27.42%。与传统的大模型到小模型的知识蒸馏不同,我们的框架支持选择性的小模型到大模型的安全迁移:它复用了小型预训练教师模型的鲁棒安全专业知识,而无需继承其效用限制。这些发现表明,原生安全是一种可复用的模型特性,而非永久绑定于原始预训练模型的属性。

英文摘要:

Safety pretraining has emerged as a promising paradigm for embedding safety deeply into a model during pretraining, yielding robustness to subsequent fine-tuning that conventional safety post-training often lacks. We refer to this safety acquired during model pretraining as native safety. Yet native safety is expensive to acquire, confined to the model in which it was pretrained, and often accompanied by lower general utility. In this work, we rethink the practical value of safety-pretrained models and introduce, for the first time, the native safety reuse problem: Can native safety be transferred from a specialized, potentially smaller, safety-pretrained "teacher" to standard-pretrained "students," enabling them to inherit its robustness while preserving their general utility? We show that native safety can "travel" through on-policy distillation. A standard-pretrained student generates responses to safety-pretraining prompts, while a small safety-pretrained teacher supervises the student's token-level predictions along its own generated trajectories; cross-tokenizer alignment further enables transfer across model families. The resulting students exhibit substantially greater safety robustness than their safety-post-trained counterparts while retaining higher general utility than the teacher: subsequent fine-tuning raises the average attack success rate (ASR) of the 1.7B student by only 5.00%, compared with 11.58% for safety post-training, and its average utility of 48.20% far exceeds the aligned teacher's 27.42%. Unlike conventional large-to-small knowledge distillation, our framework enables selective, small-to-large safety transfer: it reuses the robust safety expertise of a smaller pretrained teacher without inheriting its utility limitations. These findings establish native safety as a reusable model property rather than one permanently tied to the originally pretrained model.

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

↑