arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.06545cs.CRcs.LG
收藏

大语言模型的信号水印

Signal Watermark on Large Language Models

Texas Tech University(德克萨斯理工大学)

Zhenyu Xu, Victor S. Sheng

AI总结:

针对大语言模型生成文本的安全认证难题,提出基于预定义信号模式的水印嵌入方法,结合FFT实现检测,在多模型上保持高准确率,AUROC达0.97且抗攻击鲁棒性强。

摘要:

随着大语言模型(LLM)日益成熟,它们引发了包括假新闻制造、学术滥用在内的重大安全问题。大多数用于识别模型生成文本的检测方法受限于对困惑度和 burstiness 方差的依赖,且需要大量计算资源。本文提出一种水印方法,基于预定义的信号模式,在大语言模型生成文本的过程中将特定水印嵌入文本。该技术既能保证水印对人类不可见,又能维持模型生成文本的质量与语法完整性。我们利用大语言模型和快速傅里叶变换(FFT)进行词元概率计算与信号水印检测。将信号处理原理独特应用于大语言模型文本生成领域,可实现隐蔽且有效的水印嵌入,且不会损害生成文本的质量或连贯性。我们的方法已在多个大语言模型上得到实证验证,即使文本生成时的温度参数发生变化,也能始终保持高检测准确率。在区分人类撰写文本与含水印文本的实验中,该方法的AUROC得分达0.97,显著优于GPTZero等现有方法(后者得分为0.64)。该水印对多种攻击场景的抵御能力进一步证实了其鲁棒性,解决了模型生成文本认证中的重大挑战。

英文摘要:

As Large Language Models (LLMs) become increasingly sophisticated, they raise significant security concerns, including the creation of fake news and academic misuse. Most detectors for identifying model-generated text are limited by their reliance on variance in perplexity and burstiness, and they require substantial computational resources. In this paper, we proposed a watermarking method embedding a specific watermark into the text during its generation by LLMs, based on a pre-defined signal pattern. This technique not only ensures the watermark's invisibility to humans but also maintains the quality and grammatical integrity of model-generated text. We utilize LLMs and Fast Fourier Transform (FFT) for token probability computation and detection of the signal watermark. The unique application of signal processing principles within the realm of text generation by LLMs allows for subtle yet effective embedding of watermarks, which do not compromise the quality or coherence of the generated text. Our method has been empirically validated across multiple LLMs, consistently maintaining high detection accuracy, even with variations in temperature settings during text generation. In the experiment of distinguishing between human-written and watermarked text, our method achieved an AUROC score of 0.97, significantly outperforming existing methods like GPTZero, which scored 0.64. The watermark's resilience to various attacking scenarios further confirms its robustness, addressing significant challenges in model-generated text authentication.

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

↑