A Resilient and Accessible Distribution-Preserving Watermark for Large Language Models

Yihan Wu, Zhengmian Hu, Junfeng Guo, Hongyang Zhang, Heng Huang
2/12/2026

No official code found. Best implementation: yihwu/DiPmark (4 stars, last commit 2024-05-22).

Abstract

Watermarking techniques offer a promising way to identify machine-generated content via embedding covert information into the contents generated from language models. A challenge in the domain lies in preserving the distribution of original generated content after watermarking. Our research extends and improves upon existing watermarking framework, placing emphasis on the importance of a \textbf{Di}stribution-\textbf{P}reserving (DiP) watermark. Contrary to the current strategies, our proposed DiPmark simultaneously preserves the original token distribution during watermarking (distribution-preserving), is detectable without access to the language model API and prompts (accessible), and is provably robust to moderate changes of tokens (resilient). DiPmark operates by selecting a random set of tokens prior to the generation of a word, then modifying the token distribution through a distribution-preserving reweight function to enhance the probability of these selected tokens during the sampling process. Extensive empirical evaluation on various language models and tasks demonstrates our approach's distribution-preserving property, accessibility, and resilience, making it a effective solution for watermarking tasks that demand impeccable quality preservation.

View on arXivView PDF

Code Implementations(1)

yihwu/DiPmarkCommunity100%
40Shell, PythonMay 22, 20242 years ago

Similar Papers

Cite this paper

@article{wu2026resilient,
  title  = {A Resilient and Accessible Distribution-Preserving Watermark for Large Language Models},
  author = {Yihan Wu and Zhengmian Hu and Junfeng Guo and Hongyang Zhang and Heng Huang},
  year   = {2026},
  eprint = {2310.07710},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.07710},
  journal = {ICML 2023 2023}
}

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

Discussion