News for hackers. Stuff that matters.
Re:Stable Attribution by codetrotter on Sunday February 05, 2023 @07:28PM (#34671562)
Am I seeing the same thing you are in those two images you linked to?

The first one, generated by AI has you looking at the camera. The other one has you looking at an instrument. They don’t look much like each other to me, in terms of pose or anything.

The first images suggested by Stable Attribution looks a lot more like the AI image to me, in terms of pose and everything.

Re:Stable Attribution by csande17 on Sunday February 05, 2023 @07:38PM (#34671651)
* * *
Re:Stable Attribution by Retr0id on Sunday February 05, 2023 @07:43PM (#34671699)
I think you're missing the point. How does Stable Diffusion know "what does saurik look like?". The answer is of course that it's seen saurik's profile pic in training data. Stable Attribution is not showing that.

As another comment[1] points out:

> This appears to be just looking for the nearest neighbors of the image in embedding space and calling those the source data.

Stylistically similar images are not the same as source images.

[1] https://news.ycombinator.com/item?id=34670483

Re:Stable Attribution by ForestCritter on Sunday February 05, 2023 @08:23PM (#34672018)
I think you may have a point. I can see familiar references and recognize certain artists in ai art without help, yet when I look at the supposed source photos, for the most part, I dont really see it.
Re:Stable Attribution by killjoywashere on Sunday February 05, 2023 @07:50PM (#34671760)
Codetrotter's willingness to forgive, look past, parse into more detail, whatever, is the leeway the billionaires's minions are going to use to enslave us all. That gap of humanity is what will enable the almost rich to make the ultra rich live forever, feasting on Soylent Green made from the rest of us.
Re:Stable Attribution by orangeoxidation on Monday February 06, 2023 @12:30AM (#34673740)
Interesting. So it only shows images that were transformed / mixed to get the output, but does not show images used to learn how to transform / select them?

Sounds very much like a human would do it.

If I 'know' how to recognize saurik and I know how anime is supposed to look like, I can check my digital photo library for a picture of saurik and than use that picture as a template to draw an anime version of saurik. If someone later asked me what pictures I used the photo is the only one I'd present. Not the thousands of anime pictures I have seen teaching me what anime looks like, nor the picture my eyes took meeting saurik.

Re:Stable Attribution by space_fountain on Monday February 06, 2023 @01:19AM (#34674009)
I think saying exactly what an ai of sufficient complexity is doing is a mater for philosophy more than science. But idk if transforming or mixing is how I’d describe what this is doing. In particular it truly does not have a complete representation of any of the images it was trained on. They just wouldn’t fit. It does of course have an understanding of how embeddings relate to images that is informed by the images it’s seen so maybe that counts, but I’m not sure if it’s useful in understanding the limitations or how to improve models like it
Re:Stable Attribution by makomk on Monday February 06, 2023 @06:26AM (#34675979)
The author of this tool is even aware of that argument and just dismisses it with no real justification: https://twitter.com/atroyn/status/1622360994579357696
Re:Stable Attribution by williamcotton on Monday February 06, 2023 @07:42AM (#34676482)
> historically, creatives have been among the first to embrace new technologies. ever since the renaissance, artists have picked up every new tool as it's become available, and used it to make great things.

> these people aren't 'luddites'

This is just total bullshit. I know plenty of artists who are embracing this technology to make all sorts of things that tools like SD were not designed to do, like psychedelic music videos, etc.

What the author means is that a few loud blue check marks on Twitter who claim to be artists have been tweeting, get ready for it, inflammatory claims.

Re:Stable Attribution by williamcotton on Monday February 06, 2023 @08:03AM (#34676693)
> i spoke to law profs about this - the analogy which kept coming up is the vcr. initially basically a piracy machine, it brought to life an enormous content market. had it been banned, creators would have been worse off in the long run.

It’s called Sony v Universal, and the legal doctrine for fair use that resulted is a test for “commercially significant non-infringing use”, of which a tool used for inpainting to remove power lines, latent space psychedelic visuals, and photo booth-painterly-style all are.

Imagine if Stable Diffusion was made illegal. Someone accuses me of using this illegal tool for one of these non-infringing uses, that is an image that doesn’t look like anyone else’s image as far as the court is concerned for copyright. I put the image on my website. If the image itself is not at all infringing, then what is the evidence that Stable Diffusion was used? Should the police be issued a warrant to search my private property for proof that I used Stable Diffusion without a shred of evidence or based on a tool that will always have both false positives and negatives?

Re:Stable Attribution by space_fountain on Monday February 06, 2023 @12:57PM (#34681350)
I do want to clarify that I think stable diffusion and tools like it can engage in illegal copying. For example it will happily produce infringing images of logos and even somewhat random other images https://arxiv.org/pdf/2212.03860.pdf. It seems like it’s devoting an uneven amount of its weights to different images, but I remain unconvinced that’s all it can do, or at least anymore all it can do than for a human artist
Re:Stable Attribution by nonbirithm on Monday February 06, 2023 @04:58PM (#34685033)
This is what happens when you overtrain a model too. Recent developments have allowed partial sets of model weights called LoRAs to be added to the diffusion model. These models can be fine-tuned independently in under half an hour. If you set the learning rate too high, it will start reproducing the source material with extremely high fidelity. This is what overfitting does.

My conclusion is there is an argument to be made for infringement in some cases, but it's based on degrees instead of absolutes. If infringement is defined as "copyrighted works were used in this dataset", then at a certain point (low enough learning rate) it becomes impossible to tell if infringing data was used. You'd be working with weight amounts that are so miniscule they could be rounding errors, yet by that definition would still be infringing.

And since any arbitrary data can be used with some set of keywords, the standard for what constitutes "infringing" changes with each model. As in, it would probably be hard to have a benchmark test that can definitively state "this model violates copyright." Any number of keywords can be trained on to obfuscate the prompt needed to reproduce the data, assuming there was even a high enough LR for the data to be reproduced similarly enough.

I'm unsure if there can ever be one standard for when a set of a bunch of floating point numbers can pass the threshold for constituting infringement. This is applying an absolute standard to a fuzzy algorithm. It's like compressing a JPEG, at some level of compression on the scale a picture of Mickey Mouse becomes unintelligible. But with JPEGs it isn't really useful to have an unintelligible picture of Mickey Mouse. However, it can be extremely useful to have a LoRA with the weights underfit just enough to where the diffusion gives novel outputs.

Re:Stable Attribution by Kuinox on Monday February 06, 2023 @01:38AM (#34674098)
Stable diffusion doesn't transform or mix images in text to img.
Re:Stable Attribution by saurik on Sunday February 05, 2023 @07:50PM (#34671753)
The slight adjustment of where I'm looking is minor. The instrument is uncommon and honestly difficult to get stable diffusion to generate correctly at all; though, from my experience playing with this (I spent a lot of time trying to figure out why it knew who I was before discovering the CLIP database browser), I'm going to argue that the reason that hand is showing up in the position it is is because of my hand holding the violin there. Frankly, we might also as well start nitpicking that the suit-like thing being worn in the generated image is not a tuxedo and the generated person looks a tad bit rounded and has more hair ;P.

However, the key thing here is: do you really think "avatar for saurik" is going to come up with something out of the blue--out of all the numerous random images of people that exist and who have avatar/profile photos... people wearing lots of different clothing and in different orientations--where we can even be talking about such silly things as props and gaze direction? I will assert that would be ridiculous. Clearly seeing at least one photo of me (and AFAIK it was only trained on thousands of copies of that single photo) was absolutely crucial to the construction of this image, and yet this website isn't finding any such to show as it isn't really doing what it is claiming to do (and it isn't clear to me how it could without the original prompt).

From there, SD is upscaling from memory a lot and filling in a ton of details (as almost all of the copies of my photo it was trained on are very small, embedded in screenshots of tweets), but the cornerstone of that construction is clearly my Twitter profile photo... and then, once you do that, you can go back and attempt to rationalize "these were the photos that were most similar to the photo that we generated, and so I guess those were what the algorithm used to generate this image", but--at least in this case--it is pretty obvious that that isn't how this worked as there's no way you start with "avatar of saurik" and arbitrarily pluck an image that is this similar to the one photo of saurik you have.

Re:Stable Attribution by throwaway1851 on Monday February 06, 2023 @07:15AM (#34676263)
> Clearly seeing at least one photo of me (and AFAIK it was only trained on thousands of copies of that single photo) was absolutely crucial to the construction of this image, and yet this website isn't finding any

I think there are two separate ideas that are being conflated here. The first idea is that there is a mapping between text input and a joint text/image embedding space. For that mapping, yes, your profile photo (paired with some caption text that says saurik) would have to be the most important training input because, as you say, how else does SD know what “saurik” looks like?

But the second idea is the mapping from the shared latent space to an image output. It is NOT necessarily true that your profile photo is the most significant training example for the generated image. That’s because the text “saurik” can map to a neighborhood in the latent space that has all the photos this tool retrieved — photos which are indeed very similar to the generated image.

As an example, let’s say that I resemble Ben Affleck. And you type in “throwaway1851” and you get back an image that does look like me, but also looks an awful lot like Ben Affleck. In this case I really wouldn’t be surprised if my one profile photo didn’t contribute much to the generated image as compared to a dozen different photos of Ben Affleck. Perhaps the original mapping just pointed to Affleck anyway, because I wasn’t significant enough to end up taking space in the model’s parameters.

Re:Stable Attribution by saurik on Tuesday February 07, 2023 @03:39AM (#34690264)
I think a key question in attribution is whether the model would have been able to generate the same result without access to the input, and then how much it would have lost having been restricted from that input. If you remove from the mechanism all of the copies of my profile picture (and there are a lot of them...), I guess I am willing to believe that it might still have enough text descriptions of saurik to come up with sort of what I look like, but I doubt it? On the other side, if you remove any random handful of these profile pictures of fat hairy nerds (aka, people who look a bit like me) I doubt it really needed all of them to figure out what it needed to know.

To take your example: let's say its knowledge that "throwaway1851" looks like Ben Affleck comes from your one profile picture--the only time the multi-modal embedding model was ever able to associate that word and Ben Affleck's photo into a similar location in the vector space--then if it wasn't allowed to see that photo during its training there is no way that would have happened. It simply doesn't matter if it seems to mostly rely on its knowledge of Ben Affleck to conjure up a photo of you: it has so many photos of Ben Affleck that none of them really matter anymore, but that single photo of you that made it even realize you looked like Ben Affleck in the first place is absolutely critical and probably deserves most of the attribution.

Re:Stable Attribution by throwaway1851 on Tuesday February 07, 2023 @07:58AM (#34692125)
That makes sense in a “but for” type of causality. However, I don’t think that’s what this website is aiming for (however flawed or misleading it might be so far as its methodology is concerned). I think the idea of attribution here is more of a visual concept: ie, “which images contributed visual features in the output image?”

For that, if you wrote down the latent embedding for “saurik”, then retrained CLIP and Stable Diffusion from scratch without any of saurik’s profile pics in the training data, it is quite possible that you could generate an image from the embedding you wrote down and it would look the same.

Pure speculation on my part - perhaps your profile pic is the real source material and this website is junk. I just think it’s an interesting and worthy question the site is trying to answer, even if it’s not possible to answer it with much certainty.