Skip to content

Track T37

Generative & Self-Supervised Models

Autoencoders, VAEs, GANs, flows, diffusion and learning from unlabeled data.

Unit 1Autoencoders and latent variables

· 7 lessons
  1. 1Autoencoders: squeeze each row, then rebuild itAn encoder squeezes each row into a few numbers and a decoder rebuilds it. Read what the bottleneck keeps, why corrupting the input helps, and what reconstruction error does and doesn't tell you.Applied · 13 min
  2. 2Sparse and contractive autoencoders: penalties instead of a bottleneckTwo ways to keep a wide autoencoder from copying its input. A sparsity penalty keeps hidden units mostly quiet; a contractive penalty keeps the code steady when the input wobbles.Advanced · 11 min
  3. 3Variational autoencoders: a code you can sample, and the ELBOA VAE turns each row into a small Gaussian instead of a point, and trains on a bound on the log-likelihood. Read the two parts of that bound, the trick that makes it trainable, and what a fitted VAE reports.Advanced · 15 min
  4. 4β-VAE and the importance-weighted bound: tilting and tightening the ELBOWeighting the KL term changes what a VAE learns, and can switch latent dimensions off. Averaging several draws gives a tighter bound on the log-likelihood. Run both in CodeSplash and read what changes.Advanced · 13 min
  5. 5VQ-VAE and adversarial autoencoders: other ways to shape the codeTwo autoencoders that replace the VAE's KL term. A VQ-VAE snaps each code to the nearest of a set of learned vectors; an adversarial autoencoder trains a discriminator to make codes look like prior draws.Advanced · 11 min
  6. 6A VAE workflow: fit, select, and check samples as well as rebuildsFit a VAE the way the reference's full workflow does. Split first, pick a checkpoint on validation rows, report each part of the loss on its own, and compare prior samples with real rows, where a well-rebuilding VAE can still fail.Advanced · 14 min
  7. 7Lab: train and validate a denoising autoencoderThe reference's first deep-learning lab, step by step. State the question, split before scaling, check gradients by finite differences, and beat the honest baseline, which is doing nothing to the noisy rows.Advanced · 16 min

Unit 2Energy-based and adversarial models

· 4 lessons
  1. 8Boltzmann machines: energies, Gibbs sampling and stacked layersThe energy models that started deep learning: an RBM samples one layer at a time, a deep belief network stacks RBMs, a deep Boltzmann machine needs mean-field updates. Why their training numbers mislead.Advanced · 13 min
  2. 9GANs: a generator, a discriminator and a gameA generator turns noise into rows and a discriminator learns to spot fakes. Read the game they play, why the generator uses a non-saturating loss, how DCGAN's upsampling makes checkerboards, and why the losses don't tell you sample quality.Advanced · 14 min
  3. 10Wasserstein and least-squares GANs: changing what the critic measuresA critic that scores rows turns the game into a Wasserstein distance. Bound its slope by clipping or a gradient penalty, or swap log loss for squared error. Read CodeSplash's WGAN-GP charts.Advanced · 14 min
  4. 11InfoGAN, CycleGAN and StyleGAN: steering what a GAN makesThree GANs that add control. InfoGAN ties part of the noise to something visible, CycleGAN translates between unpaired collections with a round-trip loss, and StyleGAN injects a style code at every layer. All three are explained here.Advanced · 12 min

Unit 3Flows and continuous dynamics

· 3 lessons
  1. 12Normalizing flows: invertible layers and an exact likelihoodA flow is a stack of invertible layers from data to noise. The change-of-variables formula gives an exact log-likelihood, and coupling layers keep it cheap. Build NICE and Real NVP couplings and read a flow's held-out likelihood.Advanced · 15 min
  2. 13Glow, masked autoregressive flows and spline flowsThree more flexible flows: Glow mixes columns with a learned invertible matrix, a masked autoregressive flow conditions each column on earlier ones, a spline flow bends columns with monotone curves.Advanced · 14 min
  3. 14Neural ODEs and continuous flows: depth as integration timeA neural ODE learns a velocity and lets a solver do the rest. Turned into a flow, the log-density follows the trace of the velocity's Jacobian, which FFJORD estimates with random vectors. Solver error and cost come with every result.Advanced · 12 min

Unit 4Diffusion and transport

· 5 lessons
  1. 15Denoising diffusion: add noise step by step, learn to take it awayA diffusion model blurs rows into noise along a fixed schedule and trains one network to predict the noise that was added. Sampling runs the steps backwards. Read the forward process, the training loss and a tabular diffusion run.Advanced · 15 min
  2. 16DDIM, score SDEs and consistency models: fewer sampling stepsThe same trained denoiser can be sampled in far fewer steps. DDIM takes large deterministic jumps, the score view turns diffusion into a stochastic or a noise-free ODE, and consistency models learn to jump to the end.Advanced · 14 min
  3. 17Latent diffusion and Diffusion TransformersDiffuse in an autoencoder's compact code instead of raw data, and the cost drops while the autoencoder sets a quality ceiling. Swap the denoiser for a transformer and feed it the step and condition through adaptive normalization.Advanced · 12 min
  4. 18Flow matching: learn the velocity from noise to dataDraw a straight line from a noise draw to a real row and ask a network for the velocity along it. Averaged over many lines, that velocity carries noise to data. Sample with an ODE solver in a handful of steps.Advanced · 13 min
  5. 19Guidance and conditioning: steering a diffusion modelClassifier-free guidance pushes samples toward a condition at some cost in variety. ControlNet and IP-Adapter add spatial or image conditions to a frozen model; DreamBooth and textual inversion teach it a new subject.Advanced · 14 min

Unit 5Self-supervised learning

· 4 lessons
  1. 20Contrastive learning: CPC, SimCLR and MoCoLearn representations by picking the right partner out of a crowd. CPC predicts the future, SimCLR matches two views of a row against the batch, and MoCo keeps a queue of keys from a slow encoder. Then check what was learned.Advanced · 15 min
  2. 21BYOL, SimSiam and DINO: learning without negativesDrop the negatives and match two views directly, and the easy answer is to map everything to one point. BYOL and SimSiam avoid it with a predictor and a stopped gradient; DINO with a centered, sharpened teacher.Advanced · 15 min
  3. 22Barlow Twins, VICReg and SwAV: spread out, decorrelate, balanceThree more negative-free objectives: Barlow Twins pushes a cross-correlation toward the identity, VICReg adds variance and covariance terms, SwAV balances rows across prototypes. All run in CodeSplash.Advanced · 15 min
  4. 23Masked autoencoders and JEPA: hide part, predict itHide most of an input and train a network to fill it in, scored only on the hidden parts. MAE predicts raw values; I-JEPA predicts a slow encoder's representations of them. See the same idea in CodeSplash's masked imputation.Advanced · 13 min

Unit 6Evaluating generators

· 2 lessons
  1. 24Evaluating generators: FID, KID, Inception Score, precision and recallHow generated images are scored, what each number rewards and misses, and how the same questions apply to the synthetic tables CodeSplash makes. No single number says a generator is good.Advanced · 15 min
  2. 25Expected calibration error and reliability diagramsWhen a model built on learned features says 80%, does it happen 80% of the time? Bin the predictions, compare confidence with accuracy, and read ECE with its binning, its bias and what it can hide.Advanced · 13 min