面向向 LLM 注入多比特信息的可编码水印技术研究
Towards Codable Watermarking for Injecting Multi-bits Information to LLMs
AI总结:
本文提出 LLM 可编码文本水印 CTWL,建立形式化定义与多维评估体系,并设计基于概率均衡词汇划分的 Balance-Marking 方法,以嵌入多比特自定义信息并保持文本质量。
摘要:
随着大型语言模型(LLM)生成的文本越来越流畅、逼真,识别文本来源以防止 LLM 被滥用的需求也日益增长。文本水印技术已被证明能够通过注入隐藏模式,可靠地区分一段文本是否由 LLM 生成。然而,我们认为现有 LLM 水印方法在编码方面效率较低,无法灵活满足多样化的信息编码需求(例如编码模型版本、生成时间、用户 ID 等)。在本工作中,我们首次对 LLM 可编码文本水印(Codable Text Watermarking for LLMs,CTWL)这一主题进行了系统研究,该技术使文本水印能够携带多比特的可定制信息。首先,我们研究了 LLM 水印技术的分类体系,并给出了 CTWL 的数学形式化定义。此外,我们还为 CTWL 提供了一套全面的评估体系:(1)水印成功率;(2)对各类破坏的鲁棒性;(3)有效载荷信息的编码率;(4)编码与解码效率;(5)对生成文本质量的影响。为满足这些彼此构成非 Pareto 改进关系的指标要求,我们沿用以词汇表划分为基础的最主流水印方向,设计了一种名为 Balance-Marking 的先进 CTWL 方法。该方法的核心思想是利用一个代理语言模型将词汇表划分为概率均衡的部分,从而有效保持水印文本的质量。我们的代码可在 https://github.com/lancopku/codable-watermarking-for-llm 获取。
英文摘要:
As large language models (LLMs) generate texts with increasing fluency and realism, there is a growing need to identify the source of texts to prevent the abuse of LLMs. Text watermarking techniques have proven reliable in distinguishing whether a text is generated by LLMs by injecting hidden patterns. However, we argue that existing LLM watermarking methods are encoding-inefficient and cannot flexibly meet the diverse information encoding needs (such as encoding model version, generation time, user id, etc.). In this work, we conduct the first systematic study on the topic of Codable Text Watermarking for LLMs (CTWL) that allows text watermarks to carry multi-bit customizable information. First of all, we study the taxonomy of LLM watermarking technologies and give a mathematical formulation for CTWL. Additionally, we provide a comprehensive evaluation system for CTWL: (1) watermarking success rate, (2) robustness against various corruptions, (3) coding rate of payload information, (4) encoding and decoding efficiency, (5) impacts on the quality of the generated text. To meet the requirements of these non-Pareto-improving metrics, we follow the most prominent vocabulary partition-based watermarking direction, and devise an advanced CTWL method named Balance-Marking. The core idea of our method is to use a proxy language model to split the vocabulary into probability-balanced parts, thereby effectively maintaining the quality of the watermarked text. Our code is available at https://github.com/lancopku/codable-watermarking-for-llm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。