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

基于指南的安全推理

Safety Reasoning with Guidelines

Tsinghua University(清华大学);HKUST(香港科技大学);Penn State University(宾夕法尼亚州立大学)

Haoyu Wang, Zeyu Qin, Li Shen, Xueqian Wang, Dacheng Tao, Minhao Cheng

AI总结:

针对Refusal Training在OOD越狱攻击下泛化性差的问题,提出基于指南合成推理监督以训练模型执行安全推理,从而引出潜在安全知识,显著提升模型抵御OOD攻击的泛化能力。

摘要:

训练安全的LLMs仍是一个关键挑战。最广泛使用的方法,Refusal Training (RT),难以泛化以抵御各种Out-of-Distribution (OOD)越狱攻击。尽管已提出各种先进方法来解决此问题,但我们转而质疑OOD攻击是否本质上超越了vanilla RT的能力。使用Best-of-N (BoN)的评估显示,随着N的增加,安全性显著提升,表明模型拥有足够的潜在安全知识,但RT在OOD场景下未能一致地将其引出。进一步的领域适应分析显示,直接RT导致依赖表面捷径,产生不可泛化的表示映射。受此启发,我们提出训练模型对每个查询执行安全推理。具体而言,我们合成与反映安全知识多样视角的特定指南对齐的推理监督。这鼓励模型进行更深度的推理,明确引出并利用每个查询的潜在安全知识。大量实验表明,我们的方法显著提升了模型抵御OOD攻击的泛化能力。

英文摘要:

Training safe LLMs remains a critical challenge. The most widely used method, Refusal Training (RT), struggles to generalize against various Out-of-Distribution (OOD) jailbreaking attacks. Although various advanced methods have been proposed to address this issue, we instead question whether OOD attacks inherently surpass the capability of vanilla RT. Evaluations using Best-of-N (BoN) reveal significant safety improvements as N increases, indicating models possess adequate latent safety knowledge but RT fails to consistently elicit it under OOD scenarios. Further domain adaptation analysis reveals that direct RT causes reliance on superficial shortcuts, resulting in non-generalizable representation mappings. Inspired by our findings, we propose training model to perform safety reasoning for each query. Specifically, we synthesize reasoning supervision aligned with specified guidelines that reflect diverse perspectives on safety knowledge. This encourages model to engage in deeper reasoning, explicitly eliciting and utilizing latent safety knowledge for each query. Extensive experiments show that our method significantly improves model generalization against OOD attacks.

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

↑