BatchNorm, LayerNorm and GroupNorm implemented from scratch in PyTorch and compared on MNIST: what each normalizes over, when to use which, and how they affect training and dead neurons.
How classifier-free guidance works: derived from Bayes’ rule, implemented in a few lines of PyTorch, with label dropout during training and what the guidance scale w does to samples.