arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.08941stat.MLcs.LG
收藏

面向快速准确变分自编码器的模型无关后验近似

Towards Model-Agnostic Posterior Approximation for Fast and Accurate Variational Autoencoders

Wellesley College(韦尔斯利学院);Harvard University(哈佛大学)

Yaniv Yacoby, Weiwei Pan, Finale Doshi-Velez

AI总结:

针对VAE联合训练早期推断模型较差及迭代训练低效的问题,本文提出确定性、模型无关的后验近似MAPA,并证明其可独立训练生成模型,在低维合成数据上以更少计算获得更优密度估计。

摘要:

变分自编码器(VAE)的推断包括学习两个模型:(1)生成模型,它将潜空间上的简单分布转换为观测数据上的分布;(2)推断模型,它在给定数据时近似潜变量编码的后验。这两个组成部分通过生成模型对数边际似然的一个下界联合学习。在联合训练的早期阶段,推断模型对潜变量编码后验的近似较差。近期研究表明,这会导致优化陷入局部最优,对所学生成模型产生负面影响。因此,近期工作建议通过迭代训练来确保高质量的推断模型:在每次更新生成模型之前,先相对于推断模型最大化目标函数。遗憾的是,迭代训练效率低下,并且需要启发式准则来从迭代训练转回联合训练以提升速度。本文提出一种独立训练生成模型和推断模型的推断方法。该方法先验地近似真实模型的后验;固定此后验近似后,我们再仅相对于生成模型最大化该下界。按照传统观点,这种方法应依赖真实模型的真实先验和似然来近似其后验(而二者均未知)。然而,我们证明可以计算真实模型后验的一种确定性、模型无关的后验近似(MAPA)。随后,我们利用 MAPA 开发一种概念验证推断方法。我们在低维合成数据上给出初步结果:(1)MAPA 捕捉了真实后验的趋势;(2)与基线相比,我们基于 MAPA 的推断以更少计算实现了更好的密度估计。最后,我们给出将基于 MAPA 的推断方法扩展到高维数据的路线图。

英文摘要:

Inference for Variational Autoencoders (VAEs) consists of learning two models: (1) a generative model, which transforms a simple distribution over a latent space into the distribution over observed data, and (2) an inference model, which approximates the posterior of the latent codes given data. The two components are learned jointly via a lower bound to the generative model's log marginal likelihood. In early phases of joint training, the inference model poorly approximates the latent code posteriors. Recent work showed that this leads optimization to get stuck in local optima, negatively impacting the learned generative model. As such, recent work suggests ensuring a high-quality inference model via iterative training: maximizing the objective function relative to the inference model before every update to the generative model. Unfortunately, iterative training is inefficient, requiring heuristic criteria for reverting from iterative to joint training for speed. Here, we suggest an inference method that trains the generative and inference models independently. It approximates the posterior of the true model a priori; fixing this posterior approximation, we then maximize the lower bound relative to only the generative model. By conventional wisdom, this approach should rely on the true prior and likelihood of the true model to approximate its posterior (which are unknown). However, we show that we can compute a deterministic, model-agnostic posterior approximation (MAPA) of the true model's posterior. We then use MAPA to develop a proof-of-concept inference method. We present preliminary results on low-dimensional synthetic data that (1) MAPA captures the trend of the true posterior, and (2) our MAPA-based inference performs better density estimation with less computation than baselines. Lastly, we present a roadmap for scaling the MAPA-based inference method to high-dimensional data.

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

↑