arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.02890cs.CRcs.ITcs.LGmath.IT
收藏

LLM水印的理论框架:一种分布自适应方法

Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach

HKUST (GZ)(香港科技大学(广州));UC Santa Barbara(加州大学圣芭芭拉分校);Tongji University(同济大学);University of Ottawa(渥太华大学)

Haiyun He, Yepeng Liu, Ziqiao Wang, Yongyi Mao, Yuheng Bu

AI总结:

本文提出统一理论框架联合优化LLM水印方案与检测器,推导闭式最优解,揭示分布自适应必要性,并据此提出无失真算法DAWA,在Llama2-13B和Mistral-8×7B上验证了超低FPR下的有效性。

摘要:

水印已成为区分AI生成文本与人类创作文本的关键方法。当前的水印方法往往缺乏形式化的最优性保证,或者将方案与检测器设计分开处理。在本文中,我们为大型语言模型(LLM)水印引入了一个新颖的统一理论框架,该框架联合优化水印方案和检测器。我们的方法旨在最大化检测性能,同时保持对最坏情况假阳性率(FPR)和文本质量失真的控制。我们推导了这种联合设计的闭式最优解,并刻画了水印可检测性与失真之间的基本权衡。值得注意的是,我们揭示了最优水印方案应适应LLM的生成分布。基于我们的理论见解,我们提出了一种无失真、分布自适应的水印算法(DAWA),该算法利用代理模型实现模型无关性和高效性。在Llama2-13B和Mistral-8×7B模型上的实验证实了我们方法的有效性,尤其是在超低FPR下。我们的代码可在https://github.com/yepengliu/DAWA获取。

英文摘要:

Watermarking has emerged as a crucial method to distinguish AI-generated text from human-created text. Current watermarking approaches often lack formal optimality guarantees or address the scheme and detector design separately. In this paper, we introduce a novel, unified theoretical framework for watermarking Large Language Models (LLMs) that jointly optimizes both the watermarking scheme and detector. Our approach aims to maximize detection performance while maintaining control over the worst-case false positive rate (FPR) and distortion on text quality. We derive closed-form optimal solutions for this joint design and characterize the fundamental trade-off between watermark detectability and distortion. Notably, we reveal that the optimal watermarking schemes should be adaptive to the LLM's generative distribution. Building on our theoretical insights, we propose a distortion-free, distribution-adaptive watermarking algorithm (DAWA) that leverages a surrogate model for model-agnosticism and efficiency. Experiments on Llama2-13B and Mistral-8$\times$7B models confirm the effectiveness of our approach, particularly at ultra-low FPRs. Our code is available at https://github.com/yepengliu/DAWA.

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

↑