arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.04462cs.CLcs.CRcs.LG
收藏

水印会损害语言模型的对齐:分析与缓解

Watermarking Degrades Alignment in Language Models: Analysis and Mitigation

New Jersey Institute of Technology(新泽西理工学院)

Apurv Verma, NhatHai Phan, Shubhendu Trivedi

AI总结:

研究发现水印影响语言模型对齐,提出Alignment Resampling方法恢复对齐性能。

摘要:

水印已成为追踪语言模型输出的实用工具,但其在推理时间修改token概率,这些概率是通过对齐训练精心调整的。这产生了一种张力:水印引起的偏移如何与旨在使模型安全和有用的程序相互作用?在多个现代模型和两种代表性水印方案上的实验表明,水印会引起非平凡、有模式但模型特定的对齐偏移。我们观察到两种失败模式:守护者衰减,其中模型变得更加有用但更不安全,以及守护者放大,其中拒绝变得过于保守。即使在控制了困惑度退化后,这些影响仍然存在,指向的是对齐特定的扭曲,而不是仅仅质量损失。我们通过Alignment Resampling(AR),一种采样多个水印输出并根据外部奖励模型选择最对齐的响应的程序来解决这个问题。利用标准的高斯随机变量的期望最大值结果,我们推导出一个理论下界,表明对齐收益随着样本量的增长呈次对数增长。在实践中,采样最少两个到四个候选者在诚实、安全和有用性方面几乎恢复了未水印的对齐性能,而不会影响水印检测。这是首次对水印-对齐相互作用的实证研究;它表明一个简单的推理时间修复可以恢复对齐。

英文摘要:

Watermarking has become a practical tool for tracing language model outputs, but it modifies token probabilities at inference time, which were carefully tuned by alignment training. This creates a tension: how do watermark-induced shifts interact with the procedures intended to make models safe and useful? Experiments on several contemporary models and two representative watermarking schemes reveal that watermarking induces a nontrivial, patterned yet model-specific shift in alignment. We see two failure modes: guard attenuation, where models become more helpful but less safe, and guard amplification, where refusals become overly conservative. These effects persist even after controlling for perplexity degradation, pointing to alignment-specific distortions, not just quality loss. We address this with Alignment Resampling (AR), a procedure that samples multiple watermarked outputs and selects the most aligned response according to an external reward model. Using standard results on the expected maximum of Gaussian random variables, we derive a theoretical lower bound showing that alignment gains grow sublogarithmically with sample size. In practice, sampling as few as two to four candidates largely restores unwatermarked alignment performance in truthfulness, safety, and helpfulness, without hurting watermark detection. This is the first empirical study of watermarking-alignment interactions; it shows that a simple inference-time fix can recover alignment.

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

↑