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

An Unforgeable Publicly Verifiable Watermark for Large Language Models

About

Recently, text watermarking algorithms for large language models (LLMs) have been proposed to mitigate the potential harms of text generated by LLMs, including fake news and copyright issues. However, current watermark detection algorithms require the secret key used in the watermark generation process, making them susceptible to security breaches and counterfeiting during public detection. To address this limitation, we propose an unforgeable publicly verifiable watermark algorithm named UPV that uses two different neural networks for watermark generation and detection, instead of using the same key at both stages. Meanwhile, the token embedding parameters are shared between the generation and detection networks, which makes the detection network achieve a high accuracy very efficiently. Experiments demonstrate that our algorithm attains high detection accuracy and computational efficiency through neural networks. Subsequent analysis confirms the high complexity involved in forging the watermark from the detection network. Our code is available at \href{https://github.com/THU-BPM/unforgeable_watermark}{https://github.com/THU-BPM/unforgeable\_watermark}. Additionally, our algorithm could also be accessed through MarkLLM \citep{pan2024markllm} \footnote{https://github.com/THU-BPM/MarkLLM}.

Aiwei Liu, Leyi Pan, Xuming Hu, Shu'ang Li, Lijie Wen, Irwin King, Philip S. Yu• 2023

Related benchmarks

TaskDatasetResultRank
Watermark DetectionBookSum
TP @ FP=1%81.56
154
Mathematical ReasoningGSM8K 4-shot
Score78.95
44
Watermark DetectionC4 OPT-6.7B
ROC-AUC99.8
26
Watermark DetectionC4
Detection Accuracy (No Attack)100
24
Watermarking DetectionBookSum (test)
Detection Rate (No Attack)100
24
Watermark DetectionC4
TPR @ 1% FPR (No Attack)99.7
20
Large Language Model WatermarkingBookSum (test)
Average Rank5.42
20
Text Quality AssessmentC4
Average Rank5.64
20
Code GenerationHumanEval 0-shot
Pass@150
16
Watermark Detection RobustnessC4
TP@FP=1%59.2
12
Showing 10 of 15 rows

Other info

Follow for update