[Paper Review] Factor Analysis, Probabilistic Principal Component Analysis, Variational Inference, and Variational Autoencoder: Tutorial and Survey
This tutorial and survey paper provides a comprehensive overview of factor analysis, probabilistic PCA, variational inference, and variational autoencoders (VAEs), explaining their theoretical foundations, mathematical derivations, and interconnections. It demonstrates how these generative models use latent variables to perform dimensionality reduction and data generation through evidence lower bound (ELBO) maximization via EM or backpropagation, with closed-form solutions for probabilistic PCA and neural network-based training for VAEs.
This is a tutorial and survey paper on factor analysis, probabilistic Principal Component Analysis (PCA), variational inference, and Variational Autoencoder (VAE). These methods, which are tightly related, are dimensionality reduction and generative models. They assume that every data point is generated from or caused by a low-dimensional latent factor. By learning the parameters of distribution of latent space, the corresponding low-dimensional factors are found for the sake of dimensionality reduction. For their stochastic and generative behaviour, these models can also be used for generation of new data points in the data space. In this paper, we first start with variational inference where we derive the Evidence Lower Bound (ELBO) and Expectation Maximization (EM) for learning the parameters. Then, we introduce factor analysis, derive its joint and marginal distributions, and work out its EM steps. Probabilistic PCA is then explained, as a special case of factor analysis, and its closed-form solutions are derived. Finally, VAE is explained where the encoder, decoder and sampling from the latent space are introduced. Training VAE using both EM and backpropagation are explained.
Motivation & Objective
- To provide a unified tutorial and survey of factor analysis, probabilistic PCA, variational inference, and VAEs as tightly related generative models for dimensionality reduction and data generation.
- To derive the Evidence Lower Bound (ELBO) and explain its maximization using the Expectation-Maximization (EM) algorithm for latent variable models.
- To show how probabilistic PCA emerges as a special case of factor analysis with closed-form solutions due to isotropic and uncorrelated noise assumptions.
- To explain the architecture and training of Variational Autoencoders (VAEs) using both EM and backpropagation, including the role of encoder/decoder networks and stochastic sampling.
- To highlight key challenges such as blurry image generation in VAEs and discuss related improvements like adversarial VAEs and hierarchical variants.
Proposed method
- Derives the Evidence Lower Bound (ELBO) as a tractable lower bound on the log-likelihood for latent variable models.
- Applies the Expectation-Maximization (EM) algorithm to iteratively optimize parameters in factor analysis and probabilistic PCA via E-step (posterior inference) and M-step (parameter update).
- Derives closed-form solutions for probabilistic PCA by assuming isotropic, uncorrelated noise in the data space.
- Introduces the VAE framework as a neural network implementation of variational inference, with an encoder for approximate posterior and a decoder for likelihood modeling.
- Explains VAE training using both EM (via variational inference) and backpropagation through the reparameterization trick for end-to-end optimization.
- Uses KL divergence between approximate posterior and prior to regularize the latent space, ensuring it remains close to a standard normal distribution.
Experimental results
Research questions
- RQ1How does variational inference provide a tractable approximation to intractable posterior distributions in latent variable models?
- RQ2What are the mathematical derivations and EM updates for factor analysis and probabilistic PCA?
- RQ3How does probabilistic PCA reduce to a closed-form solution due to specific noise assumptions?
- RQ4How is the VAE architecture structured to implement variational inference in a neural network setting?
- RQ5What are the key differences and connections between EM-based training and backpropagation-based training in VAEs?
Key findings
- The ELBO provides a lower bound on the log-likelihood that can be maximized to learn latent variable model parameters, serving as the core objective in variational inference.
- Factor analysis models data as a linear transformation of latent variables plus Gaussian noise, with EM used to iteratively estimate parameters.
- Probabilistic PCA is a special case of factor analysis with i.i.d. Gaussian noise, enabling closed-form solutions for the principal component directions.
- VAEs implement variational inference using neural networks, where the encoder approximates the posterior and the decoder models the likelihood, enabling end-to-end training.
- Despite generating blurry images due to ELBO approximation and distributional constraints, VAEs remain powerful for generative modeling and have inspired variants like adversarial VAEs and hierarchical VAEs.
- The paper establishes a theoretical and practical bridge between classical statistical models (factor analysis, PPCA) and modern deep generative models (VAEs), showing their shared probabilistic foundations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.