Diffusion Models | Paper Explanation | Math Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ค. 2024
  • Diffusion Models are generative models just like GANs. In recent times many state-of-the-art works have been released that build on top of diffusion models such as #dalle or #imagen. In this video I give a detailed explanation of how they work. At first I explain the fundamental idea of these models and later we dive deep into the math part. I try to explain all of this on a really easy & intuitive level. After the math derivation, we look at the results from different papers and how they compare to other methods.
    #diffusion #dalle2 #dalle #imagen
    00:00 Introduction
    02:48 Idea & Theory
    07:06 Architecture
    09:33 Math Derivation
    26:59 Algorithms
    28:22 Improvements
    29:43 Results
    31:34 Summary
    Further Reading:
    1. Paper: arxiv.org/pdf/1503.03585.pdf
    2. Paper: arxiv.org/pdf/2006.11239.pdf
    3. Paper: arxiv.org/pdf/2102.09672.pdf
    4. Paper: arxiv.org/pdf/2105.05233.pdf
    5. VAE & Reparam. Trick: lilianweng.github.io/posts/20...
    6. Written Tutorial: lilianweng.github.io/posts/20...
    PyTorch Implementation Video: • Diffusion Models | PyT...
    Follow me on instagram lol: / dome271
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 386

  • @outliier
    @outliier  ปีที่แล้ว +34

    Here is the implementation video in PyTorch: th-cam.com/video/TBCRlnwJtZU/w-d-xo.html

    • @bootsncats1873
      @bootsncats1873 ปีที่แล้ว

      Q

    • @homataha5626
      @homataha5626 ปีที่แล้ว

      Hello, How did you make the animations in your video?

  • @ulamss5
    @ulamss5 ปีที่แล้ว +122

    Explaining the notations is a game changer... more educational content channels should do this.

  • @felixvgs.9840
    @felixvgs.9840 ปีที่แล้ว +10

    What an amazing video!! I looked everywhere for a comprehensible video about Diffusion Models and yours was simply the best… Please keep up the effort and the great content :)

  • @sauvage_pikachu
    @sauvage_pikachu ปีที่แล้ว +9

    Hey, thanks very much for making this wonderful video! I just want to appreciate the fact that all notations are clearly explained before going into the math part. That helps a lot! Great work!

  • @christiandeverall5661
    @christiandeverall5661 ปีที่แล้ว +4

    I've watched a bunch of videos trying to understand Diffusion (Ari Seff, Assembly AI etc) and this one taught me the most by far. Please keep making videos!

  • @user-sz1iw4zi4y
    @user-sz1iw4zi4y ปีที่แล้ว +4

    This video is amazing. I think the format of your video was incredible, you went over the literature and told us how we got there, you went over the high-level explanation then got into the nitty-gritty detail and then just in case we miss something you gave an amazing recap. This is how all videos on deep learning should be. Especially as we're getting into more Niche topics.

  • @elisawarner7942
    @elisawarner7942 ปีที่แล้ว

    Thank you so much for making this video! It was very clear and I really appreciate how you walked through the math and the reasoning for how they went from the initial loss to writing it in terms of predicting the noise. Everything was well made. I look forward to watching your other videos!

  • @ravindrabisram137
    @ravindrabisram137 ปีที่แล้ว +1

    This is the first source I was able to find that explained the math behind diffusion models in a comprehensible way instead of glossing over it. Thanks a lot, you have earned my like and subscribe with just this video alone!

  • @nikitadeshpande6643
    @nikitadeshpande6643 ปีที่แล้ว +2

    You are the Outlier we cannot miss! Real gem. Thanks for the explanation man!

  • @kateyurkova6384
    @kateyurkova6384 8 หลายเดือนก่อน +2

    Brilliant approach of lining up equations into a story, great work, thanks!

  • @SteveSperandeo
    @SteveSperandeo ปีที่แล้ว +4

    Excellent presentation. Great balance between depth and succinctness. Thank you!

  • @xiaohaolin6464
    @xiaohaolin6464 ปีที่แล้ว +1

    Excellent video! Very clear derivation, and good animation. You are a good teacher with loads of patience, and guided us step by step!

  • @akshayshrivastava97
    @akshayshrivastava97 ปีที่แล้ว +2

    Very well explained! You made sure to include a lot of important points others either omit or simply skim over. Thank you very much.

  • @-long-
    @-long- 6 หลายเดือนก่อน +33

    For those who are confused about the recursive expansion at 13:13 (like I did), it's "a property of Gaussian distributions, where the variance of the sum of two independent Gaussian variables is the sum of their variances. "

    • @herrbonk3635
      @herrbonk3635 3 หลายเดือนก่อน

      I'm confused about the notation q(Xt|Xt-1) and p(Xt-1|Xt).
      Never seen the result of a function presented as part of the argument before.
      Not even sure I understood which is which from his prose.

    • @yogeshsingular
      @yogeshsingular 3 หลายเดือนก่อน

      Seems to follow from uncorrelated noise variables at different steps, using the formula var(X1+X2)=var(X1)+var(X2)+2cov(X1,X2) where cov(X1,X2)=0. We don't seem to need to use normality here

  • @JasimUsmani
    @JasimUsmani ปีที่แล้ว

    Thank you for making such a high quality video explaining the math. Often, other channels do not emphasize on the math and this video is perfectly putting light on how exactly the math fits in diffusion models. Thank you for your amazing work. Please, make more such content!

  • @vladi21k
    @vladi21k ปีที่แล้ว +1

    After going through 4 different YT videos, yours was the only one that was clear enough for me to understand. Thank you very much!

  • @StephenRayner
    @StephenRayner ปีที่แล้ว +8

    Wow……. Haven’t read math in a while, this was explained excellently. I have a masters degree in physics but don’t do much math anymore since my degree in 2017.
    I really like how much detail you went into with the derivations and the pausing to ground what we are doing with some intuition. Well done man 🎉

  • @kumaranragunathan7602
    @kumaranragunathan7602 ปีที่แล้ว +3

    Explaining the mathematical reasoning and formulas behind the model in such detailed fashion is amazing , keep up your good work

  • @NicholasRenotte
    @NicholasRenotte ปีที่แล้ว +32

    Wow, this is absolutely brilliant. Massive kudos for making quite the complex topic significantly more digestible!

  • @icejust9195
    @icejust9195 8 หลายเดือนก่อน +1

    I really like your math part! Please keep going amazing work!

  • @kartikeyabhardwaj3919
    @kartikeyabhardwaj3919 ปีที่แล้ว

    this is by far the best video on diffusion models that explains the math clearly, great job!

  • @FLLCI
    @FLLCI ปีที่แล้ว

    Absolutely brilliant coverage! Keep up the good work. You are helping a lot of people.

  • @anujshah7949
    @anujshah7949 ปีที่แล้ว +2

    Absolute king! Your work is such an important part of this community

  • @timforcade1029
    @timforcade1029 ปีที่แล้ว

    Many thanks for this. I'm an artist with very limited math skills and though I can't say I understood the whole, your teaching gave me a solid basis and an understanding of this I've been wanting. You have another fan.

  • @AdmMusicc
    @AdmMusicc 2 หลายเดือนก่อน +2

    This was the best ML paper review I have ever seen. You stopped making videos but I would really love to see you go through more of this for more research in the field man! Hatsoff to you.

  • @yahuiz7877
    @yahuiz7877 ปีที่แล้ว

    awesome explanations!! look forward to more brilliant tutorial/explanation vids!!

  • @TheKkunte
    @TheKkunte ปีที่แล้ว +2

    This is the best explanation I have found so far. Thank you.

  • @AICoffeeBreak
    @AICoffeeBreak ปีที่แล้ว +84

    This is incredible! Did not see a video with the math explanations of diffusion models yet. And you animated it in manim! Just great. 😎

    • @outliier
      @outliier  ปีที่แล้ว +11

      thank you so much! actually it's not even animated with manim. It's all done in Premiere Pro haha. But I guess that I'll definitely do those things in manim in future videos....

    • @leif1075
      @leif1075 ปีที่แล้ว

      @@outliier Thanks for sharing bit how do ppl.not get bored and frustrated during the math lart..even if you are a math genius..and if you don't think of the smweird step of taking out the first term of the sum..can't you still reach the same goal? So why do thst at all?

  • @InturnetHaetMachine
    @InturnetHaetMachine ปีที่แล้ว +2

    Thank you so much for delving deep into the math. I'm an engineer (not software) and self-learning AI. The papers are unfortunately not written in the most explainable way, and even though I've taken high level math courses for my degree, the notation and terminology in the papers make it pretty inaccessible and frustrating to follow. Thanks for going through this paper, I hope you continue to make more videos.

  • @codingblaze4611
    @codingblaze4611 ปีที่แล้ว

    Nicely explained. Most of the people leave these derivatives thinking it would make the tutorial boring but without these derivativation we don't understand how was the methodology evolved. Great job reasearching and explaining.

  • @NellyParsley
    @NellyParsley ปีที่แล้ว +1

    Man, this is incredible. When I saw these equations in the paper and other sources I was like "no way I am gonna understand that".. but with this video it all makes sense. Brilliantly done, thank you so much for your work. Instant subscribe and I am going to check other content on your channel :D

  • @user-os4tw9hl5w
    @user-os4tw9hl5w 11 หลายเดือนก่อน

    Easily the best video on Diffusion models. Great work!

  • @itsnotthattough7588
    @itsnotthattough7588 8 หลายเดือนก่อน

    Thanks for the simple but detailed explanation! I wouldn't be able to understand the topic without your video.

  • @brianpulfer4159
    @brianpulfer4159 ปีที่แล้ว +9

    This is the first ever video of you that I get to see. Congrats, truly amazing. I believe you are among the first people on YT to dig into the math equations of ML papers like this, and I believe it's truly valuable. Keep it up!

  • @user-fj9bh7kt7t
    @user-fj9bh7kt7t ปีที่แล้ว

    you're a GOAT for this man, bringing together intuition and math notation is drastically underrepresented in general, thanks so much for this video

  • @srinathkumar1452
    @srinathkumar1452 11 หลายเดือนก่อน

    Wow this is such a fantastic explanation. I love how you describe the intuitions behind the authors' mathematical choices.

  • @javiersolisgarcia
    @javiersolisgarcia 5 หลายเดือนก่อน

    I started reading articles and looking for learning content on diffusion modelling and the notation seemed a bit difficult. However, I am only half way through this video and I can assure you that this video is a must watch. Very clear explanation, I will recommend it to anyone interested in exploring this field, congratulations on your work!

  • @Steveineiter
    @Steveineiter ปีที่แล้ว

    One of the best explanations here on TH-cam - thank you very much! 🥳

  • @andyfeng6
    @andyfeng6 ปีที่แล้ว +3

    Thank u for the detailed explaination, looking forward for your pytorch implementation video!

  • @mohammadpishbin
    @mohammadpishbin 7 หลายเดือนก่อน

    I just watched your video on diffusion models, and I am incredibly impressed with the depth of information you provided. Your explanation was clear, concise, and immensely helpful. Thank you for sharing your knowledge on this topic. I learned a lot from your video and I truly appreciate your efforts in creating such valuable content.

  • @chiscoduran9517
    @chiscoduran9517 ปีที่แล้ว +3

    Just the video that I needed, thanks so much!!!

  • @JBoy340a
    @JBoy340a ปีที่แล้ว +1

    Wow! Amazing job explaining diffusion models and why they use the math they do.

  • @Wondaful-mr2dl
    @Wondaful-mr2dl ปีที่แล้ว

    Truly awesome! Looking forward to the upcoming Pytorch implementation video!

  • @PakkaponPhongtawee
    @PakkaponPhongtawee ปีที่แล้ว +2

    Amazing! The visualization is great and easy to follow.

  • @sedi_rockstar7481
    @sedi_rockstar7481 ปีที่แล้ว

    Just want to say thank you. I believe this is one of the most high-quality videos I have ever seen given on diffusion models! Keep it going. I have subscribed!

    • @outliier
      @outliier  ปีที่แล้ว

      thank you so much!

  • @wdabrilvi
    @wdabrilvi ปีที่แล้ว

    I was just using those tools to generate images but due to this video i got a lot more interested in understanding how they work. I hope you keep doing this kind of videos.

  • @TheSeamau5
    @TheSeamau5 ปีที่แล้ว +8

    Thank you so much. I actually just recently worked out a lot of this math a couple weeks ago for a model I'm building and this video would've saved me so much time. Very clear. Thank you 🙏

  • @oriyonay8825
    @oriyonay8825 ปีที่แล้ว +1

    this video is *by far* the best video on diffusion models i've seen on youtube. this was very pleasant to watch and you made everything really clear. brilliant!! i subscribed and turned on notifications :)
    have an amazing day :)

  • @statixvfx1793
    @statixvfx1793 ปีที่แล้ว +4

    Great explanation, thank you for sharing your knowledge! Subscribed!

  • @yuhonglin8898
    @yuhonglin8898 ปีที่แล้ว

    Thanks for the fantastic introduction!! Well made video!

  • @RezaSoumi
    @RezaSoumi 9 หลายเดือนก่อน

    Thank you. Your explanation has been profoundly enlightening and exceptionally lucid, providing me with a comprehensive understanding.

  • @aspiringmango1929
    @aspiringmango1929 ปีที่แล้ว +5

    16:24 I don't understand how you rewrote the KL divergence as the log ratio. Specifically, I don't understand how D_KL (q || p) = log(q / p). This is different from the definition of the KL divergence, which would suggest that D_KL (q || p) = integral q * log(q / p). Could someone please explain why D_KL (q || p) = log(q / p) in this case? Thank you! This was a fantastic video and your efforts are greatly appreciated!

    • @lukasaichberger3081
      @lukasaichberger3081 ปีที่แล้ว

      You are right! To be precise, he should be talking about the expected value of the log ratio.

    • @ruofengmusictech
      @ruofengmusictech 4 หลายเดือนก่อน

      See the original paper arxiv.org/pdf/2006.11239.pdf page 2. The objective is to maximum the "expected" negative log likelihood. Since the expectation is calculated as integral over x_1...T rather than x_0, it'll be 1. You can think that everything the video talks about happen inside the E_q[ ... ] bracket

  • @riazzai9250
    @riazzai9250 8 หลายเดือนก่อน

    The explaination about loss function, especially the part of KL divergence, is amazing! I love your video!

  • @deadbeat_genius_daydreamer
    @deadbeat_genius_daydreamer 9 หลายเดือนก่อน

    Excellent video mate, keep up the good work ✌️✌️

  • @checkout8352
    @checkout8352 ปีที่แล้ว

    Superb work.
    1. Gone through the history of diffusion of models by explaining all the previous papers.
    2. Giving an intuition of whole idea.
    3. Explaining math behind it.
    4. Also incorporating future prospects

  • @sergiomanuel2206
    @sergiomanuel2206 ปีที่แล้ว

    The video is perfect! Thank you so much. You helped me to understand better all the formulation! Thanks again!!

  • @user-sc7nn9sz3r
    @user-sc7nn9sz3r 28 วันที่ผ่านมา

    what a wonderful and thoughtful way to deliver the whole langscape of the diffusion model! Nice video! 👍

  • @MK-yj7pn
    @MK-yj7pn ปีที่แล้ว

    Fantastic video, man. Explained the stuff really really well. Thanks.

  • @markpayton3895
    @markpayton3895 ปีที่แล้ว

    Best video on diffusion model right now because of the math derivation of everything. Thank you!

  • @bayesianmonk
    @bayesianmonk ปีที่แล้ว

    You have a superpower of explaining math. Really enjoyed it.

  • @user-ri9lg7dh7c
    @user-ri9lg7dh7c ปีที่แล้ว

    Awesome! Right what I was looking for. Thank you for the explanation !)

  • @cutethanks
    @cutethanks 2 หลายเดือนก่อน

    The most clear explanation I’ve seen on YT. Much more clear than that from MIT lectures lol
    Many thanks

  • @IndrainKorea
    @IndrainKorea ปีที่แล้ว

    Thank you for the explanation, it's really well made, I can see you put a lot of efforts in it, well done! 👏👍

  • @inakitodc6816
    @inakitodc6816 6 หลายเดือนก่อน

    just the best expanation by far I have seen in days of searching. congrats

  • @frapbrab664
    @frapbrab664 ปีที่แล้ว +1

    You're the GOAT man, very great summary of diffusion

  • @Shashank-vv4ex
    @Shashank-vv4ex 10 หลายเดือนก่อน

    Tons of thanks for this amazing explanation!!

  • @fahim78611
    @fahim78611 ปีที่แล้ว +2

    Greatly explained the papers and it's depend topics 👏👏👏

  • @stevemurch3245
    @stevemurch3245 ปีที่แล้ว

    Very well done. Animations are super helpful and the math explanation is clear.

  • @pengxiaohan3371
    @pengxiaohan3371 ปีที่แล้ว

    Nice explaination in Math. Rarely see a such detailed diffusion model explaination video. Good job and thanks

  • @shakibyazdani9276
    @shakibyazdani9276 ปีที่แล้ว

    Well explained, Thanks for the great explanation man!

  • @ziyuwan4513
    @ziyuwan4513 ปีที่แล้ว

    Thanks for the great explanation!!! This video is amazing!

  • @ashok_learn
    @ashok_learn ปีที่แล้ว

    I salute your hardwork on this video. Thank you from the bottom of my heart. 😃

  • @fizzarubab8959
    @fizzarubab8959 8 หลายเดือนก่อน

    Thank you for the wonderful explanation!

  • @sanjaybhandari2487
    @sanjaybhandari2487 ปีที่แล้ว +2

    Hopping for more great contents .

  • @autkarsh8830
    @autkarsh8830 หลายเดือนก่อน

    Thanks, the video was really helpful, it gave me such a great time in understanding diffusion models, kudos and keep on making such quality content!

  • @CarloRobiati
    @CarloRobiati ปีที่แล้ว +2

    awesome content, thanks for sharing!

  • @homataha5626
    @homataha5626 ปีที่แล้ว +1

    that was really enjoyable!! Thank you very much!

  • @williamdevena8565
    @williamdevena8565 ปีที่แล้ว

    Great Video! Hands down the best explanation of DDPM’s math

  • @yyq90
    @yyq90 ปีที่แล้ว +3

    So satisfied to know that we just need to predict the noise!!! After so many formulars...🙏🙏🙏

  • @simonetruglia
    @simonetruglia ปีที่แล้ว

    Keep going mate, this one is an amazing video about the subject

  • @Magnify.
    @Magnify. ปีที่แล้ว +1

    Great video, thank you for this!

  • @QuOUseTERSEa
    @QuOUseTERSEa ปีที่แล้ว

    This helps me a lot! You are really a good presenter.

  • @ruoyufeng6727
    @ruoyufeng6727 ปีที่แล้ว

    Fantastic video, looking for your next video !

  • @crackwitz
    @crackwitz ปีที่แล้ว

    Would have upvoted several times. Yours is the first video I found that actually goes into the math. Others just slap it onto the screen as fact, dazzling and confusing the viewer.

  • @WWG1-WGA
    @WWG1-WGA 7 หลายเดือนก่อน

    Men! you did awesome !. Subscribed and I'll keep learning

  • @rajatagrawal5339
    @rajatagrawal5339 10 หลายเดือนก่อน

    The detailed explanation is mindblowing. I learned a lot today. Thank You.❣

  • @dockosow7187
    @dockosow7187 ปีที่แล้ว

    this is amazing how you explain the maths. thank you for sharing. Thank you a lot

  • @ryanl1988
    @ryanl1988 ปีที่แล้ว

    This is my first time leaving a comments under a ML tutorial YT channel. The explanation is amazing intuitive, thanks for sharing your knowledge and creating this video!

    • @outliier
      @outliier  ปีที่แล้ว

      So nice to hear that thank you!

  • @yogeshsingular
    @yogeshsingular 3 หลายเดือนก่อน

    Really great video. We need more videos like this. Helped me understand cryptic papers which can be very frustrating...

  • @spiritual-Aatma
    @spiritual-Aatma 4 หลายเดือนก่อน

    Video is really well made. You did well to summarize to keep things simple and explanatory.

  • @spyrosmarkesinis443
    @spyrosmarkesinis443 ปีที่แล้ว

    Great content, cheers man!

  • @Jianju69
    @Jianju69 ปีที่แล้ว +1

    Viele danke for explaining all of this so clearly.

  • @thecheekychinaman6713
    @thecheekychinaman6713 9 หลายเดือนก่อน

    Most videos do not going into the mathematics, or are explained in a dry slideshow manner. This is really something else.

  • @user-gq6hm8kn6t
    @user-gq6hm8kn6t 6 หลายเดือนก่อน

    Wonderful video! This really helps me to better understand the threom behind ddpm, many thanks

  • @kelseywang7709
    @kelseywang7709 ปีที่แล้ว

    really nice explanations!! thank you so much

  • @chemaguerra1635
    @chemaguerra1635 ปีที่แล้ว

    This breakdown is godsend!

  • @joyshen9015
    @joyshen9015 11 หลายเดือนก่อน

    Really a life savior, thank you so much!!

  • @anujshah645
    @anujshah645 ปีที่แล้ว

    wow. This is beautiful. You made the math look easier. Would love to learn math from you.Thanks.

  • @cleverclover7
    @cleverclover7 4 หลายเดือนก่อน

    i just watched like 5 of these videos on this subject, specifically the math. This was the best one by far. You should teach.

  • @vikimazo
    @vikimazo 3 หลายเดือนก่อน

    Thanks! A great explanation!