SimKey:用于语言模型水印的语义感知密钥模块
SimKey: A Semantically Aware Key Module for Watermarking Language Models
AI总结:
本文提出SimKey模块,通过局部敏感哈希将水印密钥生成与上下文语义绑定,有效提升了语言模型水印对释义和翻译的鲁棒性,并防止有害内容被错误归因。
摘要:
大型语言模型(LLM)生成文本的快速传播使得区分真实人类写作与机器输出变得越来越困难。水印技术提供了一种有前景的解决方案:模型所有者可以在生成文本中嵌入不可感知的信号,以标记其来源。大多数主流方法使用伪随机密钥为LLM的下一个token采样提供种子,该密钥稍后可被恢复以将文本识别为机器生成,同时仅最小程度地改变模型的输出分布。然而,这些方法存在两个相关问题:(i) 水印对简单的表层编辑(如释义或重排序)很脆弱;(ii) 对手可以附加不相关的、潜在有害的文本,这些文本会继承水印,给模型所有者带来声誉损害的风险。为了解决这些问题,我们引入了SimKey,这是一种语义密钥模块,通过将密钥生成与先前上下文的含义绑定来增强水印的鲁棒性。SimKey在语义嵌入上使用局部敏感哈希,以确保释义文本产生相同的水印密钥,而不相关或语义发生偏移的文本则产生不同的密钥。与最先进的水印方案集成后,SimKey提高了水印对释义和翻译的鲁棒性,同时防止有害内容被错误归因,从而确立了语义感知密钥作为一种实用且可扩展的水印方向。
英文摘要:
The rapid spread of text generated by large language models (LLMs) makes it increasingly difficult to distinguish authentic human writing from machine output. Watermarking offers a promising solution: model owners can embed an imperceptible signal into generated text, marking its origin. Most leading approaches seed an LLM's next-token sampling with a pseudo-random key that can later be recovered to identify the text as machine-generated, while only minimally altering the model's output distribution. However, these methods suffer from two related issues: (i) watermarks are brittle to simple surface-level edits such as paraphrasing or reordering; and (ii) adversaries can append unrelated, potentially harmful text that inherits the watermark, risking reputational damage to model owners. To address these issues, we introduce SimKey, a semantic key module that strengthens watermark robustness by tying key generation to the meaning of prior context. SimKey uses locality-sensitive hashing over semantic embeddings to ensure that paraphrased text yields the same watermark key, while unrelated or semantically shifted text produces a different one. Integrated with state-of-the-art watermarking schemes, SimKey improves watermark robustness to paraphrasing and translation while preventing harmful content from false attribution, establishing semantic-aware keying as a practical and extensible watermarking direction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。