mlsanityData to 14 Oct 2026

Defending LLM Watermarking Against Spoofing Attacks with Contrastive Representation Learning

arXiv 2504.06575 ↗First posted 9 Apr 2025cs.CR cs.CLcited by 10

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

  1. 2024SoK: Watermarking for AI-Generated Content27 Nov
  2. 2024Robust Detection of Watermarks for Large Language Models Under Human Edits21 Nov
  3. 2024PostMark: A Robust Blackbox Watermark for Large Language Models20 Jun
  4. 2024A Statistical Framework of Watermarks for Large Language Models: Pivot, Detection Efficiency and Optimal Rules1 Apr
  5. 2024No Free Lunch in LLM Watermarking: Trade-offs in Watermarking Design Choices25 Feb
  6. 2024k-SemStamp: A Clustering-Based Semantic Watermark for Detection of Machine-Generated Text17 Feb
  7. 2024Adaptive Text Watermark for Large Language Models25 Jan
  8. 2023Towards Optimal Statistical Watermarking13 Dec
  9. 2023A Robust Semantics-based Watermark for Large Language Model against Paraphrasing15 Nov
  10. 2023REMARK-LLM: A Robust and Efficient Watermarking Framework for Generative Large Language Models18 Oct
  11. 2023Embarrassingly Simple Text Watermarks13 Oct
  12. 2023A Semantic Invariant Robust Watermark for Large Language Models10 Oct
12 more
  1. 2023Unbiased Watermark for Large Language Models22 Sep
  2. 2023Robust Distortion-free Watermarks for Language Models28 Jul
  3. 2023Watermarking Conditional Text Generation for AI Detection: Unveiling Challenges and a Semantic-Aware Watermark Remedy25 Jul
  4. 2023Provable Robust Watermarking for AI-Generated Text30 Jun
  5. 2023Undetectable Watermarks for Language Models25 May
  6. 2023Who Wrote this Code? Watermarking for Code Generation24 May
  7. 2023Watermarking Text Generated by Black-Box Language Models14 May
  8. 2023Robust Multi-bit Natural Language Watermarking through Invariant Features3 May
  9. 2023Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense23 Mar
  10. 2023Can AI-Generated Text be Reliably Detected?17 Mar
  11. 2023A Watermark for Large Language Models24 Jan
  12. 2021Tracing Text Provenance via Context-Aware Lexical Substitution15 Dec

Other references · 3

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  3. 2025Distributional Information Embedding: A Framework for Multi-bit Watermarkingcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 4.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Discovering Spoofing Attempts on Language Model Watermarks
  2. 2025Modification and Generated-Text Detection: Achieving Dual Detection Capabilities for the Outputs of LLM by Watermark
  3. 2024Watermark Stealing in Large Language Models
  4. 2025Character-Level Perturbations Disrupt LLM Watermarks
  5. 2025DITTO: A Spoofing Attack Framework on Watermarked LLMs via Knowledge Distillation
  6. 2025Enhancing LLM Watermark Resilience Against Both Scrubbing and Spoofing Attacks
  7. 2025Unified attacks to large language model watermarks: spoofing and scrubbing in unauthorized knowledge distillation
  8. 2026Beyond Semantic Narrowing: Robust and Efficient LLM Watermarking with Hamming Neighborhoods