Top-down inference in an early visual cortex inspired hierarchical Variational Autoencoder

Ferenc Csikor, Balázs Meszéna, Bence Szabó, Gergo OrbánarXiv 2022 · DOI

Introduction

For decades, neuroscientists have modeled the primary visual cortex (V1) using linear generative models to explain how neurons respond to simple edges. However, moving into the hierarchical, nonlinear processing of the secondary visual cortex (V2) has been challenging. While machine learning has produced powerful hierarchical Variational Autoencoders (hVAEs), these models often suffer from "representation collapse" or produce uninterpretable latent features. This paper addresses the gap by investigating how the "recognition" part of an AI model should be structured to reflect biological inference, specifically focusing on the role of top-down feedback in learning high-level visual features like textures.

Methods

The researchers designed a two-layer hierarchical VAE and compared several architectural variations to test the impact of top-down paths:

  • TDVAE (Top-Down VAE): Features a Markovian generative model and a recognition model that uses top-down feedback.
  • ChainVAE: A standard bottom-up recognition model.
  • SkipVAE: Uses "skip connections" in the generative model, allowing high-level layers to influence the image directly.
  • LinearVAE: A single-layer baseline.

The first layer was constrained to be linear to mimic V1 receptive fields, using a sparse Laplace prior to encourage sparse "neuronal" activity.

Architectural variations of hierarchical VAEs and the top-down recognition model.

Datasets

The models were trained on natural image patches from the van Hateren database and synthetic textures generated via the Portilla and Simoncelli algorithm. These textures are designed such that their identity cannot be determined by simple linear filters, providing a rigorous test for V2-like nonlinear processing.

Key Insights

  • Necessity of Top-Down Paths: Only models with top-down inference (TDVAE and SkipVAE) captured "noise correlations," where the uncertainty and correlations in the low-level layer ($z_1$) carry meaningful information about the high-level texture ($z_2$). This mirrors biological observations where neuronal variability is a meaningful signal.
  • Markovian Structure and Specialization: The TDVAE's Markovian chain promoted a clean separation of labor: $z_1$ specialized in linear edge detection, while $z_2$ specialized in nonlinear texture patterns. Skip connections in SkipVAE tended to muddy this separation.
  • Emergent Texture Selectivity: The $z_2$ layer naturally developed units selective for specific texture families without explicit supervision, suggesting texture sensitivity is fundamental for representing the natural world efficiently.

Key Results

The TDVAE demonstrated biological alignment and superior performance:

  • Gabor-like Filters: The $z_1$ layer consistently developed localized, oriented Gabor-like filters matching V1 neurons.
  • Texture Decoding: High-level texture identity was decodable from the $z_2$ layer with 80-90% accuracy. Notably, in top-down models, texture could also be decoded from the correlations of the $z_1$ layer, even when it was absent from mean activations.
  • Superior Inpainting: TDVAE significantly outperformed LinearVAE at image inpainting by leveraging high-level semantic context to fill missing regions.
Analysis of learned representations, including Gabor-like filters in $z_1$ and texture selectivity in $z_2$.

Limitations and Future Work

The current model is limited by the scale of image patches ($40 \times 40$ pixels). Future work aims to incorporate convolutional layers to handle larger images and deeper hierarchies, potentially providing new testable hypotheses for neuroscientists regarding information transfer in the visual cortex.

Summary updated

BibTeX
@misc{csikor2022top,
  author = {Ferenc Csikor and Balázs Meszéna and Bence Szabó and Gergo Orbán},
  title = {{Top-down inference in an early visual cortex inspired hierarchical Variational Autoencoder}},
  year = {2022},
  eprint = {2206.00436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.00436},
}
Figure