Reverse engineering Gemini's SynthID detection
TL;DR Highlight
Spectral analysis found SynthID carriers and reportedly bypassed Gemini's detector
Who Should Read
Backend or product developers who rely on AI-image watermarks to verify the origin of uploaded images
Core Mechanics
- Watermark position depends on resolution
- Carrier frequencies (where the watermark signal sits) change with image resolution.
- The top carrier is (9, 9) at 1024x1024 and (768, 704) at 1536x2816.
- So the codebook stores a separate profile per resolution.
- Phase is fixed within a model
- Carrier phase coherence across images from the same Gemini model exceeds 99.5%.
- The green channel carries the strongest watermark signal.
- Six solid-color backgrounds isolate real carriers
- Only frequencies whose phase matches across black, white, blue, green, red and gray are treated as watermark.
- Content-driven bins scramble in phase across colors and fall below 0.3 coherence.
- On the V4 codebook, over 99% of content bins fall below the default tau=0.60 cutoff.
- Spectral subtraction failed in 5 of 6 rounds
- Rounds 01-05 (spectral subtraction, JPEG, denoise-residual phase, VAE plus warp) are all marked ✗.
- Only Round 06 is reported to bypass the Gemini app detector.
- Round 06 stacks seven stages
- It chains a VAE round-trip, elastic warp, geometric warp, resize-squeeze, color nudge, FFT subtraction and a JPEG chain.
- Each stage rolls back automatically if it would drop below the PSNR floor.
- Gemini's own failure-mode text became the attack spec
- The help text says collages and layered images can make detection harder.
- The elastic warp mimics this by giving each ~50px neighborhood its own sub-pixel offset.
Community Reactions
- Critique: weak validation
- Commenters said it only tests against its own detector, not Gemini's SynthID app, so the claim proves little.
- One suggested reverse-engineering the network requests to automate real detection and get ground truth.
- Critique: README quality
- Commenters said the 90% detection rate has no methodology, the license link goes nowhere, and there are no before/after images.
- Others still found the resolution-dependent carriers and phase consistency interesting.
- Simpler bypass reported
- One commenter said downscaling then upscaling alone removes the watermark.
- Another argued that if it is this easy to remove, it was never a good solution.
- Opinion: Google may run two watermarks
- One comment suggested a public-oracle watermark plus a separate internal one.
- Another suggested Google may store every generated image tied to an account.
How to Apply
- Audit where you trust SynthID alone
- Today, find places in your upload pipeline that classify AI images by watermark presence only.
- Downscale-upscale or JPEG-recompress a sample and record whether the verdict changes.
- Stop using the watermark as the sole verdict
- Combine metadata, upload history and user reports in your AI-image logic.
- Give the watermark result only a weighted share among several signals.
- Build a transformed-image test set
- Add resized, JPEG-recompressed and lightly warped images to your regression tests.
- Measure detection retention per transform.
Try It
# Paste into Claude or ChatGPT (simplified version of the repo's idea: audit your reliance on watermarks, no code)
I run a feature that decides whether user-uploaded images are AI-generated.
Current method: {{current method, e.g. SynthID watermark lookup only}}
Image pipeline: {{describe resize/compression steps after upload}}
Please do the following.
1. List in a table the points where resizing, downscale-then-upscale, JPEG recompression or light geometric transforms could break watermark-based detection.
2. Suggest supporting signals to use alongside the watermark (metadata, upload history, reports, etc.).
3. Write a list of regression test cases with transformed images.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles