Poisson Variational Autoencoder

Hadi Vafaii, Dekel Galor, Jacob L. Yates

Introduction

Artificial Neural Networks (ANNs) were originally inspired by biological systems, yet modern architectures like standard Variational Autoencoders (VAEs) have diverged significantly from biological reality. While VAEs typically utilize continuous, real-valued Gaussian distributions for latent representations, biological neurons communicate via discrete, all-or-none action potentials, often modeled as Poisson processes.

The Poisson Variational Autoencoder unifies major theories in neuroscience, including perception as inference, rate coding, and predictive coding.

This divergence is not merely a matter of biological fidelity. Continuous VAEs frequently suffer from posterior collapse, where latent dimensions are ignored, and they often fail to learn the sparse, interpretable features—such as Gabor filters—characteristic of the primary visual cortex. The Poisson Variational Autoencoder (P-VAE) addresses these gaps by employing discrete "spike counts" as latent variables.

Methods

The P-VAE architecture integrates three foundational concepts to achieve bio-realism and efficiency:

  1. Poisson Latent Variables: Sampling discrete counts $z$ from a Poisson distribution instead of a Gaussian.
  2. Predictive Coding Framework: Utilizing multiplicative interactions between a prior firing rate and an encoder-generated deviation, mimicking neural communication of expectations and errors.
  3. Poisson Reparameterization Trick: A novel "relaxed" Poisson sampler that makes discrete sampling differentiable, allowing for standard backpropagation training.

A significant mathematical result of this setup is the emergence of a metabolic cost term within the Evidence Lower Bound (ELBO) objective. This term naturally penalizes high firing rates, enforcing sparsity without the need for manual hyperparameter tuning.

Key Insights and Results

The P-VAE was evaluated on natural images (van Hateren), CIFAR-10, and MNIST.

Emergence of Gabor Filters

A primary finding is that the linear P-VAE naturally develops Gabor-like edge detectors when trained on natural images, mirroring the features found in the brain's V1 area. In contrast, standard Gaussian VAEs tend to learn Principal Component Analysis (PCA) representations, which lack this structured sparsity.

Efficiency and Robustness

  • Sample Efficiency: On MNIST, P-VAE representations allowed a classifier to achieve the same accuracy with only 200 labeled examples as a Gaussian VAE representation achieved with 1,000 labels—a 5x improvement.
  • Resistance to Posterior Collapse: While Gaussian VAEs often see up to 80% of latent dimensions collapse, the P-VAE maintains activity in nearly 98% of its neurons (426-500 active neurons out of 512).
  • Latent Geometry: The model exhibits higher "shattering dimensionality," meaning it spreads data in the latent space such that categories are more linearly separable with simple boundaries.

Discussion and Future Work

While the P-VAE demonstrates significant advantages, an "amortization gap" remains between its neural-network-based inference and traditional iterative sparse coding algorithms. Future work may involve more expressive encoders or hierarchical structures to capture "super-Poisson" variability seen in real biological neurons. Scaling these discrete latent models to high-resolution generative tasks remains a promising frontier for aligning machine learning with neural computation.

Summary updated

BibTeX
@inproceedings{vafaii2024poisson,
  author = {Hadi Vafaii and Dekel Galor and Jacob L. Yates},
  title = {{Poisson Variational Autoencoder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ektPEcqGLb},
}
Figure