重水与简单水:用于低熵下一个词预测的无失真LLM水印
HeavyWater and SimplexWater: Distortion-Free LLM Watermarks for Low-Entropy Next-Token Predictions
AI总结:
本文提出HeavyWater和SimplexWater两种无失真LLM水印方法,适用于低熵生成任务,实现高检测准确性和低文本失真。
摘要:
大型语言模型(LLM)水印能够认证文本来源,遏制机器生成文本的滥用,并促进对人工智能系统的信任。当前的水印通过改变LLM输出的下一个词预测来运作。更新(即水印后的)预测依赖于随机侧信息,例如通过哈希先前生成的标记生成。LLM水印在低熵生成任务——如编码——中尤其具有挑战性,因为在这些任务中下一个词预测几乎是确定性的。在本文中,我们提出了一种用于水印设计的优化框架。我们的目标是了解如何最有效地利用随机侧信息,以最大化水印检测的可能性并最小化生成文本的失真。我们的分析指导设计了两种新的水印:HeavyWater和SimplexWater。这两种水印都是可调节的,能够优雅地在检测准确性和文本失真之间进行权衡。它们可以应用于任何LLM,并且对侧信息生成是无关的。我们通过几个基准测试检查HeavyWater和SimplexWater的性能,证明它们能够在不显著损害文本生成质量的情况下实现高水印检测准确性,特别是在低熵领域。我们的理论分析还揭示了LLM水印与编码理论之间令人惊讶的新联系。代码实现可以在https://github.com/DorTsur/HeavyWater_SimplexWater找到。
英文摘要:
Large language model (LLM) watermarks enable authentication of text provenance, curb misuse of machine-generated text, and promote trust in AI systems. Current watermarks operate by changing the next-token predictions output by an LLM. The updated (i.e., watermarked) predictions depend on random side information produced, for example, by hashing previously generated tokens. LLM watermarking is particularly challenging in low-entropy generation tasks -- such as coding -- where next-token predictions are near-deterministic. In this paper, we propose an optimization framework for watermark design. Our goal is to understand how to most effectively use random side information in order to maximize the likelihood of watermark detection and minimize the distortion of generated text. Our analysis informs the design of two new watermarks: HeavyWater and SimplexWater. Both watermarks are tunable, gracefully trading-off between detection accuracy and text distortion. They can also be applied to any LLM and are agnostic to side information generation. We examine the performance of HeavyWater and SimplexWater through several benchmarks, demonstrating that they can achieve high watermark detection accuracy with minimal compromise of text generation quality, particularly in the low-entropy regime. Our theoretical analysis also reveals surprising new connections between LLM watermarking and coding theory. The code implementation can be found in https://github.com/DorTsur/HeavyWater_SimplexWater
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。