explaingit

aloshdenny/reverse-synthid

3,862PythonAudience · researcherComplexity · 4/5Setup · hard

TLDR

A research project that reverse-engineers Google SynthID watermarks in Gemini-generated images using signal processing, building a 90%-accurate detector and a bypass pipeline that removes the watermark while keeping the image visually identical.

Mindmap

mindmap
  root((reverse-synthid))
    What it does
      Reverse-engineer SynthID
      Detect watermarks
      Bypass watermarks
    Techniques
      Spectral analysis
      Phase coherence
      VAE re-generation
      JPEG compression
    Results
      90% detection accuracy
      75% carrier reduction
      43 dB PSNR quality
    Audience
      AI researchers
      Security researchers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Detect whether an image was generated by Gemini using the SynthID watermark detector with 90% accuracy.

USE CASE 2

Test the Round 06 bypass pipeline to reduce watermark signals in Gemini-generated images while preserving visual quality.

USE CASE 3

Analyze frequency-domain patterns in AI-generated images to understand how carrier-frequency watermarks are embedded.

USE CASE 4

Study the difference between SynthID V3 and V4 model variant watermark profiles using cross-color phase consensus.

Tech stack

PythonNumPysignal processing

Getting it running

Difficulty · hard Time to first run · 1h+

Research code requiring understanding of spectral analysis and signal processing, complex Python dependencies.

No license information was stated in the explanation.

In plain English

reverse-SynthID is a research project that reverse-engineers the invisible watermark Google embeds into images generated by Gemini, called SynthID. The goal is to understand how that watermark works and whether it can be detected or removed using only signal processing, no access to Google's proprietary encoder or decoder. The watermark is embedded as an imperceptible pattern in pixel values, specifically as a carrier frequency structure in the image's high-frequency range. The project discovered this structure through spectral analysis (examining an image's frequency content, similar to how audio engineers analyze sound) and used that knowledge to build three things: a detector that identifies SynthID-watermarked images with 90% accuracy, a V3 bypass that reduces carrier energy by 75% and phase coherence by 91% while maintaining 43+ dB PSNR (a measure of image quality, higher means closer to the original), and a V4 generalization with separate profiles for two Gemini model variants, built from cross-color phase consensus to isolate watermark signals from image content. The culmination is a Round 06 all-in-one attack pipeline with seven stages, VAE re-generation, elastic deformation, squeeze, color adjustment, and JPEG compression, that defeats the SynthID detector on both tested Gemini models while producing visually lossless output. The project is Python-based and described as research. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Using reverse-synthid, how do I run the SynthID detector on a folder of images to identify which ones were generated by Gemini? Show me the Python command and what the output looks like.
Prompt 2
Explain how the reverse-synthid project discovered SynthID's watermark structure through spectral analysis, specifically what carrier frequency pattern it found and how it differs from image content.
Prompt 3
I want to understand what VAE re-generation and elastic deformation do in the Round 06 attack pipeline of reverse-synthid. Explain each of the seven stages and why they are ordered the way they are.
Prompt 4
What does 43 dB PSNR mean in the context of the reverse-synthid bypass results, and what does it tell me about how much the image changed after watermark removal?
Open on GitHub → Explain another repo

← aloshdenny on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.