Deep Bayesian Nonparametric Factor Analysis

Arunesh Mittal, Paul Sajda, John W. PaisleyarXiv 2020

Abstract

We propose a deep generative factor analysis model with a beta process prior that can approximate complex non-factorial distributions over the latent codes. We outline a stochastic EM algorithm for scalable inference in a specific instantiation of this model and present some preliminary results.

Introduction

Latent factor models, such as Principal Component Analysis (PCA) or Sparse Coding, are fundamental tools for uncovering hidden structures in large datasets. However, traditional models often rely on two restrictive assumptions. First, they typically assume that latent factors are independent (factorial), whereas real-world features in images or speech are often highly correlated. Second, they usually require a pre-specified number of factors ($K$), leading to potential underfitting or overfitting. Furthermore, when dealing with discrete binary factors, the search for optimal combinations becomes a combinatorial problem that is computationally intractable for large $K$.

Methodology

The proposed Deep Bayesian Nonparametric Factor Analysis model addresses these challenges by combining a non-linear neural network with a Bayesian nonparametric prior.

Generative Architecture

The model employs a "generative sandwich" approach:

  1. Beta-Bernoulli Process Prior: Utilizing a "stick-breaking" construction, the model assumes an infinite pool of potential factors. This allows the effective complexity ($K$) to be learned automatically from the data.
  2. Neural Multiplexer: A binary latent code ($z$) is passed through a non-linear neural network. This network acts as a "multiplexer," mapping simple binary selections to complex, correlated latent variables ($\xi$). This allows the model to represent non-factorial distributions where the presence of one feature can fundamentally alter the appearance of others.
  3. Linear Output Layer: To maintain interpretability, the final reconstruction is a linear combination of factors, where the multiplexer's output is multiplied by a factor loading matrix ($\Phi$).

Inference and Implementation

Inference is performed using a Stochastic MAP-EM algorithm. A "selective" M-step efficiently searches for binary codes, while the ADAM optimizer updates the neural network weights. For evaluation, the model was applied to the MNIST dataset using a 3-layered neural network with 100 hidden units and a $784 \times 256$ factor loading matrix.

Evolution of factor usage over training iterations.

Results and Discussion

The model demonstrates high-quality reconstruction of MNIST digits while successfully learning a sparse representation.

Sparsity and Feature Selection

By using a Beta Process prior, the model naturally encourages sparsity. As training progresses, the model learns to ignore low-probability factors, effectively pruning the latent space to only what is necessary for reconstruction. Starting from a broad initialization, the model concentrates probability mass on a small subset of essential features over 10,000 iterations.

Factor Sharing and Interpretation

A key advantage of this approach is the ability to capture correlations between classes. The model quantitatively identifies "factor sharing" between digits; for instance, an '8' shares more underlying structural elements with a '3' or a '0' than with a '1'. Despite the non-linear internal mapping, the linear output stage ensures that the learned dictionary ($\Phi$) remains interpretable as visual primitives, such as loops or lines.

MNIST reconstructions and factor sharing analysis.

Conclusion

This work presents a scalable framework for deep factor analysis that bypasses the independence assumption of traditional models. While results on MNIST are promising, future work will focus on extending this approach to higher-dimensional datasets and exploring non-linear variants of PCA and Non-negative Matrix Factorization (NMF). The current reliance on greedy search for binary codes remains a limitation that may be addressed in subsequent iterations of the inference algorithm.

Summary updated

BibTeX
@misc{mittal2020deep,
  author = {Arunesh Mittal and Paul Sajda and John W. Paisley},
  title = {{Deep Bayesian Nonparametric Factor Analysis}},
  year = {2020},
  eprint = {2011.04770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.04770},
}
Figure