In generative modeling, numerous successful approaches leverage a low-dimensional latent space, e.g., Stable Diffusion models the latent space induced by an encoder and generates images through a paired decoder. Although the selection of the latent space is empirically pivotal, determining the optimal choice and the process of identifying it remain unclear. In this study, we aim to shed light on this under-explored topic by rethinking the latent space from the perspective of model complexity. Our investigation starts with the classic generative adversarial networks (GANs). Inspired by the GAN training objective, we propose a novel "distance" between the latent and data distributions, whose minimization coincides with that of the generator complexity. The minimizer of this distance is characterized as the optimal data-dependent latent that most effectively capitalizes on the generator's capacity. Then, we consider parameterizing such a latent distribution by an encoder network and propose a two-stage training strategy called Decoupled Autoencoder (DAE), where the encoder is only updated in the first stage with an auxiliary decoder and then frozen in the second stage while the actual decoder is being trained. DAE can improve the latent distribution and as a result, improve the generative performance. Our theoretical analyses are corroborated by comprehensive experiments on various models such as VQGAN and Diffusion Transformer, where our modifications yield significant improvements in sample quality with decreased model complexity.
翻译:在生成建模领域,众多成功方法均利用低维潜在空间,例如Stable Diffusion对编码器诱导的潜在空间进行建模,并通过配对解码器生成图像。尽管潜在空间的选择在经验上至关重要,但如何确定最优选择及其识别过程仍不明确。本研究旨在从模型复杂性的视角重新审视潜在空间,以揭示这一鲜有探索的课题。我们的研究始于经典生成对抗网络(GANs)。受GAN训练目标的启发,我们提出了潜在分布与数据分布之间的一种新型"距离",其最小化过程与生成器复杂度的最小化相吻合。该距离的最小化子被刻画为能最有效利用生成器容量的最优数据依赖潜在分布。随后,我们考虑通过编码器网络参数化此类潜在分布,并提出一种名为解耦自编码器(DAE)的两阶段训练策略:编码器在第一阶段与辅助解码器联合更新,在第二阶段冻结,同时训练实际解码器。DAE能够优化潜在分布,进而提升生成性能。我们的理论分析得到了在VQGAN和Diffusion Transformer等多种模型上的全面实验验证——通过降低模型复杂度,我们的改进显著提升了样本质量。