paper-with-me

홈 › Papers

An Entropy-based Text Watermarking Detection Method

2024-03-20 · Yijian Lu, Aiwei Liu, Dianzhi Yu, Jingjing Li, Irwin King

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}}.

📄 PDF Abstract BibTeX arXiv:2403.13485

Code (2)

luyijian3/ewd 공식 구현 pytorch
thu-bpm/markllm 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Invisible Entropy: Towards Safe and Efficient Low-Entropy LLM Watermarking

2025-05-20 · Tianle Gu, Zongqi Wang, Kexin Huang, Yuanqi Yao 외

Logit-based LLM watermarking traces and verifies AI-generated content by maintaining green and red token lists and increasing the likelihood of green tokens during generation. However, it fails in low-entropy scenarios, …

HumanEvalmbpp

Entropy-Guided Watermarking for LLMs: A Test-Time Framework for Robust and Traceable Text Generation

2025-04-16 · Shizhan Cai, Liang Ding, DaCheng Tao

The rapid development of Large Language Models (LLMs) has intensified concerns about content traceability and potential misuse. Existing watermarking schemes for sampled text often face trade-offs between maintaining tex…

GSM8KMathText Generation

CATMark: A Context-Aware Thresholding Framework for Robust Cross-Task Watermarking in Large Language Models

2025-09-27 · Yu Zhang, Shuliang Liu, Xu Yang, Xuming Hu arxiv

Watermarking algorithms for Large Language Models (LLMs) effectively identify machine-generated content by embedding and detecting hidden statistical features in text. However, such embedding leads to a decline in text q…

Text Generation

Who Wrote this Code? Watermarking for Code Generation

2023-05-24 · Taehyun Lee, Seokhee Hong, Jaewoo Ahn, Ilgee Hong 외

Since the remarkable generation performance of large language models raised ethical and legal concerns, approaches to detect machine-generated text by embedding watermarks are being developed. However, we discover that t…

Code GenerationText Detection

Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Texts

2025-09-09 · Rochana Prih Hastuti, Rian Adam Rajagede, Mansour Al Ghanim, Mengxin Zheng 외 arxiv

As large language models (LLMs) are adapted to sensitive domains such as medicine, their fluency raises safety risks, particularly regarding provenance and accountability. Watermarking embeds detectable patterns to mitig…