Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models

Mingjia Huo, Sai Ashish Somayajula, Youwei Liang, Ruisi Zhang, F. Koushanfar +1 more
2/12/2026

No official code found. Best implementation: mignonjia/TS_watermark (16 stars, last commit 2025-05-11).

Abstract

Large language models generate high-quality responses with potential misinformation, underscoring the need for regulation by distinguishing AI-generated and human-written texts. Watermarking is pivotal in this context, which involves embedding hidden markers in texts during the LLM inference phase, which is imperceptible to humans. Achieving both the detectability of inserted watermarks and the semantic quality of generated texts is challenging. While current watermarking algorithms have made promising progress in this direction, there remains significant scope for improvement. To address these challenges, we introduce a novel multi-objective optimization (MOO) approach for watermarking that utilizes lightweight networks to generate token-specific watermarking logits and splitting ratios. By leveraging MOO to optimize for both detection and semantic objective functions, our method simultaneously achieves detectability and semantic integrity. Experimental results show that our method outperforms current watermarking techniques in enhancing the detectability of texts generated by LLMs while maintaining their semantic coherence. Our code is available at https://github.com/mignonjia/TS_watermark.

View on arXivView PDF

Code Implementations(1)

162Shell, PythonFeb 25, 20241 years ago

Similar Papers

Cite this paper

@article{huo2026tokenspecific,
  title  = {Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models},
  author = {Mingjia Huo and Sai Ashish Somayajula and Youwei Liang and Ruisi Zhang and F. Koushanfar and Pengtao Xie},
  year   = {2026},
  eprint = {2402.18059},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.18059},
  journal = {ICML 2024 2024}
}

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

Discussion