News for hackers. Stuff that matters.
Re:Megaface by gwern on Monday January 02, 2023 @02:29PM (#34222476)
This is apples and oranges. SD et al are defended on the grounds of being transformative use (https://en.wikipedia.org/wiki/Transformative_use): they do not distribute (ie copy) the original training images, and they are not a derivative work due to transformativeness, so the license of the original images is completely irrelevant. (Details like 'signatures' are also irrelevant: if I write a style parody of William Shakespeare and add a '--Willy Shakespeare' at the end to round it off, have I revealed that I have secretly copied his work? Of course not. It's just plausible that there would be a name there, so I came up with a name.)

The criticism here is that distributing (copying) the original image violates the non-commercial clause of the original images because someone, somewhere, might somehow have made money in some way because the dataset exists; but as they somewhat lamely acknowledge later, what counts as 'commercial' has never been clearly defined, and it probably can't be defined (because for most people 'commercial' seems to be defined by 'ewww'), and this is why CC-NC licenses are heavily discouraged by WMF and other FLOSS groups and weren't part of FLOSS from the beginning even though Stallman was in large part attacking commercial exploitation.

Re:Megaface by schemescape on Monday January 02, 2023 @02:40PM (#34222619)
Does anyone know if attempts have been made to trick these ML models into reproducing original copyrighted inputs verbatim?
Re:Megaface by Scaevolus on Monday January 02, 2023 @02:57PM (#34222833)
That's a known failure mode called "overfitting" or "memorization", where a specific input text is very accurately reproduced.

I'm not aware of it occurring for any copyrighted inputs, but it occurs for many famous artworks-- it's nearly impossible to convince Stable Diffusion to style "Mona Lisa" at all.

Re:Megaface by sdenton4 on Monday January 02, 2023 @03:00PM (#34222870)
That's not really how memorization in neutral networks works. For classifiers, memorization is more like learning a hash function and a lookup table; no need to store the full image at all. Even for very large models, the weights are a tiny fraction of the size of the original data.

It's probably helpful to think of embeddings for generative models in a similar way; it's a very specific embedding function, like a locality sensitive hash, which doesn't require actually storing the data.

Re:Megaface by schemescape on Monday January 02, 2023 @03:39PM (#34223335)
Thanks. Yes, I shouldn't have said "verbatim" -- I meant something more like "close enough to cause legal trouble". Obviously copying verbatim is a violation of copyright, but there must be some threshold of "close enough" that is still problematic. E.g. compressed MP3s of copyrighted songs aren't a verbatim reproduction, but as far as I'm aware they're still covered by copyright.

Trademarks are even broader.

Re:Megaface by makapuf on Monday January 02, 2023 @06:32PM (#34225255)
A band playing publicly a reinterpretation of a famous band will get sued even if its not verbatim.
Re:Megaface by schemescape on Monday January 02, 2023 @07:23PM (#34225753)
That’s an even better example.
Re:Megaface by polygamous_bat on Monday January 02, 2023 @03:03PM (#34222905)
One, the diffusion model's possible output space contains every RGB image ever. But two, it cannot ever possibly contain the original inputs verbatim, because (the size of the model)/(the size of the training set) comes out to be something like 0.2 KB per image. Unless it's an incredible compression algorithm, diffusion necessarily have learned something from the input rather than copy-pasting things, as claimed upthread.
Re:Megaface by schemescape on Monday January 02, 2023 @03:40PM (#34223345)
I edited my post a while ago, but I shouldn't have said "verbatim". See reply to sibling for more what I had in mind.
Re:Megaface by TeMPOraL on Monday January 02, 2023 @06:00PM (#34224925)
> Unless it's an incredible compression algorithm, diffusion necessarily have learned something from the input rather than copy-pasting things, as claimed upthread.

Arguably, "learning" and "compression" are the same thing.

In this sense, you can view SD as a compression algorithm where the decoder is the model, the compressed file is the prompt + tweakable params, and there aren't any error checks made, so you can feed random data into the decoder and get something out.

Re:Megaface by int_19h on Tuesday January 03, 2023 @05:10PM (#34238828)
Or maybe the compressed file is the model, and prompt + tweakable params is a "path" inside that compressed file?
Re:Megaface by gwern on Monday January 02, 2023 @05:55PM (#34224871)
There's been a lot of work on memorization, yes, and you can also do nearest-neighbor lookups in the original data to gutcheck 'memorization'. As usual, the answer is "it's complicated" but for most practical purposes, the answer is 'no': you will get the Mona Lisa if you ask for it, absolutely, but the odds of a randomly generated image being a doppelganger is near-zero. (If you've seen stuff on social media to the contrary, then you may have been misled by various people peddling img2img or 'variation' functions, or prompting for it, or other ways of lying/ignorance.)

But you certainly can get things like watermarks without any real memorization. Watermarks have been a nuisance in GANS, for example - the StyleGAN CATS model was filled with watermarks or attempted meme text captions, even though the cats were so nightmarish that they obviously weren't 'plagiarized' so nobody made a big deal about it back then and they understood the GAN had simply learned that watermarks were a thing in many real images and it would try to imitate them where plausible in a sample.

Re:Megaface by int_19h on Monday January 02, 2023 @10:34PM (#34227269)
If there's a specific prompt that makes the model produce such an image (without img2img), why shouldn't it count? The question isn't whether the model produces such things randomly, but rather whether it's capable of producing them in principle, even if it requires a very elaborate prompt.
Re:Megaface by gwern on Tuesday January 03, 2023 @12:09PM (#34234267)
> If there's a specific prompt that makes the model produce such an image (without img2img), why shouldn't it count?

There's a specific prompt which makes a human artist produce such an image without img2img too: "Please draw the Mona Lisa". There - you just did it in your head while reading this comment!

Re:Megaface by int_19h on Tuesday January 03, 2023 @05:08PM (#34238815)
So? Humans aren't copyrightable works. But a bunch of weights that constitutes the model is just data, and that data can very well contain copyrighted works. The question is whether it does in any meaningful sense. And if it can reproduce them verbatim with the right prompt, I don't see how the answer could be "no", anymore so than a password-protected archive of a copyrighted JPEG.
Re:Megaface by pbhjpbhj on Monday January 02, 2023 @03:05PM (#34222935)
>if I write a style parody of William Shakespeare and add a '--Willy Shakespeare' at the end to round it off, have I revealed that I have secretly copied his work? //

I doubt you're suggesting SD, Dall-E, etc., are producing parodies so bringing in parody considerations muddies the water a lot. Also, Shakespeare's works are out of copyright.

If you sell a painting signed with a [facsimile] signature of Dali then it's pretty hard to say you didn't copy the signature, as a minimum. Thats likely to be a trademark violation too. Now, suppose you include aspects in the image specifically associated with the artist, and a signature, ... there's no way to genuinely deny that is a derivative.

Re:Megaface by theptip on Monday January 02, 2023 @04:00PM (#34223568)
> a painting signed with a [facsimile] signature of Dali

That's not what's happening here though.

If you look at the original tweet (https://twitter.com/LaurynIpsum/status/1599953586699767808) it seems that the complaint is about the "mangled remains of an artist’s signature". I don't see any examples where it's actually copying the signature of a specific artist.

(Please do share an example of that if there is one.)

Re:Megaface by return_to_monke on Monday January 02, 2023 @05:15PM (#34224435)
I do respect artist's concerns. I have a hard time getting this one though. The ai learned that humans usually put squiggly lines in the corners, and it does, too. What is wrong with this?
Re:Megaface by Filligree on Monday January 02, 2023 @07:51PM (#34226040)
It's reasoning based on a false assumption. If you start from the assumption that AI imagery is based on specific source images, which had signatures, then it can make sense to assume that the squiggly lines in the corner are evidence that it copied-and-mangled some such specific pictures.

That's not what it did, of course. But if you start from the assumption...

Re:Megaface by theptip on Monday January 02, 2023 @04:06PM (#34223659)
> distributing the original image violates the non-commercial clause of the original images because someone, somewhere, might somehow have made money

I agree with the rest of your post, but this point seems a bit uncharitable.

I think the claims would be:

1. It's a breach of copyright for Megaface to share the images in any case without attribution & replicating the CC-NC license. It would (presumably) be OK assuming Megaface were to correctly apply the CC-NC licenses to the dataset.

2. It's a breach of copyright for anyone consuming Megaface (e.g. Google) to use those images for commercial purposes.

And your argument for SD applies to 2. that regardless of license, it's OK to create a transformative work. But it still doesn't get Megaface off the hook for 1. - distributing those images without the license.

Re:Megaface by colesantiago on Monday January 02, 2023 @06:15PM (#34225093)
Nobody is complaining about William Shakespeare or public domain works that are out of copyright. The issue is that there is clearly copyrighted works in the model that living artists have not consented to being in the model.

> SD et al are defended on the grounds of being transformative use they do not distribute (ie copy) the original training images, and they are not a derivative work due to transformativeness, so the license of the original images is completely irrelevant.

If this is irrelevant, why is Stability.AI creating an "opt out" system for artists? It's almost like they know they are copying digital artists works without their explicit consent. This wouldn't be an issue if they only used images in the public domain.

https://www.technologyreview.com/2022/12/16/1065247/artists-...

And we both know that Stable Diffusion have Dreambooth which you have to pay to use the platform, so this is clearly not fair use.

https://platform.stability.ai/docs/getting-started/credits-a...

Re:Megaface by Filligree on Monday January 02, 2023 @07:55PM (#34226068)
> If this is irrelevant, why is Stability.AI creating an "opt out" system for artists? It's almost like they know they are copying digital artists works without their explicit consent. This wouldn't be an issue if they only used images in the public domain.

It might also be because there's a huge backlash against the concept of stable diffusion in certain circles. Whether or not that backlash matches the legalities, or if their logic is sound at all, has absolutely nothing to do with it.

Re:Megaface by gwern on Tuesday January 03, 2023 @12:13PM (#34234319)
> Nobody is complaining about William Shakespeare or public domain works that are out of copyright.

They definitely are, and I deliberately chose a public domain writer for my example to get away from the narrow procedural grounds and focus on the issue: does generating a 'signature' or 'watermark' prove copying? No, of course not, and that's true whether you are in or out of the public domain.

> If this is irrelevant, why is Stability.AI creating an "opt out" system for artists?

What is prudent or nice or moral or good PR != legal. (And vice-versa, of course.)