[论文解读] Provably Robust Multi-bit Watermarking for AI-generated Text
本文提出基于 ECC 的多比特水印方案,用于 LLM 生成文本,在有界编辑下具有可证明的鲁棒性,显示出高提取准确率和对攻击的鲁棒性。它还提供了理论鲁棒性界限与广泛的实验验证。
Large Language Models (LLMs) have demonstrated remarkable capabilities of generating texts resembling human language. However, they can be misused by criminals to create deceptive content, such as fake news and phishing emails, which raises ethical concerns. Watermarking is a key technique to address these concerns, which embeds a message (e.g., a bit string) into a text generated by an LLM. By embedding the user ID (represented as a bit string) into generated texts, we can trace generated texts to the user, known as content source tracing. The major limitation of existing watermarking techniques is that they achieve sub-optimal performance for content source tracing in real-world scenarios. The reason is that they cannot accurately or efficiently extract a long message from a generated text. We aim to address the limitations. In this work, we introduce a new watermarking method for LLM-generated text grounded in pseudo-random segment assignment. We also propose multiple techniques to further enhance the robustness of our watermarking algorithm. We conduct extensive experiments to evaluate our method. Our experimental results show that our method substantially outperforms existing baselines in both accuracy and robustness on benchmark datasets. For instance, when embedding a message of length 20 into a 200-token generated text, our method achieves a match rate of $97.6\%$, while the state-of-the-art work Yoo et al. only achieves $49.2\%$. Additionally, we prove that our watermark can tolerate edits within an edit distance of 17 on average for each paragraph under the same setting.
研究动机与目标
- 激励并解决LLM生成文本的滥用问题,通过水印实现检测和追踪。
- 设计同时具备正确性、鲁棒性和高效性的多比特水印方案。
- 引入一个基于 ECC 的嵌入/提取框架,在有界编辑下提供可证明的鲁棒性保障。
- 提供面向现实场景的鲁棒水印提取的实用流程和理论分析。
- 通过跨数据集和多种LLM的实验来验证该方法,并与基线方法进行比较。
提出的方法
- 通过先用 BCH ECC 对 K 进行编码得到编码信息 B,然后将二进制水印 K 嵌入到 LLM 生成的文本中。
- 在每个标记生成步骤,从最近的标记计算一个种子,并将词汇表分成两半以形成绿色/红色列表,并将对数几率偏向 B 中的位值,从而实现嵌入。
- 从一组码族中选取 BCH 码 (n,k,t) 以确保 k>=b 且 b/n >= R,在多种码可行时选择 t/n 最高的码。
- 在提取过程中,对各位置的标记分类投票进行计数以恢复 B,随后使用 BCH 解码器解码以恢复 K,丢弃 ECC 填充比特。
- 提供正式的鲁棒性分析:使用多项式模型界定在有界编辑距离下提取失败的概率,并定义 PD 及相关量。
- 给出嵌入算法(算法 1)和提取算法(算法 2),以及一个离线预处理流程以高效计算鲁棒性界限。
实验结果
研究问题
- RQ1是否能够在 LLM 输出中嵌入多比特水印,在文本编辑下同时具备高正确性和鲁棒性?
- RQ2与之前的零比特或短比特方案相比,加入纠错码是否能提高提取正确性和鲁棒性?
- RQ3在有界插入/删除/替换编辑下,基于 ECC 的 LLM 水印的理论鲁棒性界限是什么?
- RQ4在基准数据集和多种 LLM 上,基于 ECC 的水印在实际中的表现如何?
- RQ5该方法是否能支持如内容来源追踪等具有可证明保证的实际应用?
主要发现
- 基于 ECC 的方案在匹配率方面表现出色,例如在 200-token 文本中对 12-bit 水印的匹配率为 98.4%,高于基线的 85.6%。
- 在复制黏贴攻击插入 50 个标记的情形下,该方法保持 90.8% 的匹配率,而基线降至 58.4%。
- 该方法在文本质量方面保持良好,水印文本与未水印文本在困惑度分布上仅有边际差异。
- 本文提供了有界编辑的可证明鲁棒性界限,通过对多项式模型的概率分析得出。
- 在多个数据集(OpenGen、C4 News、Essays)和多种 LLM(LLaMA-2-7B、Vicuna-7B、Falcon-7B)上的广泛实验表明其优于现有的多比特水印方案。
- 本工作包括一个面向内容来源追踪的实用 ECC 基于流程,具备理论保障。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。