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

Sangjun Moon, Dasom Choi, Jingun Kwon, Hidetaka Kamigaito, Taro Watanabe, Manabu OkumuraarXiv 2026

TL;DR

TripPattern is a novel text watermarking framework for Large Language Models (LLMs) that abandons the traditional binary "green/red" vocabulary split in favor of a three-group partition. By alternating token selection between two pattern groups while leaving a "neutral" group unconstrained, it embeds a robust, statistically detectable signature. This approach significantly preserves text naturalness and generation quality, particularly across multilingual tasks, where traditional watermarks often degrade fluency.

What Problem Does This Paper Address?

As LLMs become ubiquitous, the need to identify machine-generated text is critical to combat misinformation and academic dishonesty. Current decoding-based watermarking methods typically follow the KGW framework (Kirchenbauer et al.), which splits the model's vocabulary into "green" and "red" tokens at each step, biasing generation toward green tokens.

However, this binary restriction severely limits token-selection flexibility. Forcing the model to pick green tokens often compromises text quality, fluency, and naturalness. This degradation is especially pronounced in multilingual settings and complex reasoning tasks where precise vocabulary choice is paramount. The authors tackle this trade-off, seeking a method that maintains strong watermark detectability without sacrificing the LLM's generation quality.

Methods

Instead of a binary split, TripPattern divides the vocabulary into three disjoint subsets at each generation step:

  1. Neutral Group ($V_n$): Contains freely selectable tokens that do not carry watermark signals.
  2. Pattern Group 1 ($V_{p1}$): Used to embed the watermark pattern.
  3. Pattern Group 2 ($V_{p2}$): Used to embed the watermark pattern.
Figure 1: Unlike KGW’s two-group partition, which en- courages green token generation, TripPattern alternates between two pattern groups while allowing neutral- token sampling to preserve text quality.

The Alternating Pattern

During generation, the framework enforces an alternating rule: if the last non-neutral token belonged to $V_{p1}$, the model applies a soft bias ($\delta$) to favor tokens in $V_{p2} \cup V_n$ for the next step. Conversely, if the last non-neutral token was from $V_{p2}$, it biases toward $V_{p1} \cup V_n$. Neutral tokens act as a "pass," leaving the alternation state unchanged.

Subword Length Heuristic

To construct the neutral group dynamically, TripPattern prioritizes short subword tokens (e.g., length $< 3$ characters). Because short tokens frequently function as essential morphemes or functional words across languages, keeping them unconstrained helps maintain grammatical coherence and fluency.

Detection

To detect the watermark, the verifier strips away the neutral tokens and maps the remaining tokens to their respective pattern labels ("1" or "2"). It then applies a standard statistical runs test (Wald and Wolfowitz, 1940) to measure how often adjacent tokens alternate between the groups, computing an interpretable p-value and z-score.

Datasets

The authors evaluated TripPattern across four languages (English, Korean, German, and Spanish) using several benchmarks:

  • Fluency Evaluation: C4 (English) and mC4 (multilingual web-crawled corpus).
  • Mathematical Reasoning: GSM8K (English grade-school math) and MGSM (Multilingual Grade School Math).
  • Long-Document Summarization: CNN/DM and GovReport datasets.

Key Insights and Ideas

  • Greater Selection Flexibility: The authors mathematically prove that TripPattern provides a larger allowable token set than KGW under standard conditions, granting the model more linguistic freedom.
  • The Multilingual Watermark Challenge: The paper reveals that multilingual datasets exhibit substantially higher next-token certainty (higher top-1 softmax probability) than English. This concentrated distribution makes multilingual generation less responsive to watermarking biases, explaining why text watermarking degrades more in non-English languages.
  • Neutralizing Functional Words: Protecting short subwords by placing them in a neutral group is a simple yet highly effective heuristic for preserving cross-lingual fluency without diluting the watermark beyond detection.

Key Results

Evaluated on instruction-tuned models from the Llama-3 and Qwen-2.5 families, TripPattern demonstrated clear advantages:

  • Text Quality: TripPattern consistently maintained lower perplexity (better fluency) than KGW and other baselines across all four languages.
  • Reasoning Performance: On GSM8K and MGSM, TripPattern preserved the models' chain-of-thought reasoning capabilities, suffering minimal accuracy degradation compared to aggressive baselines.
  • Detection Robustness: It achieved competitive Area Under the ROC curve (AUC) scores close to 1.0 in standard settings. It also proved highly robust across different decoding strategies (greedy vs. top-p sampling).
Figure 3: Comparison of TripPattern and KGW with different δ on the English C4 dataset.

Limitations and Future Work

Despite its strengths, TripPattern has a few notable limitations:

  • Vulnerability to Paraphrasing: Because the watermark relies on local, token-level alternation patterns, it is susceptible to sophisticated context-aware paraphrasing attacks (such as the DIPPER paraphraser), which disrupt these local sequences.
  • Hyperparameter Sensitivity: The balance between text quality and detectability depends heavily on the watermark strength ($\delta$) and the neutral-group ratio ($\gamma$), which may require per-model or per-language tuning.
  • Scope: The evaluation was restricted to a few model families (Llama and Qwen) and four languages, leaving its generalizability to low-resource languages an open question for future research.

Summary updated

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