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

LLM安全对齐本质上是伪装的散度估计

LLM Safety Alignment is Divergence Estimation in Disguise

Department of Statistics, Purdue University(普渡大学统计系);Department of Statistics, Michigan State University(密歇根州立大学统计系)

Rajdeep Haldar, Ziyi Wang, Qifan Song, Guang Lin, Yue Xing

AI总结:

本文将LLM安全对齐解释为分布散度估计,提出KLDO方法和基于距离的安全度量,并证明服从—拒绝数据可增强安全与有害提示的潜在空间分离。

摘要:

我们提出一个理论框架,表明包括RLHF及其变体在内的流行LLM对齐方法,可被理解为对齐(安全或偏好)分布与未对齐(有害或较不偏好)分布之间的散度估计器。这一视角解释了对齐后安全提示与有害提示在潜在空间中出现分离的原因。作为通用散度框架的应用,我们提出KLDO,这是一种基于KL散度的新型对齐方法,并通过实验验证其有效性。我们进一步表明,使用服从—拒绝数据集而非标准的基于偏好的数据集,会带来更强的分离和更好的安全对齐。最后,为量化分离效应,我们在提示表示空间提出一种基于距离的度量,该度量也可作为模型安全性的统计显著指标。

英文摘要:

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.

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

↑