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

The Neural Coding Framework for Learning Generative Models

Alexander Ororbia, Daniel Kifer

Abstract

Modern deep learning relies heavily on global backpropagation, a method that faces biological implausibility and engineering constraints such as weight transport and update locking. This paper introduces Neural Generative Coding (NGC), a framework inspired by predictive processing in the brain. NGC replaces global error signals with local, iterative error-correction across a hierarchy of layers. Our results demonstrate that NGC models achieve competitive generative performance, superior data efficiency, and enhanced robustness in downstream tasks like pattern completion and classification compared to standard backpropagation-based architectures.

Introduction: The Limitations of Backpropagation

Deep learning's success is largely attributed to the backpropagation of errors (backprop). However, backprop imposes several constraints that diverge from biological neural processing. First, the weight transport problem requires identical synaptic weights for both forward and backward passes. Second, update locking prevents parallel learning, as neurons must wait for a full global pass. Finally, backprop's reliance on the chain rule limits architectural flexibility, particularly regarding non-differentiable functions and complex lateral connectivity.

Comparison of error propagation in standard Backprop (a) versus the local iterative updates in NGC (b).

To address these issues, we propose Neural Generative Coding (NGC), which bridges machine learning and computational neuroscience by utilizing local prediction errors to build internal world models.

The Neural Generative Coding (NGC) Framework

NGC operates on the principle of predictive processing, where each layer in a hierarchy attempts to predict the activity of the layer below it. Instead of a single global loss function, the network iteratively settles into a state that minimizes "total discrepancy" (free energy) across all layers.

Core Components

  • Error Neurons: Each layer contains dedicated error neurons that compute the discrepancy between top-down predictions and actual state values.
  • Local Representation Alignment (LRA): Synaptic updates are driven locally by the activity of connected neurons and the local error signal, adhering to Hebbian-like learning principles ("neurons that fire together, wire together").
  • Lateral Dynamics: Unlike traditional feedforward networks, NGC incorporates lateral inhibition and excitation. This induces competition within layers, promoting sparse and efficient representations.
Architectural variants of the NGC framework, including GNCN-t2-LΣ and GNCN-PDH, which utilize learnable error synapses and lateral connectivity.

The framework supports various configurations, such as GNCN-t2-LΣ, which leverages learnable error synapses to refine the local update signals, and GNCN-PDH, which achieved state-of-the-art reconstruction results in our evaluations.

Experimental Evaluation

We evaluated NGC on four benchmark image datasets: MNIST, KMNIST, FMNIST, and CalTech 101 Silhouettes. The researchers specifically tested these models on data efficiency, training them on subsets as small as 2% of the total data.

Key Results

  • Superior Reconstruction: The NGC variant GNCN-PDH achieved the lowest Binary Cross Entropy (BCE) across all four datasets, outperforming Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs).
  • Massive Gains in Downstream Tasks: In pattern completion (filling in missing image segments), NGC models significantly outperformed backprop-based baselines. In classification, unsupervised NGC features were highly separable; a simple linear classifier achieved an error rate of 2.28% on MNIST, compared to 11-13% for standard autoencoders.
  • High Data Efficiency: NGC models generalized much faster than backprop models. When trained on only 10% of the data, NGC models maintained high performance while standard VAEs and GANs degraded sharply.

Discussion and Future Work

NGC treats perception as an active "generate-then-correct" process of unconscious inference. By bypassing the requirement for differentiability, it opens avenues for novel architectures using non-differentiable activations. However, the iterative nature of NGC introduces computational overhead on current serial hardware. Future work will focus on scaling to high-resolution imagery and implementing NGC within spiking neural networks on neuromorphic hardware to fully exploit its inherent parallelism and biological realism.

Summary updated

BibTeX
@inproceedings{ororbia2022neural,
  author = {Alexander Ororbia and Daniel Kifer},
  title = {{The Neural Coding Framework for Learning Generative Models}},
  booktitle = {Nature Communications},
  year = {2022},
  doi = {10.1038/s41467-022-29632-7},
}
Figure