English

LLM Safety Alignment is Divergence Estimation in Disguise

Machine Learning 2025-10-22 v3 Artificial Intelligence Computers and Society Machine Learning

Abstract

We present a theoretical framework showing that popular LLM alignment methods, including RLHF and its variants, can be understood as divergence estimators between aligned (safe or preferred) and unaligned (harmful or less preferred) distributions. This perspective explains the emergence of separation in the latent space between safe and harmful prompts after alignment. As an application of our general divergence framework, we propose KLDO, a novel KL divergence-based alignment method, and empirically validate its effectiveness. We further show that using compliance-refusal datasets, rather than standard preference-based datasets, leads to stronger separation and improved safety alignment. Finally, to quantify the separation effect, we propose a distance-based metric in the prompt representation space, which also acts as a statistically significant indicator for model safety.

Keywords

Cite

@article{arxiv.2502.00657,
  title  = {LLM Safety Alignment is Divergence Estimation in Disguise},
  author = {Rajdeep Haldar and Ziyi Wang and Qifan Song and Guang Lin and Yue Xing},
  journal= {arXiv preprint arXiv:2502.00657},
  year   = {2025}
}

Comments

Accepted to NeurIPS 2025

R2 v1 2026-06-28T21:29:19.849Z