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

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

TL;DR

PolicyAlign is a novel framework that directly aligns Large Language Models (LLMs) with natural-language safety policies, bypassing the need for slow and expensive human data annotation. By combining policy-conditioned data generation, a curriculum-based filtering mechanism, and on-policy self-distillation, it rapidly adapts models to new safety guidelines while maintaining high helpfulness and general capabilities.

What Problem Does This Paper Address?

Standard safety alignment for LLMs typically relies on Supervised Fine-Tuning (SFT) or Reinforcement Learning from Human Feedback (RLHF). These methods require massive, high-quality datasets of safe demonstrations or preference pairs. However, real-world safety requirements change rapidly and are typically published as text documents (e.g., new AI regulations, corporate usage guidelines).

Converting these text policies into curated datasets introduces a massive "timeliness gap" and high operational costs. Furthermore, training models heavily on static safety datasets often leads to an "alignment tax"—a degradation in the model's general reasoning and knowledge capabilities—or causes "over-refusal," where the model overconservatively rejects completely benign prompts that superficially resemble unsafe topics.

Methods

The authors introduce PolicyAlign, a three-stage framework designed to internalize safety policies directly into a model's parameters without human annotation:

  1. Policy-Conditioned Data Generation: A frontier LLM is prompted with the target safety policy to automatically synthesize a diverse set of potentially policy-violating (harmful) instructions.
  2. Policy-Sensitive Filtering (PSF): To handle the uneven quality of synthetic data, PSF scores each generated instruction based on how much the policy actually changes the model's behavior. It measures the difference in log-likelihood between a policy-conditioned teacher model and the default student model. Training focuses only on the top-$k$ instructions that induce the largest behavioral shift, acting as a form of curriculum learning.
  3. On-Policy Self-Distillation: The student model generates responses to these filtered instructions. The framework then minimizes the token-level reverse KL divergence between the student's distribution and the policy-conditioned teacher's distribution. Using reverse KL encourages the model to focus on high-confidence safe behaviors and strictly avoid unsafe regions.
Overview of the PolicyAlign framework, showing data generation, filtering, and distillation stages.

Datasets

The authors evaluated PolicyAlign across a comprehensive suite of benchmarks:

  • General Safety: StrongREJECT and AdvBench (for harmful requests); WildJailbreak and Fortress (for adversarial jailbreak robustness).
  • Over-refusal: XSTest (to check if the model unnecessarily refuses benign prompts).
  • General Capabilities: MMLU-Pro (knowledge), GPQA-Diamond (scientific reasoning), and MATH500 (mathematics).
  • Domain-Specific Safety & Capabilities: Evaluated on specialized subsets for Medicine (MedSafetyBench, CARES, MedQA, MedMCQA), Law (GUARDSET-X-Law, TRIDENT-Law, LEXam), and Finance (GUARDSET-X-Finance, TRIDENT-Finance, FinanceBench).

Key Insights and Ideas

  • Direct Policy Internalization: Instead of trying to fit a massive collection of static input-output pairs, teaching a model to internalize the intent of a policy document allows for highly targeted adaptation, significantly reducing the alignment tax.
  • The Power of Policy Sensitivity: Not all training data is created equal. Filtering data based on where the model experiences the largest behavioral shift ensures the training budget is spent exactly where the model is currently deficient, maximizing data efficiency.
  • Reverse KL for Safety: While forward KL forces a model to capture all possible safe response styles (which can dilute its capabilities), reverse KL strictly penalizes the model for assigning probability to unsafe or policy-violating behaviors, making it ideal for safety constraints.

Key Results

  • Superior Safety Frontier: Across multiple model architectures (LLaMA-3.2-3B, Qwen2.5-7B/14B, Qwen3-4B), PolicyAlign achieved a superior safety-helpfulness trade-off compared to baselines like SFT, In-Context Learning (ICL), and RL-based methods (AlphaAlign, NSPO).
Comparison of the safety-helpfulness trade-off between PolicyAlign and existing paradigms.
  • Zeroing Out Harm: PolicyAlign reduced the Attack Success Rate (ASR) on AdvBench to 0% across all tested backbones.
  • Mitigating Over-Refusal: On Qwen2.5-7B-Instruct, while standard SFT dropped the XSTest compliance rate from 94.4% to 81.6%, PolicyAlign maintained a high compliance rate of 88.8%, showing it makes more nuanced decisions rather than blindly refusing queries.
  • Domain Generalization: In specialized fields like law and finance, PolicyAlign consistently achieved the lowest harmfulness scores while perfectly preserving domain-specific capabilities (matching the base model's accuracy on benchmarks like FinanceBench and LEXam).

Limitations and Future Work

  • Single-Turn and Text-Only: The current evaluation is restricted to single-turn text interactions. Future work needs to extend PolicyAlign to multi-turn conversational jailbreaks and multimodal (image/text) inputs.
  • Policy Complexity: The framework assumes that policies can be clearly formatted into system prompts. Real-world legal or corporate policies are often long, ambiguous, or contradictory, which might require an explicit policy decomposition or reasoning step before distillation.
  • Continual Alignment: As guidelines evolve, managing policy versioning and resolving conflicts between overlapping rules remains an open challenge.

Summary updated

BibTeX
@misc{wu2026policyalign,
  author = {Chang Wu and Junfeng Fang and Houcheng Jiang and Kai Tang and Pengyu Cheng and Xiaoxi Jiang and Guanjun Jiang and Xiang Wang},
  title = {{PolicyAlign: Direct Policy-Based Safety Alignment for Large Language Models}},
  year = {2026},
  eprint = {2606.25442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.25442},
}
Figure