Diffusion models practice problems
16 problems · 0 solved
A diffusion model learns to turn noise into an image by reversing a slow noising process. During training you add a known amount of noise to clean data and teach the network to predict it. During sampling you start from pure noise and remove a little at each step, much like a photo slowly coming into focus. These problems turn the equations behind this process into code. You will add noise in one jump with the closed-form forward process, build linear, cosine and Karras noise schedules, find where signal-to-noise drops below one, compute Min-SNR loss weights, convert between v-prediction and epsilon or x0, combine conditional and unconditional outputs with classifier-free guidance, take one DDPM denoising step, run a deterministic DDIM sampler, and take a Heun second-order step. Start with the Easy problems on forward noising and guidance. Then build the schedules and parameter conversions, and finish with the DDPM, DDIM and Heun samplers. Image, video and audio generation teams use these ideas daily, and interviews for generative AI roles often check whether you can explain and code one sampling step.