Diffusion Models | Paper Explanation | Math Explained

  Рет қаралды 272,549

Outlier

Outlier

Күн бұрын

Пікірлер: 441
@outliier
@outliier 3 ай бұрын
After 2 years I made a new video explaining diffusion models from a different angle. I find this approach much better to understand: kzbin.info/www/bejne/eGXSeX2meq91d6M
@Тима-щ2ю
@Тима-щ2ю 3 ай бұрын
Are diffusion models really so hard to understand?
@outliier
@outliier 3 ай бұрын
@@Тима-щ2ю you tell me
@psycheguy503
@psycheguy503 3 ай бұрын
after spending 2 hours taking notes and understanding the 30 mins video, and scrolled down to find this x))
@ulamss5
@ulamss5 2 жыл бұрын
Explaining the notations is a game changer... more educational content channels should do this.
@akashprajapathi6056
@akashprajapathi6056 6 ай бұрын
Understanding math easier than its notation used 😂😂😂😂😂
@AdmMusicc
@AdmMusicc 10 ай бұрын
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.
@Chadpritai
@Chadpritai 3 ай бұрын
music and ML >>>
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Wow, this is absolutely brilliant. Massive kudos for making quite the complex topic significantly more digestible!
@AICoffeeBreak
@AICoffeeBreak 2 жыл бұрын
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 2 жыл бұрын
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?
@-long-
@-long- Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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
@sauvage_pikachu
@sauvage_pikachu 2 жыл бұрын
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!
@vladi21k
@vladi21k 2 жыл бұрын
After going through 4 different YT videos, yours was the only one that was clear enough for me to understand. Thank you very much!
@christiandeverall5661
@christiandeverall5661 2 жыл бұрын
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!
@Nixo_01
@Nixo_01 21 күн бұрын
I am so glad I found this video. I have a more simplified understanding of diffusion models now. Please keep posting such informative and easy to understand content.
@anujshah7949
@anujshah7949 2 жыл бұрын
Absolute king! Your work is such an important part of this community
@felixvgs.9840
@felixvgs.9840 2 жыл бұрын
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 :)
@ravindrabisram137
@ravindrabisram137 2 жыл бұрын
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!
@TheKkunte
@TheKkunte 2 жыл бұрын
This is the best explanation I have found so far. Thank you.
@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!
@frapbrab664
@frapbrab664 2 жыл бұрын
You're the GOAT man, very great summary of diffusion
@brianpulfer4159
@brianpulfer4159 2 жыл бұрын
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!
@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.
@inakitodc6816
@inakitodc6816 Жыл бұрын
just the best expanation by far I have seen in days of searching. congrats
@cutethanks
@cutethanks 11 ай бұрын
The most clear explanation I’ve seen on YT. Much more clear than that from MIT lectures lol Many thanks
@SaulRamirez-x6e
@SaulRamirez-x6e Жыл бұрын
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.
@parhamnooranbakht9053
@parhamnooranbakht9053 27 күн бұрын
One of the best explanations out there. Great work.
@thecheekychinaman6713
@thecheekychinaman6713 Жыл бұрын
Most videos do not going into the mathematics, or are explained in a dry slideshow manner. This is really something else.
@codingblaze4611
@codingblaze4611 2 жыл бұрын
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.
@aalonsobizzi7599
@aalonsobizzi7599 Ай бұрын
So, so clear, thanks! Exactly what I was looking for to study for my deep generative models project
@kateyurkova6384
@kateyurkova6384 Жыл бұрын
Brilliant approach of lining up equations into a story, great work, thanks!
@nikitadeshpande6643
@nikitadeshpande6643 2 жыл бұрын
You are the Outlier we cannot miss! Real gem. Thanks for the explanation man!
@andyfeng6
@andyfeng6 2 жыл бұрын
Thank u for the detailed explaination, looking forward for your pytorch implementation video!
@AbrarMajeedi
@AbrarMajeedi Жыл бұрын
Easily the best video on Diffusion models. Great work!
@jiejie_vegetable
@jiejie_vegetable Жыл бұрын
This is the best video I have ever watched that can explain diffusion models so clear even to someone like me :P
@markpayton3895
@markpayton3895 Жыл бұрын
Best video on diffusion model right now because of the math derivation of everything. Thank you!
@aspiringmango1929
@aspiringmango1929 Жыл бұрын
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 Жыл бұрын
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
@krishnadave9429
@krishnadave9429 2 ай бұрын
hey did you understand why was it done! i have the same question.Could you please share it if found?
@JBoy340a
@JBoy340a 2 жыл бұрын
Wow! Amazing job explaining diffusion models and why they use the math they do.
@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.
@caiocj1
@caiocj1 Жыл бұрын
Thanks for the video. Can someone explain why we can do the KL divergence step at 19:55? To me you haven't taken the integral of the expression across all samples and there's no q(x_T|x_0) in front of the first term for example, so why can we do this?
@kumaranragunathan7602
@kumaranragunathan7602 Жыл бұрын
Explaining the mathematical reasoning and formulas behind the model in such detailed fashion is amazing , keep up your good work
@StephenRayner
@StephenRayner Жыл бұрын
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 🎉
@TheVarun6
@TheVarun6 4 ай бұрын
This is an amazing video. I've gone through many videos to get the intuition behind the diffusion model, but nothing never helped. You did a great job simplifying the entire process.
@BritskNguyen
@BritskNguyen 3 ай бұрын
I really like your video because instead of using a bloated set of terminologies like conditional, marginal, prior, posterior blah blah, u just nailed it down to "function". You're like the p function that denoises these condiffusion jargons :))
@outliier
@outliier 3 ай бұрын
@@BritskNguyen Thank you! Take a look at my latest video. I think this approach to diffusion models is even better
@checkout8352
@checkout8352 2 жыл бұрын
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
@NellyParsley
@NellyParsley 2 жыл бұрын
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
@javiersolisgarcia
@javiersolisgarcia Жыл бұрын
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!
@alexanderstark3229
@alexanderstark3229 Жыл бұрын
Best explanation I've seen so far. Though notation in math derivation section is still poorly explained... I understand every step in derivation, but don't always understand what each term logically means.
@outliier
@outliier 11 ай бұрын
Can you give some examples? :3
@TheSeamau5
@TheSeamau5 2 жыл бұрын
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 🙏
@chiscoduran9517
@chiscoduran9517 2 жыл бұрын
Just the video that I needed, thanks so much!!!
@riazzai9250
@riazzai9250 Жыл бұрын
The explaination about loss function, especially the part of KL divergence, is amazing! I love your video!
@yyq90
@yyq90 2 жыл бұрын
So satisfied to know that we just need to predict the noise!!! After so many formulars...🙏🙏🙏
@seriousbusiness2293
@seriousbusiness2293 Жыл бұрын
This is one of the rare videos i wanted to like twice. Learning this in uni but im struggeling so hard, i think i am a mathy person but all those unexplained choices and variables, calculation stepps without knowing why... it made it so hard to more deeply understand the material. But your video is just perfect, referencing the sam papers but now its all more childs play and fun to stop and follow. Its almost sad you only have so few videos but at least the quality is through the roof.
@itsnotthattough7588
@itsnotthattough7588 Жыл бұрын
Thanks for the simple but detailed explanation! I wouldn't be able to understand the topic without your video.
@kartikeyabhardwaj3919
@kartikeyabhardwaj3919 2 жыл бұрын
this is by far the best video on diffusion models that explains the math clearly, great job!
@bhavyaruparelia7431
@bhavyaruparelia7431 7 ай бұрын
Your explanations are simply great! I do recommend you to return back to KZbin covering latest papers in this field :)
@Magnify.
@Magnify. 2 жыл бұрын
Great video, thank you for this!
@HearinCantMeow
@HearinCantMeow 9 ай бұрын
what a wonderful and thoughtful way to deliver the whole langscape of the diffusion model! Nice video! 👍
@hieuaovan7101
@hieuaovan7101 7 ай бұрын
love to see more good explaination for other model, your explaination is soo good
@cleverclover7
@cleverclover7 Жыл бұрын
i just watched like 5 of these videos on this subject, specifically the math. This was the best one by far. You should teach.
@crackwitz
@crackwitz 2 жыл бұрын
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.
@DarshanShah838
@DarshanShah838 6 ай бұрын
Kudos to you. Hats off to explain such a topic with so much ease even though the math equations looks scary at first. You made it real easy. Great work
@icejust9195
@icejust9195 Жыл бұрын
I really like your math part! Please keep going amazing work!
@curiousseeker3784
@curiousseeker3784 Жыл бұрын
I remember coming at this video a month ago to understand diffusion models, getting overwhelmed and lost by te scary tons of maths formulae, Now after reviewing the necesary math concept, Realized how beautifully you've put it all together....Amazing
@curiousseeker3784
@curiousseeker3784 Жыл бұрын
OMG this is insanely complex thing i've ever learned yet in ML/AI and tho I see I still gotta spend some time in it but kuddos u've done a super amazing job!
@outliier
@outliier Жыл бұрын
Thank you so much, super happy the video helped you!!!
@curiousseeker3784
@curiousseeker3784 Жыл бұрын
@@outliier brother there's a slight confusion. In Algo#2 , we already sampled a random noise x_t , and remove a predicted noise to obtain x_t-1, then why do we add another random noise z and what is even that z for ?
@outliier
@outliier Жыл бұрын
@@curiousseeker3784 when you have x_t and you predict the noise you get an approximation for x0. This however doesn’t look so good, thats why you add noise again until x_t-1 and then repeat the process. So you have an iterative sampling process.
@SteveSperandeo
@SteveSperandeo 2 жыл бұрын
Excellent presentation. Great balance between depth and succinctness. Thank you!
@NinadDaithankar5
@NinadDaithankar5 7 ай бұрын
Amazing video; thanks a lot for going in depth on the math with simplified animations!
@sedi_rockstar7481
@sedi_rockstar7481 2 жыл бұрын
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 2 жыл бұрын
thank you so much!
@entropica
@entropica Жыл бұрын
Great expalanation, but at (16:27) there's taking an integral over dq missing when rewriting KL(q || p) ! Same at (16:57)
@rma1563
@rma1563 7 ай бұрын
Appreciate the effort you put into this. You definitely can teach. If only I have a brain to understand math... still got some bits here and there. Thanks
@mousamustafa1042
@mousamustafa1042 8 ай бұрын
U really liked that you showed the derivation in an understandable way
@sanjaybhandari2487
@sanjaybhandari2487 2 жыл бұрын
Hopping for more great contents .
@JasimUsmani
@JasimUsmani 2 жыл бұрын
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!
@oriyonay8825
@oriyonay8825 2 жыл бұрын
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 :)
@PakkaponPhongtawee
@PakkaponPhongtawee 2 жыл бұрын
Amazing! The visualization is great and easy to follow.
@xiaohaolin6464
@xiaohaolin6464 Жыл бұрын
Excellent video! Very clear derivation, and good animation. You are a good teacher with loads of patience, and guided us step by step!
@yogeshsingular
@yogeshsingular Жыл бұрын
Really great video. We need more videos like this. Helped me understand cryptic papers which can be very frustrating...
@PythonProdigy9
@PythonProdigy9 Жыл бұрын
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.
@outliier
@outliier 2 жыл бұрын
Here is the implementation video in PyTorch: kzbin.info/www/bejne/inOmg5-krK-nkLc
@bootsncats1873
@bootsncats1873 2 жыл бұрын
Q
@homataha5626
@homataha5626 2 жыл бұрын
Hello, How did you make the animations in your video?
@bayesianmonk
@bayesianmonk 2 жыл бұрын
You have a superpower of explaining math. Really enjoyed it.
@ernestosantiesteban6333
@ernestosantiesteban6333 Жыл бұрын
WOW! Where have you been all my life?!
@pengxiaohan3371
@pengxiaohan3371 2 жыл бұрын
Nice explaination in Math. Rarely see a such detailed diffusion model explaination video. Good job and thanks
@spiritual-Aatma
@spiritual-Aatma Жыл бұрын
Video is really well made. You did well to summarize to keep things simple and explanatory.
@autkarsh8830
@autkarsh8830 10 ай бұрын
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!
@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.
@DiTo97
@DiTo97 2 жыл бұрын
Could you elaborate more the chanining of alphas in the forward process, q(x_t|x_{t - 1}), from 13:13 onwards?
@ai_outline
@ai_outline Жыл бұрын
This video was a game changer. Thank you man, just earned a subscriber :)
@outliier
@outliier Жыл бұрын
Thank you so much!
@garyfeng9528
@garyfeng9528 Жыл бұрын
you should create more of this videos...they are just so good... It must been time consuming. Maybe consider make some smaller topics or split one big topic into more videos. AMAZING JOB. I believe a high school can get the main points from this! GJ!
@outliier
@outliier Жыл бұрын
Thank you so much! The next video is on the way!
@Steveineiter
@Steveineiter 2 жыл бұрын
One of the best explanations here on KZbin - thank you very much! 🥳
@fahim78611
@fahim78611 2 жыл бұрын
Greatly explained the papers and it's depend topics 👏👏👏
@williamdevena8565
@williamdevena8565 Жыл бұрын
Great Video! Hands down the best explanation of DDPM’s math
@RezaSoumi
@RezaSoumi Жыл бұрын
Thank you. Your explanation has been profoundly enlightening and exceptionally lucid, providing me with a comprehensive understanding.
@djfl58mdlwqlf
@djfl58mdlwqlf 2 жыл бұрын
I appreciate your effort It will pay you back one day
@debajyotisg
@debajyotisg 2 жыл бұрын
@19:57 How do we get the KL divergence terms? Isn't there supposed to be a expectation integral/sum somewhere?
@afrozenator
@afrozenator Жыл бұрын
A few comments below, Outlier posted: ``` Im going to cite a friend here: "During training we sample a batch of data from a distribution with probability p. So the global function to be optimized is a summation over the dataset p*log(p/q), which is an expectation of log(p/q) by definition." ```
@timforcade1029
@timforcade1029 2 жыл бұрын
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.
@srinathkumar1452
@srinathkumar1452 Жыл бұрын
Wow this is such a fantastic explanation. I love how you describe the intuitions behind the authors' mathematical choices.
@Techning
@Techning Жыл бұрын
Thank you for this amazing and helpful video! It was a good entry point for me on my way to move from GANs to Diffusion Models for my future research during my PhD.
@outliier
@outliier Жыл бұрын
I love to hear that! Good luck with your PhD!
@erank3
@erank3 2 жыл бұрын
Great video!! Keep them coming thank so much! I’m curious what’s your background?
@outliier
@outliier 2 жыл бұрын
Thank you so much! I’m currently in my bachelors studying AI (it’s a real major in Germany). Apart from that I started 4 years ago and been mostly active in the generative field for the past now.
@Pmaisterify
@Pmaisterify 2 жыл бұрын
Nice work, I like your channel, hope you grow more. There is a dire need for more math heavy deep learning channels :)
@syedrizvi8889
@syedrizvi8889 2 жыл бұрын
I agree, this is a great tutorial!
@Pmaisterify
@Pmaisterify 2 жыл бұрын
@@syedrizvi8889 Hahaha its almost like we know each other!
@azmihaider
@azmihaider 11 ай бұрын
The math derivation part was amazing. really good. If I could have just one note, I would've wished you spoke a bit slower, just a tiny bit. But truly great work, much appreciated and waiting for more content.
@MrMIB983
@MrMIB983 2 жыл бұрын
Bro, this video is amazing
@statixvfx1793
@statixvfx1793 2 жыл бұрын
Great explanation, thank you for sharing your knowledge! Subscribed!
@uslessfella
@uslessfella 10 ай бұрын
19:57 how can it be KL divergence? there has to be a term outside of log for it to be KL divergence?? can you explain this?
@elisawarner7942
@elisawarner7942 2 жыл бұрын
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!
@ОлегМоргалюк
@ОлегМоргалюк Жыл бұрын
Awesome! Right what I was looking for. Thank you for the explanation !)
@rayxi5334
@rayxi5334 Жыл бұрын
THE BEST VIDEO ON THIS TOPIC EVER
@outliier
@outliier Жыл бұрын
THANK YOUUUUU
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 442 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Flow Matching | Explanation + PyTorch Implementation
22:04
Outlier
Рет қаралды 4,5 М.
Cross Attention | Method Explanation | Math Explained
13:06
Flow Matching for Generative Modeling (Paper Explained)
56:16
Yannic Kilcher
Рет қаралды 61 М.
Diffusion Models (DDPM & DDIM) - Easily explained!
18:28
Soroush Mehraban
Рет қаралды 9 М.
Diffusion Models | PyTorch Implementation
22:26
Outlier
Рет қаралды 93 М.
How Stable Diffusion Works (AI Image Generation)
30:21
Gonkee
Рет қаралды 164 М.
Terence Tao at IMO 2024: AI and Mathematics
57:24
AIMO Prize
Рет қаралды 737 М.
How I Understand Diffusion Models
17:39
Jia-Bin Huang
Рет қаралды 42 М.
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,4 МЛН
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 1,6 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19