Duwak: Dual Watermarks in Large Language Models
On the map: LLM safety and security → Watermarking generated content and models
Abstract (arXiv)
As large language models (LLM) are increasingly used for text generation tasks, it is critical to audit their usages, govern their applications, and mitigate their potential harms. Existing watermark techniques are shown effective in embedding single human-imperceptible and machine-detectable patterns without significantly affecting generated text quality and semantics. However, the efficiency in detecting watermarks, i.e., the minimum number of tokens required to assert detection with significance and robustness against post-editing, is still debatable. In this paper, we propose, Duwak, to fundamentally enhance the efficiency and quality of watermarking by embedding dual secret patterns in both token probability distribution and sampling schemes. To mitigate expression degradation caused by biasing toward certain tokens, we design a contrastive search to watermark the sampling scheme, which minimizes the token repetition and enhances the diversity. We theoretically explain the interdependency of the two watermarks within Duwak. We evaluate Duwak extensively on Llama2 under various post-editing attacks, against four state-of-the-art watermarking techniques and combinations of them. Our results show that Duwak marked text achieves the highest watermarked text quality at the lowest required token count for detection, up to 70% tokens less than existing approaches, especially under post paraphrasing.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Watermarking generated content and models, one of 12 directions in LLM safety and security. Builds on 21 of its 44 references that are in the map. First posted on arXiv 12 Mar 2024.
Builds on
21 of 44 references.
Closest ancestors · 4
Same direction, newest first
- 2023A Robust Semantics-based Watermark for Large Language Model against Paraphrasing15 Nov
- 2023Robust Distortion-free Watermarks for Language Models28 Jul
- 2023Provable Robust Watermarking for AI-Generated Text30 Jun
- 2023Who Wrote this Code? Watermarking for Code Generation24 May
Other references · 17
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 705
- 2019Release Strategies and the Social Impacts of Language Modelscited by 505
- 2019GLTR: Statistical Detection and Visualization of Generated Textcited by 490
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 416
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
5 more
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2023RADAR: Robust AI-Text Detection via Adversarial Learningcited by 187
- 2021Demystifying the Draft EU Artificial Intelligence Actcited by 82
- 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
- 2023Smaller Language Models are Better Black-box Machine-Generated Text Detectorscited by 35
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 2.
8 papers.
- 2024Watermarking Techniques for Large Language Models: A Surveycited by 20
- 2025In-Context Watermarks for Large Language Modelscited by 9
- 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2025TimeWak: Temporal Chained-Hashing Watermark for Time Series Datacited by 3
- 2025SoK: Are Watermarks in LLMs Ready for Deployment?cited by 2
- 2026Optimal Multi-bit Generative Watermarking Schemes Under Worst-Case False-Alarm Constraintscited by 0
- 2026Learning to Follow In-Context Watermark Instructions via Self-Distillationcited by 0
- 2026Learning to Follow In-Context Watermark Instructions via Self-Distillation29 Aug 2026
- 2026Optimal Multi-bit Generative Watermarking Schemes Under Worst-Case False-Alarm Constraints9 Apr 2026
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025TimeWak: Temporal Chained-Hashing Watermark for Time Series Data6 Jun 2025
- 2025SoK: Are Watermarks in LLMs Ready for Deployment?5 Jun 2025
- 2025In-Context Watermarks for Large Language Models22 May 2025
- 2024Watermarking Techniques for Large Language Models: A Survey26 Aug 2024
- 2024A Survey on Responsible Generative AI: What to Generate and What Not8 Apr 2024