arXiv:2606.25442cs.CL2026-06

让大模型直接按安全政策自我调整,无需额外标注数据。

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

论文配图:PolicyAlign: Direct Policy-Based Safety Alignment for Large Language Models
图 1 · 摘自论文原文
  • 用政策生成违规指令,通过自蒸馏让模型内化安全行为。
  • 引入敏感度筛选,选最具改变效果的指令,提升训练效率。
  • 适合快速响应新安全政策,尤其医疗、法律等专业场景。

大型语言模型的安全对齐通常依赖高质量监督数据,如安全示范或偏好对。然而在实际部署中,新的安全要求常以自然语言政策形式出现,而对应监督数据可能成本高、延迟大或不可得,导致政策更新与数据驱动对齐方法之间存在脱节。为此,我们提出 PolicyAlign,一种直接基于安全政策对齐大模型的简单而有效框架。给定安全政策后,PolicyAlign 首先合成违反该政策的指令,再通过在策略上的自蒸馏使模型内化政策引导的行为。为提升训练稳定性和数据效率,进一步引入政策敏感性筛选机制,选择政策引发最大行为改变的指令。多个模型的实验表明,PolicyAlign 在保持低过度拒绝率的同时显著提升安全性,并保留通用能力。该方法还可泛化至医疗、法律和金融等安全场景,展现出作为可扩展、可维护的政策驱动对齐方案的巨大潜力。代码已开源:https://github.com/Qwen-Applications/PolicyAlign。

原文摘要 · Abstract (English)

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.

安全对齐政策驱动自蒸馏高效训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。