← Lab /AI/ML

HammingMark cuts sampling cost by 72.8% while preserving watermark detectability and quality

The authors claim HammingMark provides strong robustness and high detection rates with near-unwatermarked generation quality using only 2.2 sampled candidates per sentence

AI/ML arXiv 29 Sep 2026 Method Simulation evidence

Published as “Beyond Semantic Narrowing: Robust and Efficient LLM Watermarking with Hamming Neighborhoods”

Why it matters

The method makes semantic watermarking far more computationally efficient, enabling practical deployment in real-time generation pipelines while preserving provenance detection.

Summary

HammingMark achieves near-perfect clean-text detection (TPR@1% 0.97-1.00, AUROC 0.99-1.00) while cutting the number of sampled candidates per accepted sentence to 2.2, a 72.8% reduction versus the most efficient prior method. It also retains 58% of naturally sampled continuations without extra resampling, preserving generation quality (PPL within 0.30 of unwatermarked). The evidence comes from extensive experiments on C4 and BookSum across multiple LLMs, comparing against several prior semantic watermarking baselines. The paper does not provide full details on training data or runtime beyond the reported sampling metrics.

What they found 3

  1. Sampling efficiency dramatically improved

    “HammingMark requires only 2.2 sampled candidates and 41.58 generated tokens for each accepted sentence.”

  2. High natural acceptance of watermark constraint

    “HammingMark achieves an estimated natural acceptance of 0.58, meaning that approximately 58% of naturally sampled continuations satisfy its watermark constraint without additional semantic redirection.”

  3. Near-perfect clean-text detection

    “HammingMark maintains near-perfect clean-text detection across all model-dataset settings, with TPR@1% of 0.97-1.00 and AUROC of 0.99-1.00.”

Caveats 3

  • Global Bits is generally more robust, achieving TPR@1% of 0.820.97 across all settings.
  • HammingMark depends on the quality of the semantic encoder and sentence segmentation; unstable embeddings or ambiguous sentence boundaries may alter hash codes and reduce detection reliability.
  • Although HammingMark substantially improves sampling efficiency, it remains a rejection-sampling method and may incur additional cost under highly restrictive contexts or strict matching thresholds.

What’s new here 4

  • Uses the semantic hash of the preceding sentence as a dynamic center for a Hamming-neighborhood acceptance region
  • Aligns watermark constraints with context-dependent natural generation, reducing semantic narrowing
  • Achieves a 72.8% reduction in sampled candidates and 77.7% fewer tokens per sentence
  • Maintains high detection rates even under paraphrasing and rewriting attacks