大语言模型水印的统计框架:枢轴量、检测效率与最优规则
A Statistical Framework of Watermarks for Large Language Models: Pivot, Detection Efficiency and Optimal Rules
AI总结:
本文提出一个基于枢轴统计量和极小极大优化的通用统计框架,用于分析LLM水印检测效率并推导最优检测规则,在两种代表性水印上验证了其竞争性和更高功效。
摘要:
自ChatGPT于2022年11月发布以来,将(近乎)不可察觉的统计信号嵌入大语言模型(LLMs)生成的文本中(也称为水印)已被用作一种原则性方法,用于可证明地检测LLM生成的文本与其人类书写对应文本。在本文中,我们引入一个通用且灵活的框架,用于推理水印的统计效率并设计强大的检测规则。受水印检测的假设检验表述启发,我们的框架首先选择文本的一个枢轴统计量和一个密钥——由LLM提供给验证者——以控制假阳性率(将人类书写文本误检为LLM生成的错误)。接下来,该框架允许通过获得渐近假阴性率(将LLM生成文本错误分类为人类书写文本的错误)的闭式表达式来评估水印检测规则的功效。我们的框架进一步将确定最优检测规则的问题归结为求解一个极小极大优化程序。我们将该框架应用于两种代表性水印——其中一种已在OpenAI内部实现——并获得若干发现,这些发现可有助于指导水印实现的实践。特别是,我们在该框架下为这些水印推导出最优检测规则。通过数值实验证明,这些理论推导的检测规则具有竞争力,并且有时比现有检测方法具有更高的功效。
英文摘要:
Since ChatGPT was introduced in November 2022, embedding (nearly) unnoticeable statistical signals into text generated by large language models (LLMs), also known as watermarking, has been used as a principled approach to provable detection of LLM-generated text from its human-written counterpart. In this paper, we introduce a general and flexible framework for reasoning about the statistical efficiency of watermarks and designing powerful detection rules. Inspired by the hypothesis testing formulation of watermark detection, our framework starts by selecting a pivotal statistic of the text and a secret key -- provided by the LLM to the verifier -- to enable controlling the false positive rate (the error of mistakenly detecting human-written text as LLM-generated). Next, this framework allows one to evaluate the power of watermark detection rules by obtaining a closed-form expression of the asymptotic false negative rate (the error of incorrectly classifying LLM-generated text as human-written). Our framework further reduces the problem of determining the optimal detection rule to solving a minimax optimization program. We apply this framework to two representative watermarks -- one of which has been internally implemented at OpenAI -- and obtain several findings that can be instrumental in guiding the practice of implementing watermarks. In particular, we derive optimal detection rules for these watermarks under our framework. These theoretically derived detection rules are demonstrated to be competitive and sometimes enjoy a higher power than existing detection approaches through numerical experiments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。