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

通过词重要性评分提高水印大语言模型的生成质量

Improving the Generation Quality of Watermarked Large Language Models via Word Importance Scoring

UMich(密歇根大学);UCLA(加州大学洛杉矶分校)

Yuhang Li, Yihan Wang, Zhouxing Shi, Cho-Jui Hsieh

AI总结:

本文提出通过词重要性评分的水印方法,在生成时保护关键令牌不受水印影响,在保持检测率的同时提升水印文本质量。

摘要:

大语言模型(LLMs)的强通用能力,若不受限制地对恶意用户开放,会带来潜在的伦理风险。令牌级水印通过使用以其前缀令牌为种子的私有随机数生成器改变令牌概率分布,在生成的文本中插入水印。然而,这种水印算法在生成过程中会改变逻辑值,如果它选择提升与输入相关性较低的令牌,可能导致文本质量下降。在这项工作中,我们提出通过重要性评分水印(WIS)来提高水印语言模型生成文本的质量。在每个生成步骤中,我们估计待生成令牌的重要性,如果该令牌对输出的语义正确性至关重要,则防止其受到水印的影响。我们进一步提出了三种预测重要性评分的方法,包括一种基于扰动的方法和两种基于模型的方法。实证实验表明,我们的方法可以在检测率相当的情况下生成质量更好的文本。

英文摘要:

The strong general capabilities of Large Language Models (LLMs) bring potential ethical risks if they are unrestrictedly accessible to malicious users. Token-level watermarking inserts watermarks in the generated texts by altering the token probability distributions with a private random number generator seeded by its prefix tokens. However, this watermarking algorithm alters the logits during generation, which can lead to a downgraded text quality if it chooses to promote tokens that are less relevant given the input. In this work, we propose to improve the quality of texts generated by a watermarked language model by Watermarking with Importance Scoring (WIS). At each generation step, we estimate the importance of the token to generate, and prevent it from being impacted by watermarking if it is important for the semantic correctness of the output. We further propose three methods to predict importance scoring, including a perturbation-based method and two model-based methods. Empirical experiments show that our method can generate texts with better quality with comparable level of detection rate.

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

↑