Generative modeling often faces a fundamental tension: the model must simultaneously learn what the data looks like (representation) and how that data is distributed (prior). When these tasks are tackled together in high-dimensional spaces, optimization frequently becomes unstable, leading to issues like mode collapse or "posterior collapse," where the model ignores the latent variables entirely.
To solve this, a recurring strategy across diverse domains—from image synthesis to single-cell genomics—is to decouple the generative process into two distinct stages. First, learn a compressed, structured latent manifold; second, learn a generative prior that operates exclusively within that manifold.
The Manifold First Strategy
The core intuition behind two-stage modeling is that the "natural" dimensionality of data is much lower than its raw representation. By first training a reconstruction-based model, such as a Variational Autoencoder (VAE) or a Vector Quantized VAE (VQ-VAE), researchers can map complex data into a simplified latent space.
Aäron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu pioneered this with Neural Discrete Representation Learning. By discretizing the latent space, they prevented the decoder from ignoring the latent codes, effectively "locking in" a high-quality representation before any generative prior was even considered. Similarly, in the context of image colorization, Aditya Deshpande and David Forsyth showed in Learning Diverse Image Colorization that decoupling the representation of the output space from the conditional prediction task allows models to capture the inherent ambiguity of the real world.
Simplifying the Optimization Landscape
Why not train everything at once? The evidence suggests that joint training creates a "moving target" problem. As the encoder changes the latent representation, the prior must constantly adapt, often leading to sub-optimal convergence.
Thomas Dierckx demonstrates this in Towards Data-Driven Volatility Modeling with Variational Autoencoders, where a two-stage procedure is used to prevent posterior collapse in financial modeling. By first compressing the data grid into a fixed latent vector, the model can later focus on reconstructing individual data points without the latent space shifting under its feet.
This phased approach is particularly vital in sensitive domains. In P3GM: Private High-Dimensional Data Release via Privacy Preserving Phased Generative Model, Shun Takagi and Yang Cao found that decoupling the training of the latent space from the decoder significantly reduces the "noise" penalty in differentially private settings. When gradients are noisy, trying to learn a representation and a distribution simultaneously often fails to converge entirely.
Latent Diffusion and the Prior
The recent explosion of Diffusion Models has further validated the two-stage approach. Rather than diffusing raw pixels—which is computationally expensive and noisy—researchers now predominantly use Latent Diffusion.
In DiffStereo: High-Frequency Aware Diffusion Model for Stereo Image Restoration, Huiyun Cao and Wenming Yang split the task: a restoration backbone first learns to reconstruct images from ground-truth latent features, and only then is a diffusion model trained to generate those features. This allows the diffusion process to act as a high-frequency prior for a deterministic network.
A similar logic applies to complex structural data. Cai Zhou introduced Unifying Generation and Prediction on Graphs with Latent Graph Diffusion, which uses a graph autoencoder to learn a compressed representation before a diffusion model learns the distribution of those codes. This decoupling allows the model to scale to massive graphs that would be intractable for end-to-end generative methods.
The Cost of Decoupling
While decoupling provides stability and scalability, it is not without trade-offs. The primary critique is that a fixed latent space may be sub-optimal for the eventual generative task.
Guangyi Liu argues in Unified Generation, Reconstruction, and Representation that when the representation is not co-optimized with the generative prior, the latent structure cannot adapt to the specific dynamics of the generation process (like the denoising trajectory in diffusion). Similarly, Yilun Xu and Tommi Jaakkola note in DisCo-Diff that while two-stage training is the current standard, it prevents a "seamless, single-stage end-to-end optimization."
To bridge this gap, researchers like Max Cohen and Sylvain Le Corff have proposed Diffusion bridges vector quantized variational autoencoders, which attempts to enable end-to-end training by replacing sequential autoregressive priors with continuous diffusion bridges.
Conclusion
The shift toward decoupled two-stage modeling represents a pragmatic realization in the field: by separating the "what" (representation) from the "how" (prior), we can build models that are more stable, more diverse, and capable of handling the immense complexity of real-world data. Whether through VQ-VAEs or Latent Diffusion, the two-stage pipeline has become the de facto architecture for modern generative AI.