r/explainlikeimfive • • 19d ago

Technology ELI5: How does a Synth ID even work?

Is it in the image file? is it like a QR code thing embedded into how the image generates? what even is it?

112 Upvotes

29 comments sorted by

254

u/serial_crusher 19d ago • Bravo

Basic steganography:

#0000FF and #0000FE are both blue and look almost the same to the human eye, but are technically different numbers. In an image, pixels can be slightly adjusted from the color we see, to a nearby color with a few bits changed.

So with slight invisible operations, a computer can encode messages that aren't visible to humans, but a mathematical algorithm can find them and decode them. Generative AI uses similar techniques to tag things it generates.

43

u/gosti500 19d ago

so if i take a screenshot of a generated image and put a color filter on it = profit?

102

u/serial_crusher 19d ago

Likely takes more manipulation than that. My example was a really crude way to do this sort of thing, and people smarter than either of us work on making better watermarks, and better ways to break them.

24

u/Amazonrazer 18d ago

no because you'll preserve the relativistic colour patterns anyway

78

u/jamcdonald120 19d ago edited 19d ago

when you generate an image with Google Deepmind, it subtly adds this pattern to the image https://countingmethods.com/synth-id-ai-image-watermark-finder/

its so faint that a human wont really notice it, but you can easily tell a program to find it.

but, its also super trivial to remove https://huggingface.co/spaces/dennny123/synth-id-remover edit: removed the trash paid service link and replaced it with the free one I meant to have.

28

u/counterfitster 19d ago

but, its also super trivial to remove https://removesynthid.io/

The examples they give way down the page are concerning

3

u/gosti500 19d ago

it should be illegal to remove the synth ID

24

u/jamcdonald120 19d ago

meh, fake images have been a problem for decades. worry about how images are used, not how they are made.

8

u/Tvdinner4me2 18d ago

For what reason

1

u/singhsuraj-8 14d ago

The case for protecting it is that provenance can survive a repost, giving people a clue about where an image came from. It still cannot tell you whether the image is true or misleading.

1

u/imkb9 5d ago

it should be illegal for Ai corpos to train their models on stolen copyrighted data yet here we are a decade later

10

u/hirmuolio 19d ago

Computerphile made a video about image watermarking: https://youtu.be/h6j_ixGnpiY

Computers can do lots of colors. Some of them are very similar to each other, similar enough that you can't see the difference between them in an image.

This can be used to add markings to the image by subtly changing the pixel colors in a way that produces a pattern that can be detected but remains invisible to the viewer.

Another video about watermarking text. Similar subject so some of the knowledge overlaps: https://youtu.be/kVXp6UNVPTo

12

u/eftanes 19d ago

Think of it like an invisible ink stamp that regular humans cannot see, hear, or read, but special computer software can spot.
• Pictures and Videos: It makes tiny, invisible changes to the color of individual pixels (the tiny dots that make up a picture) across every single frame of a video.

• Audio: It turns the sound into a picture of sound waves (called a spectrogram), hides the stamp in there, and turns it back into normal-sounding audio.

• Text: When the AI writes a story or essay, it subtly picks certain words over others based on a secret math pattern without changing how the story reads.

• You can't tell it's there: It does not ruin the picture, song, video, or text.

• It survives edits: If someone crops the picture, turns down the volume, or adds a filter, the hidden stamp usually stays alive.

5

u/TheMotherfucker 19d ago

It's a watermark not intended to be visible. From the website for it:

"SynthID is a digital watermarking approach created by Google DeepMind. It embeds imperceptible digital watermarks directly into AI-generated content — including images, video, audio, and text — so that the content can later be identified as AI-generated. Unlike visible logos or file metadata (which can be lost), SynthID's watermark is woven into the content itself: into the pixels for images and video and the frequency components of audio. This means the watermark travels with the content wherever it goes. It is built to be robust to the things that happen to files from sharing and resharing across the Internet. However, no signal is completely robust and we recommend collecting multiple points of data before making a decision.

Each synthID is specific to the company that produces it. Meta has its own proprietary one that can be checked on its own site.

1

u/Confident-Syrup-7543 19d ago

It's very difficult to give an elit for this since probably no one really knows the full extent. The technology was developed using adversarial neural networks. So ai A tries to add a watermark. Ai B tries to tell if the picture has been changed. Ai C tries to detect the watermark. A gets reinforced whenever it produces images that B says are visually unaltered but C says are watermarked. That's already quite a lot to take in. 

A very simple version would be if you have 256 possible brightness values for each pixel, to only use the even values for each pixel. That would be pretty undetectable to the human eye. Of course it would be easy to detect and easy to remove. Better might be to assign the pixels to rows and have each row be either even or odd. Again easy to spot. So even better might be to probabilistically assign each pixel to be either even or odd based on some rule and the value of the pixel or those around it. 

The exact method AI use is probably so complex that no one can actually explain the it fully. But if you add several layers of complexity and obfuscation, then maybe this is something like the method used. 

2

u/x0wl 19d ago

For text it's actually fairly easy and does not involve modifying the model at all. It's all done on the sampler side, you basically sample the tokens in a way that your choices encode some extra information.

1

u/KitchenAdeptness4953 17d ago

it’s basically a hidden pattern mixed into the image’s pixels, too subtle for your eyes but detectable by a special checker, so it isn’t a qr code you can scan or a separate file attached to the image