← Lab /AI/ML

Logit-balanced partitioning raises watermark detectability for code and math generation

SSG improves watermark detectability by raising the lower bound of watermark strength

AI/ML arXiv 24 Apr 2026 Method Simulation evidence

Published as “SSG: Logit-Balanced Vocabulary Partitioning for LLM Watermarking”

Why it matters

SSG makes LLM watermarking more reliable for code and math generation, aiding attribution without sacrificing output quality.

Summary

SSG (Sort-then-Split by Groups) raises watermark detection rates (TPR and F1) on low-entropy tasks such as code generation and mathematical reasoning, often by large margins, while keeping generation quality (Pass@1) essentially unchanged. The claim is backed by experiments on several public benchmarks (HumanEval, MBPP, GSM8K, C4, CNN/DailyMail) across multiple models, showing higher TPR/F1 percentages compared to KGW, SWEET, and EWD baselines.

What they found 2

  1. SSG consistently improves detection performance (higher TPR and F1) across all evaluated settings.

    “In particular, SSG consistently raises TPR and F1 under both the 1% and 5% FPR thresholds, in some cases by large margins.”

  2. On Qwen2.5-Coder-7B for HumanEval, KGW alone achieves 22.0% TPR@1, while KGW+SSG reaches 39.0% TPR@1.

    “KGW 26.2 22.0 35.8 36.0 51.3”

Caveats 4

  • the effect of incorporating SSG is mixed: it improves detection in some cases but degrades it in others, reflecting the inherent reliance of SSG on logit values conditioned by the original prompts.
  • TPR drops significantly in all settings, demonstrating that paraphrasing attack is an effective way to erase watermark.
  • Although SSG proves effective in our evaluations, the experimental scope remains limited.
  • it still depends on the availability of the original prompt for optimal detection, which restricts its applicability in realistic settings.

What’s new here 4

  • Logit-balanced vocabulary partitioning that raises the lower bound of watermark strength.
  • Introduction of a token-level metric called Watermark Strength.
  • Theoretical proof that SSG improves the lower bound on watermark strength for any token prediction.
  • Demonstration that SSG works for both low-entropy and high-entropy generation tasks.