[论文解读] A Contrastive Learning Approach for Training Variational Autoencoder Priors
该论文提出了一种噪声对比先验(NCP)用于变分自编码器(VAEs),通过使用噪声对比估计(NCE)重新加权基础先验,以解决先验洞问题,从而在MNIST、CIFAR-10、CelebA 64和CelebA HQ 256上均提升了生成质量。该方法通过训练一个重加权因子,使先验更贴近聚合后验分布,从而在无需MCMC采样的情况下实现高保真图像生成。
Variational autoencoders (VAEs) are one of the powerful likelihood-based generative models with applications in many domains. However, they struggle to generate high-quality images, especially when samples are obtained from the prior without any tempering. One explanation for VAEs' poor generative quality is the prior hole problem: the prior distribution fails to match the aggregate approximate posterior. Due to this mismatch, there exist areas in the latent space with high density under the prior that do not correspond to any encoded image. Samples from those areas are decoded to corrupted images. To tackle this issue, we propose an energy-based prior defined by the product of a base prior distribution and a reweighting factor, designed to bring the base closer to the aggregate posterior. We train the reweighting factor by noise contrastive estimation, and we generalize it to hierarchical VAEs with many latent variable groups. Our experiments confirm that the proposed noise contrastive priors improve the generative performance of state-of-the-art VAEs by a large margin on the MNIST, CIFAR-10, CelebA 64, and CelebA HQ 256 datasets. Our method is simple and can be applied to a wide variety of VAEs to improve the expressivity of their prior distribution.
研究动机与目标
- 解决VAE中的先验洞问题,即先验中高密度区域不对应于数据相关样本。
- 在不依赖计算成本高昂的MCMC采样的前提下,提升VAE先验的表达能力。
- 开发一种可扩展的、后训练阶段适用的方法,可应用于单组和分层VAE。
- 通过更紧密地对齐先验分布与聚合近似后验分布,实现高质量图像生成。
提出的方法
- 将基于能量的先验建模为一个基础先验(高斯分布)与一个可学习重加权因子的乘积。
- 使用噪声对比估计(NCE)训练重加权因子,将其建模为后验样本与基础先验样本之间的二分类任务。
- 首先使用基础先验对VAE进行预训练,使其接近聚合后验分布,随后通过NCE进一步优化先验。
- 通过为每个潜在变量组独立且并行地训练重加权因子,将NCP方法应用于分层VAE。
- 在推理阶段使用SIR采样结合NCP,以有效样本量(ESS)作为可靠性度量。
- 采用最大均值差异(MMD)定量比较基础先验、NCP与各分层组中聚合后验之间的相似性。
实验结果
研究问题
- RQ1可学习的重加权因子是否能改善VAE先验与聚合后验之间的对齐,从而缓解先验洞问题?
- RQ2通过NCE训练重加权因子是否在效率和可扩展性方面优于基于MCMC的训练方法?
- RQ3NCP方法能否有效扩展至具有多个潜在变量组的分层VAE?
- RQ4NCP在MNIST、CIFAR-10和CelebA等多样化数据集上对生成质量的提升程度如何?
- RQ5基于NCP的采样在可靠性和质量上是否优于使用基础先验的标准VAE采样?
主要发现
- NCP方法显著降低了先验与聚合后验之间的MMD,例如在NVAE层次结构的第12组中,MMD从0.08降至0.07。
- 在CelebA HQ 256数据集上,当使用5000个SIR提议样本和1000次Langevin动力学迭代时,FID分数从6.98降至5.25。
- SIR采样中的有效样本量(ESS)与NCE二分类器的分类损失强相关,表明对齐更优的组别能产生更可靠的采样结果。
- 与标准VAE基线相比,NCP方法在CIFAR-10上FID提升最高达10.5分,在CelebA 64上提升最高达12.5分。
- 该方法在分层VAE中具有高效可扩展性,可在多个潜在组上并行训练重加权因子,且计算负担未增加。
- NCP在所有评估数据集中均实现了最先进水平的生成性能,显著提升了图像的清晰度与多样性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。