Detector Comparison: Gamma vs Z-score vs Power Law ==================================================== .. raw:: html
Summary. The Gumbel/OpenAI watermark (Aaronson 2022) can be detected by several test statistics. The standard detector uses the Gamma distribution (exponential scores); Lattimore (2026) proposed a truncated power law statistic that is theoretically near-optimal. We ran a comprehensive 24-setting sweep comparing all three — Gamma, Z-score, and Power Law — across 8 temperatures × 3 nucleus-sampling values × 13 sequence lengths. The result: all three detectors perform practically equivalently on real LLM text, confirming Lattimore's own caveat in Section 6.
Figure 3. True positive rate vs. number of scored tokens for four representative settings spanning the signal-strength range. Top-left: Near-null signal (T=0.1, top_p=0.5) — all detectors perform near-random even at 500 tokens. Top-right: Moderate signal (T=0.5, top_p=1.0) — detectors reach ≈95% TPR around n=30–50. Bottom-left: Strong signal (T=0.7, top_p=0.9) — convergence at n=15. Bottom-right: Very strong signal (T=1.5, top_p=0.9) — convergence at n=10. In all panels, Gamma, Z-score, and Power Law curves are nearly indistinguishable.
Figure 4. Power Law TPR minus Gamma TPR at n=20 tokens. Red = PL better; blue = Gamma better. Most cells are near zero. A slight Gamma advantage appears in the moderate-signal regime (T=0.3–0.7, top_p=0.5), while PL edges ahead in a few strong-signal cells. All differences are within sampling noise (±0.08 for n=100 samples).
Figure 5. Detector performance at n=8 (left) vs n=30 (right). At n=8, Power Law is consistently 10–20% behind Gamma/Z-score across all signal strengths — a structural consequence of the ε-truncation losing dynamic range. By n=30 the gap closes and all three converge.