k-SemStamp: A Clustering-Based Semantic Watermark for Detection of Machine-Generated Text

Abe Bohan Hou, Jingyu Zhang, Yichen Wang, Daniel Khashabi, Tianxing He
2/17/2024
cs.CLcs.CRcs.CY

No official code found. Best implementation: abehou/SemStamp (31 stars, last commit 2024-12-09).

Abstract

Recent watermarked generation algorithms inject detectable signatures during language generation to facilitate post-hoc detection. While token-level watermarks are vulnerable to paraphrase attacks, SemStamp (Hou et al., 2023) applies watermark on the semantic representation of sentences and demonstrates promising robustness. SemStamp employs locality-sensitive hashing (LSH) to partition the semantic space with arbitrary hyperplanes, which results in a suboptimal tradeoff between robustness and speed. We propose k-SemStamp, a simple yet effective enhancement of SemStamp, utilizing k-means clustering as an alternative of LSH to partition the embedding space with awareness of inherent semantic structure. Experimental results indicate that k-SemStamp saliently improves its robustness and sampling efficiency while preserving the generation quality, advancing a more effective tool for machine-generated text detection.

View on arXivView PDF

Code Implementations(1)

abehou/SemStampCommunity100%

Repo for SemStamp (NAACL2024) and k-SemStamp (ACL2024)

315PythonFeb 17, 20241 years ago

Similar Papers

Cite this paper

@article{hou2024ksemstamp,
  title  = {k-SemStamp: A Clustering-Based Semantic Watermark for Detection of Machine-Generated Text},
  author = {Abe Bohan Hou and Jingyu Zhang and Yichen Wang and Daniel Khashabi and Tianxing He},
  year   = {2024},
  eprint = {2402.11399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11399v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.11399.svg)](https://codeofpaper.com/paper/2402.11399)

Discussion