Skip to content

Blog

Long-form notes on the papers and systems I am trying to keep up with.

Policy Gradients and the Arithmetic of Variance

The policy gradient theorem is about four lines of algebra, and almost none of the work in making it function is in those four lines. The derivation gives you an estimator that is unbiased for any policy, any reward, any dynamics — including dynamics you cannot differentiate and rewards you cannot write down. Then you run it and nothing happens, because the estimator's variance is large enough to bury the signal it is carrying.

This post derives the gradient in Pieter Abbeel's notation, then treats variance as the actual subject. The claim I want to make precise is the one usually waved at: subtracting a baseline reduces variance. That is a theorem with an explicit form, an exactly optimal \(b^\star\), and a characterisation of which baselines help and which hurt — and the standard choice, the mean return, is not the optimal one.

Every number below comes from a simulation or an exact enumeration, and the closed forms are checked against Monte Carlo before they are stated.

Video Generation Models Explosion 2024

Video generation models exploded onto the scene in 2024, sparked by the release of Sora from OpenAI. This blog post is my way of keeping track of the progress of this fascinating field. I will review all the key techniques that are used in building state-of-the-art video generation models (1).

    • A comprehensive review of all text-to-image/text-to-video models is beyond the scope of this blog post. I will focus on research that has been published, productionized, or open-sourced.
    • All of the videos and images are reproduced from the cited projects and papers, and the copyright belongs to the authors or the organization that published their papers. Below I adapted key figures for each paper under the fair use clause of copyright law.