JA EN
·★ MEMBER·PAPER·10 min read

Paper Explained — GenFirst: Let Generation Shape the Latent Space First, Reconstruction Second

Image generation normally means training a VAE first and bolting a generative model onto its frozen latent space. This paper trains both at once without latent collapse — the key is the entropy term inside the KL objective, plus a simple rule: let generation go first and ramp reconstruction up later.

ModalityimageTaskgeneration

GenFirst: Generation Before Reconstruction for Stable End-to-End Latent Generative Modeling

Primary source — what this article is built on

undefined2026-08-29undefined2026-09-02same month

GenFirst: Generation Before Reconstruction for Stable End-to-End Latent Generative ModelingGuangting Zheng, Yiyuan Zhang, Tao Yang et al. · 2026-08-29 · v1arXiv:2608.29335Paper page·PDF
undefined

Latent generative models typically follow a two-stage pipeline, training a variational autoencoder for reconstruction and then a generative model on the frozen latent space. Since reconstruction-optimized latents are not necessarily generation-friendly, jointly training both models is an appealing alternative. However, direct end-to-end training remains challenging, as it is prone to latent collapse and faces a generation-reconstruction conflict. We revisit this problem by analyzing how different objectives shape the latent space and identify two key insights. First, the entropy term in the Kullback-Leibler divergence objective is essential for preventing collapse: reconstruction and prior fitting tend to shrink the posterior, while entropy preserves non-degenerate latent uncertainty. Second, reconstruction and generation exhibit asymmetric learning dynamics: reconstruction is fast and strongly supervised, whereas generation is slower and harder to optimize. Based on these insights, we achieve the first direct end-to-end training without latent collapse and propose GenFirst, a simple generation-before-reconstruction strategy. The generative objective first shapes the latent space under weak reconstruction pressure, after which reconstruction is progressively strengthened to recover visual details. We validate GenFirst with continuous autoregressive priors with exact likelihoods and SiT priors with implicit likelihoods. With our end-to-end objective and GenFirst, SiT achieves a gFID of 0.97 with CFG and 1.45 without CFG on ImageNet-256, while MMDiT reaches a GenEval score of 0.90 on text-to-image generation. Beyond image generation, we extend the framework to shared visual latents for generation and representation learning, and to continuous unified text-image generation. These results demonstrate the generality of stable end-to-end latent learning across generative priors and modalities.


What the paper claims

The original title is "GenFirst: Generation Before Reconstruction for Stable End-to-End Latent Generative Modeling" (arXiv:2608.29335, Zheng et al., 29 August 2026).

Here is the abstract in plain terms. Latent generative models normally follow a two-stage pipeline: train a variational autoencoder (VAE) for reconstruction, then train a generative model on top of the frozen latent space. But a latent space optimized for reconstruction is not necessarily a latent space that is friendly to generation, which makes joint training an appealing alternative. Training the two end-to-end directly turns out to be hard: it is prone to latent collapse, and it runs into a generation–reconstruction conflict. The authors analyze how the different objectives shape the latent space and report two findings. First, the entropy term inside the KL divergence objective is essential for preventing collapse — reconstruction and prior fitting both tend to shrink the posterior, while entropy keeps latent uncertainty from degenerating. Second, reconstruction and generation have asymmetric learning dynamics: reconstruction is fast and strongly supervised, generation is slower and harder to optimize. On that basis they achieve the first direct end-to-end training without latent collapse, and propose GenFirst, a simple generation-before-reconstruction strategy.

An analogy: who gets to shape the clay

Picture a sculpture workshop with two craftspeople sharing one lump of clay.

The first is the copyist (reconstruction). Their job is to produce a piece identical to the model in front of them. Because the correct answer is sitting right there, their feedback is fast and unambiguous. The second is the originator (generation). Their job is to learn to make new pieces in the workshop's style, with no model to copy. There is no ground truth, and progress is slow.

Now let both work the same clay at the same time. The copyist is far faster, so the clay sets early into a shape that happens to be convenient for copying. By the time the originator thinks "I wish this had been shaped differently," it is too late. GenFirst's prescription is exactly what you would expect: let the originator settle the overall form first, and let the copyist carve in the details afterwards.

Background: why generate in a latent space at all

Some groundwork first. A 512×512 color image is a few hundred thousand numbers. Running a diffusion model directly on that is painful, so modern image generation splits the work in two:

  1. An encoder compresses the image into a small latent vector zz, and a decoder turns it back into an image (the reconstruction stage).
  2. On top of that small zz-space, a generative model — diffusion or autoregressive — learns the distribution of plausible zz.

Stage one is typically a VAE. What makes a VAE a VAE is that its encoder outputs a distribution q(zx)q(z|x) rather than a single point; that machinery is covered in Building a VAE from scratch. Stage two is most often a diffusion model, covered in Introduction to diffusion models.

The problem is that stage one is trained knowing nothing about stage two. It shapes the latent space purely by asking "can I get the original picture back?" The result may be a space stuffed with fine texture detail that is tangled and hard to learn from the generative model's point of view. That is exactly the paper's starting point: latents optimized for reconstruction are not necessarily generation-friendly (Abstract).

Why joint training breaks

So train both from the start — obviously. Except this does not work out of the box, because of latent collapse.

What collapses is the spread of the posterior q(zx)q(z|x) that the encoder emits. If that distribution loses its width and folds into a point, the latent space stops working as a medium that carries information. In the extreme, every input produces the same zz. The loss number keeps going down while the inside quietly hollows out.

Intuitively, this is a story about how peaked a distribution is. In the figure below, drag the temperature down and watch a flat distribution spike into a single bar while everything else vanishes. Latent collapse is that same shape of failure happening to the posterior. (This is an analogy about losing spread, not a claim about softmax temperature specifically.)

FIG 1Lower the temperature and the distribution spikes into a single point, erasing the alternatives. Latent collapse is the same failure mode — the posterior loses its spread

The paper's point is that two forces push toward that collapse (Abstract): the reconstruction objective, and prior fitting. Both shrink the posterior.

Why do both of those forces shrink the posterior? Decompose the KL divergence. Write the encoder's posterior as and the prior carried by the generative model as :

What's behind this

§

Members-only from here

371 walkthroughs, 26 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with three new explainers every day. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

References

  1. Guangting Zheng, Yiyuan Zhang, Tao Yang, Yunpeng Chen et al.. (2026-08-29) GenFirst: Generation Before Reconstruction for Stable End-to-End Latent Generative Modeling. arXiv:2608.29335Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Comments

Sign in to comment