Diffusion models from scratch, from a new theoretical perspective
1–10 of 44 posts
Re: Diffusion models from scratch, from a new theoretical perspective
#2i'd love an extension of this for the diffusion transformer, which drives Sora and other videogen models. maybe combine this post with https://jaykmody.com/blog/gpt-from-scratch/ and make the "diffusion transformer from scratch" intro
Re: Diffusion models from scratch, from a new theoretical perspective
#3oh this has code! great stuff. diffusion papers are famous for a lot of equations ( https://twitter.com/cto_junior/status/1766518604395155830 ) but code is much more legible (and precise?) for the rest of us. all theory papers should come with reference impl code. i'd love an extension of this for the diffusion transformer, which drives Sora and other videogen models. maybe combine this post with https://jaykmody.com…
All you need to do is replace the U-net with a transformer encoder (remove the embeddings, and project the image patches into vectors of size n_embd), and the diffusion process can remain the same.
Re: Diffusion models from scratch, from a new theoretical perspective
#4Happy to answer any questions.
Re: Diffusion models from scratch, from a new theoretical perspective
#5For example, what is it about image generators makes it hard for them to generate piano keyboards? It seems like some better representation of medium-distance constraints is needed to get alternating groups of two and three black notes.
Re: Diffusion models from scratch, from a new theoretical perspective
#6Author here, when I tried to understand diffusion models I realized that the code and math can be greatly simplified, which led to me writing this blog post and diffusion library. Happy to answer any questions.
Re: Diffusion models from scratch, from a new theoretical perspective
#7oh this has code! great stuff. diffusion papers are famous for a lot of equations ( https://twitter.com/cto_junior/status/1766518604395155830 ) but code is much more legible (and precise?) for the rest of us. all theory papers should come with reference impl code. i'd love an extension of this for the diffusion transformer, which drives Sora and other videogen models. maybe combine this post with https://jaykmody.com…
>i'd love an extension of this for the diffusion transformer All you need to do is replace the U-net with a transformer encoder (remove the embeddings, and project the image patches into vectors of size n_embd), and the diffusion process can remain the same.
Re: Diffusion models from scratch, from a new theoretical perspective
#8This is a nice explanation of the theory. It seems to be dataset-independent. I'm wondering about the specifics of generating images. For example, what is it about image generators makes it hard for them to generate piano keyboards? It seems like some better representation of medium-distance constraints is needed to get alternating groups of two and three black notes.
Re: Diffusion models from scratch, from a new theoretical perspective
#9Earlier quoted context omitted.
>i'd love an extension of this for the diffusion transformer All you need to do is replace the U-net with a transformer encoder (remove the embeddings, and project the image patches into vectors of size n_embd), and the diffusion process can remain the same.
seems too simple. isn't there also a temporal dimension you need to encode?
Re: Diffusion models from scratch, from a new theoretical perspective
#10Immediately reminded of Iterative alpha-(de)Blending [1] which also sets out to set up a conceptually simpler diffusion model, and also arrives at formulating it as an approximate iterative projection process - I think this approach allows for more interesting experiments like the denoiser error analysis, though.