TripPattern: A Pattern-based Text Watermarking Method for Large Language Models

Sangjun Moon, Dasom Choi, Jingun Kwon, Hidetaka Kamigaito, Taro Watanabe +1 more
9/11/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Text watermarking techniques have gained significant attention for identifying machine-generated text and mitigating risks from large language models (LLMs). Existing methods typically divide an LLM's vocabulary into green and red tokens, but encouraging generation toward green tokens can reduce text quality and naturalness.

Show full abstract

To address this, we propose TripPattern, a watermarking framework that formulates text watermarking as a pattern-based matching task using three vocabulary partitions. TripPattern divides the vocabulary into one neutral group and two pattern groups. During generation, the model alternates token selection between the two pattern groups to embed detectable patterns, while neutral tokens are selected independently to improve flexibility and preserve naturalness. For detection, TripPattern uses pattern-based statistical tests that provide interpretable p-values by measuring how often adjacent tokens alternate between the pattern groups. Theoretical analysis and empirical evaluations on four multilingual datasets show that TripPattern maintains LLM generation quality while achieving robust watermark detectability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{moon2026trippattern,
  title  = {TripPattern: A Pattern-based Text Watermarking Method for Large Language Models},
  author = {Sangjun Moon and Dasom Choi and Jingun Kwon and Hidetaka Kamigaito and Taro Watanabe and Manabu Okumura},
  year   = {2026},
  eprint = {2609.12472},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.12472v1}
}

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

Discussion