arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.13941cs.CRcs.AIcs.CLcs.LG
收藏

GaussMark:一种实用的语言模型结构化水印方法

GaussMark: A Practical Approach for Structural Watermarking of Language Models

Microsoft Research NYC(微软研究院纽约市分部);MIT(麻省理工学院);Columbia University(哥伦比亚大学)

Adam Block, Ayush Sekhari, Alexander Rakhlin

AI总结:

提出GaussMark,一种基于高斯独立性检验的结构化水印方法,通过向LLM权重添加噪声实现统计可检测的水印,不增加延迟且保持模型质量。

摘要:

大型语言模型(LLM)的最新进展显著提升了自然语言处理任务的能力,但其生成接近人类水平文本的能力,在需要识别给定文本是否由人类生成的场景中,引发了重大的伦理和操作问题。因此,近期研究聚焦于开发对LLM生成文本进行水印的技术,即引入一种几乎不可察觉的信号,使持有密钥的提供者能够判断给定文本是否由其模型生成。当前的水印技术常因生成延迟、检测时间、文本质量下降或鲁棒性等问题而缺乏实用性。许多缺点源于对令牌级水印的关注,忽略了文本的内在结构。在本工作中,我们提出了一种新方案GaussMark,其实现简单高效,具有正式的有效性统计保证,且不增加生成延迟,并将水印嵌入模型权重本身,提供结构化水印。我们的方法基于高斯独立性检验,并受近期经验观察启发:对LLM权重进行轻微加性扰动可产生质量相同(甚至更优)的模型。我们证明,通过向给定LLM的权重添加少量高斯噪声,可以以统计可检测的方式对模型进行水印,持有密钥的提供者能够检测到。我们提供了程序有效性和功效的正式统计界限。通过大量实验,我们证明GaussMark可靠、高效,对插入、删除、替换和往返翻译等破坏相对鲁棒,且基本不损失模型质量即可实例化。

英文摘要:

Recent advances in Large Language Models (LLMs) have led to significant improvements in natural language processing tasks, but their ability to generate human-quality text raises significant ethical and operational concerns in settings where it is important to recognize whether or not a given text was generated by a human. Thus, recent work has focused on developing techniques for watermarking LLM-generated text, i.e., introducing an almost imperceptible signal that allows a provider equipped with a secret key to determine if given text was generated by their model. Current watermarking techniques are often not practical due to concerns with generation latency, detection time, degradation in text quality, or robustness. Many of these drawbacks come from the focus on token-level watermarking, which ignores the inherent structure of text. In this work, we introduce a new scheme, GaussMark, that is simple and efficient to implement, has formal statistical guarantees on its efficacy, comes at no cost in generation latency, and embeds the watermark into the weights of the model itself, providing a structural watermark. Our approach is based on Gaussian independence testing and is motivated by recent empirical observations that minor additive corruptions to LLM weights can result in models of identical (or even improved) quality. We show that by adding a small amount of Gaussian noise to the weights of a given LLM, we can watermark the model in a way that is statistically detectable by a provider who retains the secret key. We provide formal statistical bounds on the validity and power of our procedure. Through an extensive suite of experiments, we demonstrate that GaussMark is reliable, efficient, and relatively robust to corruptions such as insertions, deletions, substitutions, and roundtrip translations and can be instantiated with essentially no loss in model quality.

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

↑