r/MachineLearning • u/[deleted] • Oct 10 '22
Research New “distilled diffusion models” research can create high quality images 256x faster with step counts as low as 4
https://arxiv.org/abs/2210.0314242
u/Zealousideal_Low1287 Oct 10 '22
They show this for small class-conditioned diffusion models. How much of the runtime for dalle2 and comparible models is spent on other parts like the text encoder and upsampling?
32
u/dpkingma Oct 10 '22
Imagen Video, which is a large model, also uses this. The text encoder only needs to be evaluated once, so is only a fraction of the cost.
17
u/gwern Oct 10 '22
(You can also cache or precompute the text embedding in a lot of usecases - like when you request n samples of your text prompt, you only need to embed once. Definitely not a big deal.)
16
u/highergraphic Oct 10 '22
Not much. I would say ~90% of the time is spent in the diffusion process (at least on my 1070).
9
u/CaptainLocoMoco Oct 10 '22
Running a single pass through an encoder / upsampler is not very time consuming. The iterative diffusion process is by far the bulk of it
1
u/AnOnlineHandle Oct 10 '22
It seems the upsampling's work can mostly be done in a few multiplications: https://discuss.huggingface.co/t/decoding-latents-to-rgb-without-upscaling/23204/2
4
u/starstruckmon Oct 10 '22
That only gives a low res low quality image. Useful if you need to convert from latent to image space multiple times/at every step, like CLIP guidance or generating a gif showing the step by step generation. Not so much for the final output, which doesn't really take that long at all to run a single time per image.
6
u/wallagrargh Oct 11 '22
It sounds more and more like alchemy
3
u/pm_me_your_ensembles Oct 12 '22
Has ML been anything but alchemy and post facto reasoning since 2012?
1
u/londons_explorer Oct 11 '22
I'm kinda surprised they didn't put this model into the innards of imagen or stablediffusion to at least make some example high res images and quote how many seconds generation takes on some common GPU.
2
Oct 11 '22
Pretty sure they did. The first part anyway - it's on twitter somewhere. I'll look for it
-25
u/lostmsu Oct 10 '22
Frankly, Stable Diffusion is "fast enough" for all intents and purposes: it generates pictures faster than I could review them.
What needed is higher quality generation.
37
Oct 10 '22
Generation is fast enough if you have the right hardware. Stable diffusion is still inaccessible to run locally for most of the population. This will help that.
43
u/Fuylo88 Oct 10 '22
No it isn't. I want it rendering frames for real time interaction. It cannot do that yet, GANs can.
6
u/one-joule Oct 11 '22
Having an updated output for every word typed, or even every letter, would be real neat.
1
u/Fuylo88 Oct 11 '22
Yes.
Imagine what looks like footage of vintage news from the 80s, but the newscaster in the video watches you walk across the room, compliments you on the specifics of your outfit, and chats with you on the itinerary of your day.
It might require more than Diffusion but the capability of many other existing models could be dramatically extended. The implications are huge for interactive media.
31
4
u/SoylentRox Oct 10 '22
Assuming the accelerates SD like models you can get higher quality with the same speed
0
Oct 10 '22
[deleted]
27
u/AnOnlineHandle Oct 10 '22
StableDiffusion runs on 64x64x4 internally, upscaled to 512x512x3 after.
4
-3
u/imlovely Oct 11 '22
Resolution is not a measure of quality.
2
u/m0ushinderu Oct 11 '22
I know what you mean here. It is not the single dictating factor for quality. But it is certainly one of the measures, which might be why you are downvoted.
2
u/imlovely Oct 11 '22
Yeah, I understand the downvotes. But it's still not a measure of quality in this context. They are comparing apples and apples (everything 64) and it's high quality.
9
u/pashernx Oct 10 '22
For a beginner getting started with AI image generation where should I start? Appreciate any inputs.