Beyond Semantic Narrowing: Robust and Efficient LLM Watermarking with Hamming Neighborhoods
cs.CR, cs.AI
Submitted: 2026-09-29
Updated: 2026-09-29
Comments: 30pages
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Semantic watermarking improves robustness against watermark removal attacks by embedding detectable signals into sentence-level representations.
Terminology
Abstract
Semantic watermarking improves robustness against watermark removal attacks by embedding detectable signals into sentence-level representations. However, existing watermarking methods typically impose watermark-specific semantic preferences on generated sentences without explicitly accounting for the highly non-uniform and context-dependent semantic preference of LLM generation. When these two preferences are poorly aligned, many natural continuations become incompatible with the watermark, causing semantic narrowing: reduced semantic freedom, increased resampling cost, and potential degradation on tasks with strict semantic requirements. To alleviate this problem, we propose HammingMark, which uses the semantic hash of the preceding sentence as a dynamic center and accepts candidates whose hashes fall within its Hamming neighborhood. Defining watermark validity over a Hamming neighborhood in compact hash space retains a larger fraction of naturally likely semantic continuations. The coarse many-to-one hash mapping further allows diverse semantic realizations to remain watermark-valid. Experiments on C4 and BookSum show that HammingMark achieves strong robustness, high detectability, and near-unwatermarked generation quality, requiring only 2.2 sampled candidates per accepted sentence,a 72.8% reduction compared with the most sampling-efficient existing method. On more complex tasks with strict semantic constraints, HammingMark achieves the highest detection rates with the highest or tied-highest ROUGE-L scores, demonstrating its effectiveness in balancing watermark detectability and generation quality under constrained generation settings.
Sources
- Open Technical Problems in Open-Weight AI Model Risk Management
- Distilling the Thought, Watermarking the Answer: A Principle Semantic Guided Watermark for Large Reasoning Models
- WaterMoE: Expert-Routing-based Watermarking for High Fidelity and Efficiency
- DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
- Copyright Protection for Large Language Models: A Survey of Methods, Challenges, and Trends
- Qwen2.5 Technical Report
- CoheMark: A Novel Sentence-Level Watermark for Enhanced Text Quality
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs