Revealing Weaknesses in Text Watermarking Through Self-Information Rewrite Attacks

Yixin Cheng, Hongcheng Guo, Yangming Li, Leonid Sigal
5/8/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: Allencheng97/Self-information-Rewrite-Attack (4 stars, last commit 2025-08-09).

Abstract

Text watermarking aims to subtly embed statistical signals into text by controlling the Large Language Model (LLM)'s sampling process, enabling watermark detectors to verify that the output was generated by the specified model. The robustness of these watermarking algorithms has become a key factor in evaluating their effectiveness. Current text watermarking algorithms embed watermarks in high-entropy tokens to ensure text quality. In this paper, we reveal that this seemingly benign design can be exploited by attackers, posing a significant risk to the robustness of the watermark. We introduce a generic efficient paraphrasing attack, the Self-Information Rewrite Attack (SIRA), which leverages the vulnerability by calculating the self-information of each token to identify potential pattern tokens and perform targeted attack. Our work exposes a widely prevalent vulnerability in current watermarking algorithms. The experimental results show SIRA achieves nearly 100% attack success rates on seven recent watermarking methods with only 0.88 USD per million tokens cost. Our approach does not require any access to the watermark algorithms or the watermarked LLM and can seamlessly transfer to any LLM as the attack model, even mobile-level models. Our findings highlight the urgent need for more robust watermarking.

View on arXivView PDF

Code Implementations(1)

42Shell, CythonMay 7, 20251 years ago

Cite this paper

@article{cheng2025revealing,
  title  = {Revealing Weaknesses in Text Watermarking Through Self-Information Rewrite Attacks},
  author = {Yixin Cheng and Hongcheng Guo and Yangming Li and Leonid Sigal},
  year   = {2025},
  eprint = {2505.05190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05190v2},
  journal = {ICML 2025 2025}
}

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/2505.05190.svg)](https://codeofpaper.com/paper/2505.05190)

Discussion