Defending LLM Watermarking Against Spoofing Attacks with Contrastive Representation Learning
On the map: LLM safety and security → Watermarking generated content and models
Abstract (arXiv)
Watermarking has emerged as a promising technique for detecting texts generated by LLMs. Current research has primarily focused on three design criteria: high quality of the watermarked text, high detectability, and robustness against removal attack. However, the security against spoofing attacks remains relatively understudied. For example, a piggyback attack can maliciously alter the meaning of watermarked text-transforming it into hate speech-while preserving the original watermark, thereby damaging the reputation of the LLM provider. We identify two core challenges that make defending against spoofing difficult: (1) the need for watermarks to be both sensitive to semantic-distorting changes and insensitive to semantic-preserving edits, and (2) the contradiction between the need to detect global semantic shifts and the local, auto-regressive nature of most watermarking schemes. To address these challenges, we propose a semantic-aware watermarking algorithm that post-hoc embeds watermarks into a given target text while preserving its original meaning. Our method introduces a semantic mapping model, which guides the generation of a green-red token list, contrastively trained to be sensitive to semantic-distorting changes and insensitive to semantic-preserving changes. Experiments on two standard benchmarks demonstrate strong robustness against removal attacks and security against spoofing attacks, including sentiment reversal and toxic content insertion, while maintaining high watermark detectability. Our approach offers a significant step toward more secure and semantically aware watermarking for LLMs. Our code is available at https://github.com/UCSB-NLP-Chang/contrastive-watermark.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Watermarking generated content and models, one of 12 directions in LLM safety and security. Builds on 27 of its 41 references that are in the map. First posted on arXiv 9 Apr 2025.
Builds on
27 of 41 references.
Closest ancestors · 24
Same direction, newest first
- 2024SoK: Watermarking for AI-Generated Content27 Nov
- 2024Robust Detection of Watermarks for Large Language Models Under Human Edits21 Nov
- 2024PostMark: A Robust Blackbox Watermark for Large Language Models20 Jun
- 2024A Statistical Framework of Watermarks for Large Language Models: Pivot, Detection Efficiency and Optimal Rules1 Apr
- 2024No Free Lunch in LLM Watermarking: Trade-offs in Watermarking Design Choices25 Feb
- 2024k-SemStamp: A Clustering-Based Semantic Watermark for Detection of Machine-Generated Text17 Feb
- 2024Adaptive Text Watermark for Large Language Models25 Jan
- 2023Towards Optimal Statistical Watermarking13 Dec
- 2023A Robust Semantics-based Watermark for Large Language Model against Paraphrasing15 Nov
- 2023REMARK-LLM: A Robust and Efficient Watermarking Framework for Generative Large Language Models18 Oct
- 2023Embarrassingly Simple Text Watermarks13 Oct
- 2023A Semantic Invariant Robust Watermark for Large Language Models10 Oct
12 more
- 2023Unbiased Watermark for Large Language Models22 Sep
- 2023Robust Distortion-free Watermarks for Language Models28 Jul
- 2023Watermarking Conditional Text Generation for AI Detection: Unveiling Challenges and a Semantic-Aware Watermark Remedy25 Jul
- 2023Provable Robust Watermarking for AI-Generated Text30 Jun
- 2023Undetectable Watermarks for Language Models25 May
- 2023Who Wrote this Code? Watermarking for Code Generation24 May
- 2023Watermarking Text Generated by Black-Box Language Models14 May
- 2023Robust Multi-bit Natural Language Watermarking through Invariant Features3 May
- 2023Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense23 Mar
- 2023Can AI-Generated Text be Reliably Detected?17 Mar
- 2023A Watermark for Large Language Models24 Jan
- 2021Tracing Text Provenance via Context-Aware Lexical Substitution15 Dec
Other references · 3
Built on by
Citing papers per year: 2025: 6; 2026: 4.
10 papers.
- 2025PMark: Towards Robust and Distortion-free Semantic-level Watermarking with Channel Constraintscited by 16
- 2025In-Context Watermarks for Large Language Modelscited by 10
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2025Large Language Model Sourcing: A Surveycited by 5
- 2025Detecting Post-generation Edits to Watermarked LLM Outputs via Combinatorial Watermarkingcited by 3
- 2026Scaling Participation in Modular AI Systemscited by 2
- 2025TokenPure: Watermark Removal through Tokenized Appearance and Structural Guidancecited by 1
- 2026Tracing Provenance and Detecting Tampering with Complementary LLM Watermarkscited by 1
- 2026DenMark: Robust Semantic Watermarking for Diffusion Language Modelscited by 1
- 2026Learning to Follow In-Context Watermark Instructions via Self-Distillationcited by 0
- 2026DenMark: Robust Semantic Watermarking for Diffusion Language Models13 Sep 2026
- 2026Learning to Follow In-Context Watermark Instructions via Self-Distillation29 Aug 2026
- 2026Tracing Provenance and Detecting Tampering with Complementary LLM Watermarks13 Aug 2026
- 2026Scaling Participation in Modular AI Systems5 Jun 2026
- 2025TokenPure: Watermark Removal through Tokenized Appearance and Structural Guidance1 Dec 2025
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025Large Language Model Sourcing: A Survey11 Oct 2025
- 2025Detecting Post-generation Edits to Watermarked LLM Outputs via Combinatorial Watermarking2 Oct 2025
- 2025PMark: Towards Robust and Distortion-free Semantic-level Watermarking with Channel Constraints25 Sep 2025
- 2025In-Context Watermarks for Large Language Models22 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Discovering Spoofing Attempts on Language Model Watermarks
- 2025Modification and Generated-Text Detection: Achieving Dual Detection Capabilities for the Outputs of LLM by Watermark
- 2024Watermark Stealing in Large Language Models
- 2025Character-Level Perturbations Disrupt LLM Watermarks
- 2025DITTO: A Spoofing Attack Framework on Watermarked LLMs via Knowledge Distillation
- 2025Enhancing LLM Watermark Resilience Against Both Scrubbing and Spoofing Attacks
- 2025Unified attacks to large language model watermarks: spoofing and scrubbing in unauthorized knowledge distillation
- 2026Beyond Semantic Narrowing: Robust and Efficient LLM Watermarking with Hamming Neighborhoods