Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

An End-to-End Model for Logits-Based Large Language Models Watermarking

About

The rise of LLMs has increased concerns over source tracing and copyright protection for AIGC, highlighting the need for advanced detection technologies. Passive detection methods usually face high false positives, while active watermarking techniques using logits or sampling manipulation offer more effective protection. Existing LLM watermarking methods, though effective on unaltered content, suffer significant performance drops when the text is modified and could introduce biases that degrade LLM performance in downstream tasks. These methods fail to achieve an optimal tradeoff between text quality and robustness, particularly due to the lack of end-to-end optimization of the encoder and decoder. In this paper, we introduce a novel end-to-end logits perturbation method for watermarking LLM-generated text. By jointly optimization, our approach achieves a better balance between quality and robustness. To address non-differentiable operations in the end-to-end training pipeline, we introduce an online prompting technique that leverages the on-the-fly LLM as a differentiable surrogate. Our method achieves superior robustness, outperforming distortion-free methods by 37-39% under paraphrasing and 17.2% on average, while maintaining text quality on par with these distortion-free methods in terms of text perplexity and downstream tasks. Our method can be easily generalized to different LLMs. Code is available at https://github.com/KahimWong/E2E-LLM-Watermark.

Kahim Wong, Jicheng Zhou, Jiantao Zhou, Yain-Whar Si• 2025

Related benchmarks

TaskDatasetResultRank
Language ModelingLLaMA-2 13B
Perplexity (PPL)7.73
32
LLM WatermarkingC4
Perplexity7.73
18
Code GenerationHumanEval
Pass@134
12
Watermark DetectionLlama2-7B Copy-paste attack
F1 Score97.8
11
Machine TranslationNLLB-600M
BLEU31.062
8
Watermark DetectionLlama2-7B Paragraphing
F1 Score91.6
8
Watermark DetectionLlama2 Average 7B
F1 Score96.9
8
Watermark DetectionLlama2-7B Synonymous substitution
F1 Score98.5
8
Code GenerationStarcoder
pass@134
8
Watermark DetectionLlama2-7B Clean
F1 Score99.5
8
Showing 10 of 16 rows

Other info

Follow for update