GenFirst:先生成后重建,实现稳定的端到端潜在生成建模

·

研究论文 · 2026/09/01

潜变量生成模型通常采用两阶段流程,先训练变分自编码器进行重建,再在冻结的潜空间上训练生成模型。由于重建优化的潜变量不一定利于生成,联合训练两者颇具吸引力。然而,直接端到端训练仍具挑战,容易导致潜变量坍缩并面临生成-重建冲突。我们通过分析不同目标如何塑造潜空间来重新审视此问题,并识别出两个关键见解。首先,KL散度目标中的熵项对防止坍缩至关重要:重建和先验拟合倾向于收缩后验,而熵则保持非退化的潜不确定性。其次,重建和生成表现出不对称的学习动态:重建快速且强监督,而生成较慢且难以优化。基于这些见解,我们实现了首次无潜变量坍缩的直接端到端训练,并提出GenFirst,一种简单的先生成后重建策略。生成目标首先在弱重建压力下塑造潜空间,随后逐步加强重建以恢复视觉细节。我们使用具有精确似然的连续自回归先验和具有隐式似然的SiT先验验证了GenFirst。通过我们的端到端目标和GenFirst,SiT在ImageNet-256上实现了CFG下gFID 0.97和无CFG下1.45,而MMDiT在文本到图像生成上达到GenEval得分0.90。除图像生成外,我们将框架扩展到共享视觉潜变量的生成与表示学习,以及连续统一文本-图像生成。这些结果证明了稳定端到端潜变量学习在生成先验和模态上的通用性。

该论文解决了潜变量生成模型中端到端训练的关键难题,提出了简单有效的GenFirst策略,并在多个任务上取得显著性能提升,具有重要的理论贡献和实际应用价值。

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.

阅读原文

参与讨论