Abstract
Bayesian brain theory suggests that the brain employs generative models to understand the external world. The sampling-based perspective posits that the brain infers the posterior distribution through samples of stochastic neuronal responses. Additionally, the brain continually updates its generative model to approach the true distribution of the external world. In this study, we introduce the Hierarchical Exponential-family Energy-based (HEE) model, which captures the dynamics of inference and learning. In the HEE model, we decompose the partition function into individual layers and leverage a group of neurons with shorter time constants to sample the gradient of the decomposed normalization term. This allows our model to estimate the partition function and perform inference simultaneously, circumventing the negative phase encountered in conventional energy-based models (EBMs). As a result, the learning process is localized both in time and space, and the model is easy to converge. To match the brain's rapid computation, we demonstrate that neural adaptation can serve as a momentum term, significantly accelerating the inference process. On natural image datasets, our model exhibits representations akin to those observed in the biological visual system. Furthermore, for the machine learning community, our model can generate observations through joint or marginal generation. We show that marginal generation outperforms joint generation and achieves performance on par with other EBMs.
Introduction
Energy-Based Models (EBMs) are a powerful class of generative tools, yet they face significant hurdles when applied to biological modeling. Specifically, standard EBMs suffer from two "non-local" problems: the requirement of a global partition function (normalization constant) and the inherent slowness of sampling-based inference. In biological systems, learning must be local in both time and space, and perception must occur rapidly.
This paper introduces the Hierarchical Exponential-family Energy-based (HEE) model, a framework designed to bridge the gap between the computational power of EBMs and the constraints of biological neural networks. By rethinking how partition functions are calculated and how sampling is accelerated, the HEE model provides a biologically plausible account of how the brain performs rapid Bayesian inference.
The HEE Framework: Localizing the Partition Function
Traditional EBMs typically require a "negative phase" during learning, where the model generates samples to estimate a global normalization constant. This process is computationally expensive and biologically unlikely, as it would require a global signal to disrupt local synaptic updates.
The HEE model overcomes this by decomposing the partition function into individual layers. Instead of a single global constant, the model estimates local normalization terms. To achieve this, the architecture employs a specialized group of "interneurons" with very short time constants. These fast-acting neurons sample the gradient of the local partition functions in real-time. This allows the network to perform inference and learning simultaneously, ensuring that synaptic updates remain local and the model converges efficiently without a separate, disruptive negative phase.
Accelerating Inference: Neural Adaptation as Momentum
Standard inference in EBMs often relies on Langevin dynamics, a form of random walk that can be too slow to explain the near-instantaneous nature of biological perception. The HEE model addresses this by incorporating neural adaptation—the phenomenon where neurons decrease their firing rate in response to a constant stimulus.
Mathematically, the authors demonstrate that neural adaptation acts as a momentum term within the framework of Second-order Langevin Dynamics (SLD). This transformation allows the model to "zip" through the energy landscape, providing the inertia necessary to escape local minima and settle into the posterior distribution much faster than first-order methods. This insight suggests that what was once considered a simple biological fatigue mechanism is actually a sophisticated mathematical optimizer for Bayesian inference.
Biological Realism and Emergent Features
When trained on natural image datasets, the HEE model naturally develops representations that mirror the biological visual system. Without explicit programming, the model exhibits:
- V1-like Simple and Complex Cells: Neurons become tuned to specific orientations and spatial frequencies.
- End-stopping: Neurons show reduced responses as a stimulus extends beyond their receptive field.
- Gamma Oscillations: During the sampling process, the network produces 20-80 Hz oscillations, a hallmark of active perception and information processing in the brain.
Performance and Results
The HEE model was evaluated on synthetic 2D datasets, FashionMNIST, and CIFAR10. On the CIFAR10 benchmark, the model achieved an Inception Score (IS) of 6.47 and a Fréchet Inception Distance (FID) of 37.05. These results demonstrate that the HEE model achieves performance on par with established MCMC-based EBMs while maintaining biological plausibility.
Furthermore, the study compared marginal generation (sampling latent variables before observations) against joint generation. The results indicated that marginal generation is superior, likely because it effectively reduces the search space for the sampling algorithm, leading to higher-quality image synthesis.
Conclusion
The HEE model represents a significant step forward in aligning machine learning architectures with neurobiological principles. By localizing the partition function through fast interneurons and accelerating inference via neural adaptation, the model provides a robust framework for understanding how the brain might implement generative modeling. While current image fidelity lags behind state-of-the-art non-biological models like GANs or Diffusion Models, the HEE model offers a unique and efficient path for exploring the intersection of artificial intelligence and cognitive science.
Summary updated