arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.13485cs.CL
收藏

一种基于熵的文本水印检测方法

An Entropy-based Text Watermarking Detection Method

The Chinese University of Hong Kong(香港中文大学);Tsinghua University(清华大学)

Yijian Lu, Aiwei Liu, Dianzhi Yu, Jingjing Li, Irwin King

AI总结:

本文提出基于熵的文本水印检测方法EWD,通过按词元熵自适应分配检测权重,无需训练即可提升低熵场景下的水印检测性能,并适用于不同熵分布文本。

摘要:

针对大语言模型(LLMs)的文本水印算法能够通过在文本中嵌入并检测隐藏特征来有效识别机器生成的文本。尽管当前的文本水印算法在大多数高熵场景下表现良好,但其在低熵场景下的性能仍有待提升。在本文中,我们认为在水印检测过程中应充分考虑词元熵的影响,即每个词元在水印检测中的权重应根据其熵进行定制,而不是像以往方法那样将所有词元的权重设为相同值。具体而言,我们提出了基于熵的文本水印检测方法(EWD),该方法在水印检测过程中赋予高熵词元更高的影响权重,从而更好地反映水印程度。此外,所提出的检测过程无需训练且完全自动化。实验表明,我们的EWD能够在低熵场景下取得更好的检测性能,并且我们的方法具有通用性,可应用于具有不同熵分布的文本。我们的代码和数据已公开(https://github.com/luyijian3/EWD)。此外,我们的算法可通过MarkLLM(https://github.com/THU-BPM/MarkLLM)访问。

英文摘要:

Text watermarking algorithms for large language models (LLMs) can effectively identify machine-generated texts by embedding and detecting hidden features in the text. Although the current text watermarking algorithms perform well in most high-entropy scenarios, its performance in low-entropy scenarios still needs to be improved. In this work, we opine that the influence of token entropy should be fully considered in the watermark detection process, $i.e.$, the weight of each token during watermark detection should be customized according to its entropy, rather than setting the weights of all tokens to the same value as in previous methods. Specifically, we propose \textbf{E}ntropy-based Text \textbf{W}atermarking \textbf{D}etection (\textbf{EWD}) that gives higher-entropy tokens higher influence weights during watermark detection, so as to better reflect the degree of watermarking. Furthermore, the proposed detection process is training-free and fully automated. From the experiments, we demonstrate that our EWD can achieve better detection performance in low-entropy scenarios, and our method is also general and can be applied to texts with different entropy distributions. Our code and data is available\footnote{\url{https://github.com/luyijian3/EWD}}. Additionally, our algorithm could be accessed through MarkLLM \cite{pan2024markllm}\footnote{\url{https://github.com/THU-BPM/MarkLLM}}.

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

↑