A Tale of Two Latent Flows: Learning Latent Space Normalizing Flow with Short-run Langevin Flow for Approximate Inference



Jianwen Xie, Yaxuan Zhu, Yifei Xu, Dingcheng Li, and Ping Li

Cognitive Computing Lab, Baidu Research, USA


Abstract

We study a normalizing flow in the latent space of a top-down generator model, in which the normalizing flow model plays the role of the informative prior model of the generator. We propose to jointly learn the latent space normalizing flow prior model and the top-down generator model by a Markov chain Monte Carlo (MCMC)-based maximum likelihood algorithm, where a short-run Langevin sampling from the intractable posterior distribution is performed to infer the latent variables for each observed example, so that the parameters of the normalizing flow prior and the generator can be updated with the inferred latent variables. We show that, under the scenario of non-convergent short-run MCMC, the finite step Langevin dynamics is a flow-like approximate inference model and the learning objective actually follows the perturbation of the maximum likelihood estimation (MLE). We further point out that the learning framework seeks to (i) match the latent space normalizing flow and the aggregated posterior produced by the short-run Langevin flow, and (ii) bias the model from MLE such that the short-run Langevin flow inference is close to the true posterior. Empirical results of extensive experiments validate the effectiveness of the proposed latent space normalizing flow model in the tasks of image generation, image reconstruction, anomaly detection, supervised image inpainting and unsupervised image recovery.

Results

Paper

The AAAI conference paper can be downloaded here.

The AAAI tex file can be downloaded here.

The poster can be downloaded here.

The slide can be downloaded here.

Code and Data

You can download the code in Pytorch version

If you wish to use our code, please cite the following paper: 

A Tale of Two Latent Flows: Learning Latent Space Normalizing Flow with Short-run Langevin Flow for Approximate Inference
Jianwen Xie, Yaxuan Zhu, Yifei Xu, Dingcheng Li, Ping Li
The Thirty-Seventh AAAI Conference on Artificial Intelligence (AAAI) 2023

Related Work

Top