arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.09502cs.CV
收藏

利用标号相关/无关维数解开VAE的潜在空间

Disentangling Latent Space for VAE by Label Relevant/Irrelevant Dimensions

East China Normal University(华东师范大学)

Zhilin Zheng, Li Sun

摘要:

VAE需要标准高斯分布作为潜在空间中的先验。由于所有的编码都遵循相同的先验信息,所以它经常会出现所谓的“后验崩溃”。为了避免这种情况,本文介绍了类特定的潜在代码的分布。但与CVAE不同的是,我们提出了一种方法,用于将潜在空间分解为标签相关和不相关的维度,$\bm{\mathrm{z}}_s$和$\bm{\mathrm{z}}_u$,用于单个输入。采用两个独立的编码器分别将输入映射为$\bm{\mathrm{z}}_s$和$\bm{\mathrm{z}}_u$,然后将级联码交给解码器进行重构。标签无关码$\bm{\mathrm{z}}_u$代表了所有输入的共同特征,因此它们受到标准高斯的约束,其编码器采用类似VAE的摊销变分推理方式进行训练。而假设$\bm{\mathrm{z}}_s$遵循高斯混合分布,其中每个分量对应于特定类别。通过标签监督,以全局随机的方式优化了$\bm{\mathrm{z}}_s$编码器中高斯分量的参数。理论上,我们证明了我们的方法实际上等价于在$\bm{\mathrm{z}}_s$和类标签$c$的联合分布上增加一个KL发散项,它可以直接增加$\bm{\mathrm{z}}_s$和类标签$c$之间的互信息.我们的模型也可以扩展到GAN,通过在像素域中添加一个像素,使其产生高质量和多样化的图像。

英文摘要:

VAE requires the standard Gaussian distribution as a prior in the latent space. Since all codes tend to follow the same prior, it often suffers the so-called "posterior collapse". To avoid this, this paper introduces the class specific distribution for the latent code. But different from CVAE, we present a method for disentangling the latent space into the label relevant and irrelevant dimensions, $\bm{\mathrm{z}}_s$ and $\bm{\mathrm{z}}_u$, for a single input. We apply two separated encoders to map the input into $\bm{\mathrm{z}}_s$ and $\bm{\mathrm{z}}_u$ respectively, and then give the concatenated code to the decoder to reconstruct the input. The label irrelevant code $\bm{\mathrm{z}}_u$ represent the common characteristics of all inputs, hence they are constrained by the standard Gaussian, and their encoder is trained in amortized variational inference way, like VAE. While $\bm{\mathrm{z}}_s$ is assumed to follow the Gaussian mixture distribution in which each component corresponds to a particular class. The parameters for the Gaussian components in $\bm{\mathrm{z}}_s$ encoder are optimized by the label supervision in a global stochastic way. In theory, we show that our method is actually equivalent to adding a KL divergence term on the joint distribution of $\bm{\mathrm{z}}_s$ and the class label $c$, and it can directly increase the mutual information between $\bm{\mathrm{z}}_s$ and the label $c$. Our model can also be extended to GAN by adding a discriminator in the pixel domain so that it produces high quality and diverse images.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑