The hardcoded carrier positions (48,0), (96,0), (0,88) etc. had low phase
coherence on actual Gemini images (~0.16-0.55). Detection was 80% on
reference images with 100% false positive rate on non-watermarked images.
Root cause analysis across 291 watermarked + 16 non-watermarked images
revealed:
1. The watermark is content-adaptive — dark images use diagonal-grid
carriers at (±3,±4), (±5,±3) etc. while white images use horizontal-
axis carriers at (0,±7), (0,±8), (0,±9) etc.
2. Both sets have >0.95 intra-set phase coherence and >0.5 discriminative
gap vs non-watermarked images.
3. Previous metrics (noise correlation, structure ratio bounds, raw carrier
magnitude) had heavy overlap between watermarked and non-watermarked
content images and were not discriminative.
Changes:
- Replace carrier list with empirically verified dark + white carrier sets
- Add per-set reference phase templates to codebook (carrier_refs)
- Rewrite detect_array to try both carrier sets and take best phase match
- Use phase agreement as primary signal (WM: 0.92-0.99 vs non-WM: 0.47-0.71)
- Add noise-domain carrier-vs-random ratio as supporting signal
- Skip expensive multi-scale consistency computation (phase match is decisive)
Results on full dataset:
- Watermarked: 99.0% detection (was ~80%)
- Non-watermarked: 0% false positives (was 100%)
- Overall: 98.7% accuracy (was ~80% with no FP testing)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extends spectral_codebook_v3 from 2 to 4 resolution profiles:
- 1024x1024 (existing, 100b+100w refs)
- 1536x2816 (existing, 88 watermarked refs)
- 1344x768 (new, 154b+364w refs, top carrier coherence 0.946)
- 864x1184 (new, 268b+295w refs, top carrier coherence 0.979)
Key findings at new resolutions:
- 1344x768 carriers sit on the vertical axis (fy=0, fx=3..10)
- 864x1184 carriers are at mid-frequency diagonals (13,-16), (23,-24)
- Both show distinct carrier structures vs existing profiles,
confirming resolution-dependent embedding
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>