Browse and solve 1,200+ machine learning coding challenges on Deep-ML. Filter by difficulty (beginner, intermediate, advanced) and category (linear algebra, machine learning, deep learning, NLP, computer vision). Write Python solutions in the browser and get instant feedback against test cases.
Deep-ML | DDPM Posterior and the Per-Step KLDDPM Posterior and the Per-Step KL
With beta = 0.5 twice, alpha_bar_1 = 0.5 and alpha_bar_2 = 0.25, so tilde_beta_2 = (1 - 0.5)/(1 - 0.25) * 0.5 = 1/3 and both posterior coefficients equal sqrt(0.5) * 0.5 / 0.75 = 0.4714: the mean is 0.4714 * (x0 + xt) = [0.7071, -0.2357]. Against a model mean of zero the KL is (0.5 + 0.0556) / (2/3) = 0.8333. Inverting eq. 11 gives the model's implied epsilon [0.866, 0.866]; weighting the squared noise error by beta^2 / (2 sigma^2 alpha (1 - alpha_bar)) = 0.25 / (2 * (1/3) * 0.5 * 0.75) = 1 returns exactly the same 0.8333.