Take the previous topic's process literally at and count what it asks for. Every sampler step is one forward pass of a UNet whose blocks include self-attention, and self-attention over an image is attention over its pixels as tokens. Twenty-five steps means twenty-five of those.
The arithmetic is short enough to do in full, and it is the topic's entire thesis.
The two numbers, and why they are not the same number
-
The pixel-space tensor the process would have to carry, noise, and predict at every step. Nothing subtle here — it is the number of scalars in a 512-pixel RGB image.
-
The latent SD produces from it: an 8× spatial downsample in each direction, and 4 channels rather than 3. The extra channel means the reduction is not the naive 64× the spatial stride alone suggests.
-
A 48× reduction in everything that scales with tensor size — memory, every convolution, every elementwise operation, and the noise draw itself. This is the number the topic is named after, and of the two savings it is the smaller one.
-
Attention does not see channels as tokens, it sees spatial positions. So the token count falls by the spatial factor alone — 64×, not 48×.
-
And attention is quadratic in token count, so the attention blocks get four thousand times cheaper while the convolutions get forty-eight times cheaper. The two savings differ by a factor of eighty-five, which is why what changes is the shape of the network and not merely its price.
Here is the part that "compression trick" gets wrong.
After the move, the diffusion model is no longer a model of images. It is a model of the autoencoder's code distribution. Its job is to be right about which tensors look like encodings of real photographs, and the map from those tensors to pixels is somebody else's problem — fixed, frozen and already trained.
Two consequences follow immediately, and both are structural rather than practical. First, anything the decoder cannot produce is unreachable: it is not merely hard to sample, it is not in the model's range at all, and no sampler, step count, guidance scheme or amount of further training changes that. Second, the prior that diffusion is learning has been reparameterised — a distance in latent space is not a distance in pixel space, so the noise schedule, which was designed with pixel statistics in mind, is now being applied to something else. The last concept in this topic is about the one line of code that patches over the difference.
If an 8× downsample buys 48×, would a 16× downsample buy 4× more again? What is the argument against?
Show answer
The arithmetic says yes: values, another in tensor size and another in attention cost.
The argument against is not about compute at all. Every factor of two in spatial stride asks the decoder to invent more, and what it invents is fixed for every sample the model will ever produce — so the trade is compute against a reconstruction ceiling you cannot raise later.
The right way to settle it is therefore not to reason about it. Encode and decode a batch of real images at each candidate stride, with no diffusion involved at all, and look at what comes back. That measurement is the whole subject of the next concept, and it is a two-line experiment that people consistently skip in favour of arguing.