NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Factor Analysis, Probabilistic Principal Component Analysis, Variational Inference, and Variational Autoencoder: Tutorial and Survey

Benyamin Ghojogh, Ali Ghodsi, Fakhri Karray, Mark CrowleyarXiv 2021

Abstract

This tutorial and survey paper explores the deep mathematical connections between factor analysis, probabilistic Principal Component Analysis (PCA), variational inference, and Variational Autoencoders (VAE). These dimensionality reduction and generative models assume every data point is generated from a low-dimensional latent factor. By learning the parameters of the latent space distribution, these models facilitate both dimensionality reduction and the generation of new data points. The paper derives the Evidence Lower Bound (ELBO) and Expectation Maximization (EM) for parameter learning, details the joint and marginal distributions for factor analysis and probabilistic PCA, and concludes with the architecture and training of VAEs using the reparameterization trick.

Introduction: The Latent Factor Problem

In many domains, researchers are confronted with high-dimensional data, such as images containing thousands of pixels. However, the underlying "causes" of this data are often much simpler—for instance, a face image might be explained by a few factors like pose, lighting, and expression. This paper addresses two primary challenges: finding these simple latent factors (dimensionality reduction) and using them to synthesize new, realistic data (generative modeling).

While traditional PCA is often taught as a geometric rotation, this paper advocates for a probabilistic understanding. Treating dimensionality reduction as a statistical inference problem allows for more robust noise handling and provides the theoretical foundation for modern generative AI.

Methods and Frameworks

The paper provides a unified mathematical derivation for four key frameworks, showing how they evolve from linear statistical models to non-linear deep learning architectures.

Variational Inference (VI)

Calculating the true likelihood of data given hidden factors is often computationally intractable. Variational Inference addresses this by creating a "proxy" called the Evidence Lower Bound (ELBO). Maximizing the ELBO serves as a surrogate for maximizing the actual log-likelihood.

The relationship between Log-likelihood, ELBO, and KL divergence.

Factor Analysis (FA) and Probabilistic PCA (PPCA)

Factor Analysis is a linear model where data is generated by latent factors plus independent noise in each dimension. The authors detail the Expectation-Maximization (EM) algorithm used to solve it. Probabilistic PCA is presented as a special case of FA where the noise is isotropic (equal in all directions), leading to elegant closed-form solutions.

Graphical model representation of Factor Analysis showing the generation of data $x_i$ from latent factor $z_i$ and noise $\epsilon$.

Variational Autoencoder (VAE)

The VAE represents the modern evolution of these concepts, replacing linear projections with non-linear neural networks. A critical component is the Reparameterization Trick, which allows the model to be trained via standard backpropagation by shifting randomness to an external variable, making the sampling process differentiable.

Key Insights

  • The "Zero-Noise" Connection: The paper proves that standard PCA is simply Probabilistic PCA in the limit where the noise variance reaches zero, transforming a statistical model back into a deterministic geometric one.
  • The EM Game: The authors describe the EM algorithm as a process of "pushing lines." The E-step pushes the ELBO up to meet the log-likelihood, while the M-step pushes the log-likelihood itself higher.
  • VAE as Neural EM: The paper clarifies that the VAE Encoder performs the E-step (inferring the latent distribution), while the Decoder performs the M-step (maximizing the likelihood of generating the data).

Conclusion and Limitations

The primary result of this work is a unified mathematical framework mapping the evolution from linear statistical methods to gradient-based deep learning. However, the authors acknowledge that VAEs often produce "blurry" results compared to Generative Adversarial Networks (GANs). This is attributed to the noise in Monte Carlo sampling, the approximation inherent in the ELBO, and the restrictive assumption of Gaussian latent distributions. Future directions include NVAEs and Hamiltonian VAEs, which utilize complex hierarchical structures to improve output clarity.

Summary updated

BibTeX
@misc{ghojogh2021factor,
  author = {Benyamin Ghojogh and Ali Ghodsi and Fakhri Karray and Mark Crowley},
  title = {{Factor Analysis, Probabilistic Principal Component Analysis, Variational Inference, and Variational Autoencoder: Tutorial and Survey}},
  year = {2021},
  eprint = {2101.00734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00734},
}
Figure