arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.25442cs.CL
收藏

PolicyAlign: 大型语言模型的直接基于策略的安全对齐

PolicyAlign: Direct Policy-Based Safety Alignment for Large Language Models

Qwen Large Model Application Team, Alibaba(阿里巴巴通义千问大模型应用团队);National University of Singapore(新加坡国立大学);Zhongguancun Academy(中关村学院)

Chang Wu, Junfeng Fang, Houcheng Jiang, Kai Tang, Pengyu Cheng, Xiaoxi Jiang, Guanjun Jiang, Xiang Wang

AI总结:

提出PolicyAlign框架,通过合成违规指令和策略敏感过滤,直接根据自然语言安全策略对齐LLM,提升安全性并保持低过度拒绝和通用能力。

摘要:

大型语言模型(LLM)的安全对齐通常依赖于高质量的监督数据,例如安全演示或偏好对。然而,在实际部署中,新兴的安全需求通常以自然语言策略的形式指定,而相应的监督数据可能成本高昂、延迟或不可用。这造成了快速发展的安全策略与传统数据驱动对齐方法之间的不匹配。为了解决这个问题,我们提出了PolicyAlign,一个简单而有效的框架,用于直接根据安全策略对齐LLM。给定一个安全策略,PolicyAlign首先合成违反策略的指令,然后执行策略上的自蒸馏以内化策略引导的行为。为了提高训练稳定性和数据效率,我们进一步引入了策略敏感过滤,该过滤选择策略引起最大行为变化的指令。跨多个模型的实验表明,PolicyAlign在保持低过度拒绝和保留通用能力的同时,持续提高了安全性。PolicyAlign还泛化到医疗、法律和金融安全场景,突显了其作为可扩展和可维护的基于策略的LLM安全对齐方法的潜力。代码已在此https URL发布。

英文摘要:

Safety alignment of large language models (LLMs) typically depends on high-quality supervision data, such as safe demonstrations or preference pairs. However, in real-world deployment, emerging safety requirements are often specified as natural-language policies, while corresponding supervision data may be costly, delayed, or unavailable. This creates a mismatch between rapidly evolving safety policies and conventional data-driven alignment methods. To address this, we propose PolicyAlign, a simple yet effective framework for directly aligning LLMs with safety policies. Given a safety policy, PolicyAlign first synthesizes policy-violating instructions and then performs on-policy self-distillation to internalize policy-guided behavior. To improve training stability and data efficiency, we further introduce Policy-Sensitive Filtering, which selects instructions where the policy induces the largest behavioral shift. Experiments across multiple models show that PolicyAlign consistently improves safety while maintaining low over-refusal and preserving general capabilities. PolicyAlign also generalizes to medical, legal, and financial safety scenarios, highlighting its potential as a scalable and maintainable approach to policy-based LLM safety alignment. The code is released at https://github.com/Qwen-Applications/PolicyAlign.

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

↑