Bayesian Efficient Coding

Il Memming Park, Jonathan W. PillowbioRxiv 2017

Abstract

The efficient coding hypothesis, which proposes that neurons are optimized to maximize information about the environment, has provided a guiding theoretical framework for sensory and systems neuroscience. More recently, a theory known as the Bayesian Brain hypothesis has focused on the brain's ability to integrate sensory and prior sources of information in order to perform Bayesian inference. However, there is as yet no comprehensive theory connecting these two theoretical frameworks. Here we bridge this gap by formalizing a Bayesian theory of efficient coding. We define Bayesian efficient codes in terms of four basic ingredients: (1) a stimulus prior distribution; (2) an encoding model; (3) a capacity constraint, specifying a neural resource limit; and (4) a loss function, quantifying the desirability or undesirability of various posterior distributions. Classic efficient codes can be seen as a special case in which the loss function is the posterior entropy, leading to a code that maximizes mutual information, but alternate loss functions give solutions that differ dramatically from information-maximizing codes. In particular, we show that decorrelation of sensory inputs, which is optimal under classic efficient codes in low-noise settings, can be disadvantageous for loss functions that penalize large errors. Bayesian efficient coding therefore enlarges the family of normatively optimal codes and provides a more general framework for understanding the design principles of sensory systems. We examine Bayesian efficient codes for linear receptive fields and nonlinear input-output functions, and show that our theory invites reinterpretation of Laughlin's seminal analysis of efficient coding in the blowfly visual system.

Reconciling Two Pillars of Neuroscience

For decades, two dominant theories have shaped our understanding of neural computation. The Efficient Coding Hypothesis suggests that neurons evolve to transmit as much information as possible about the environment, typically by maximizing mutual information. In parallel, the Bayesian Brain Hypothesis posits that the brain performs inference by combining sensory data with prior knowledge.

Despite their individual success, these frameworks have remained largely separate. Standard efficient coding often treats all "bits" as equal, ignoring the fact that in biological contexts, some errors are far more costly than others. For instance, misidentifying a predator is a catastrophic error compared to misidentifying a leaf's hue. This paper introduces Bayesian Efficient Coding (BEC), a comprehensive theory that reconciles these views by incorporating an organism's specific goals—expressed as a loss function—into the neural encoding process.

The Bayesian Efficient Coding Framework

The BEC framework formalizes the encoding process through four fundamental components:

  1. Stimulus Prior $P(x)$: The statistical distribution of stimuli in the environment.
  2. Encoding Model $P(y|x, \theta)$: The mapping from a stimulus ($x$) to a neural response ($y$), governed by parameters $\theta$.
  3. Capacity Constraint $C(\theta)$: Physical and metabolic limits, such as maximum firing rates or energy expenditure.
  4. Loss Function $L(\cdot)$: A metric quantifying the "cost" of the resulting posterior distribution.
Schematic of the Bayesian Efficient Coding framework, illustrating the flow from environment to loss function.

The introduction of the loss function is the critical innovation. While classic efficient coding is a special case where the loss is posterior entropy (minimizing total uncertainty), BEC allows for objectives like Mean Squared Error (MSE) or "Percent Correct." This flexibility reveals that the "optimal" neural architecture depends heavily on what the information is used for.

Beyond Information Maximization

A key insight of BEC is that maximizing raw information (bits) does not always lead to the best behavioral outcomes. In many scenarios, "quality" of information matters more than "quantity."

Consider a discrete "multiple choice exam" scenario. An encoder might provide high mutual information but distribute uncertainty such that the correct answer is only guessed correctly 50% of the time. Conversely, a different encoder might provide fewer total bits of information but concentrate that information to ensure an 80% success rate.

Comparison of two encoders for a discrete stimulus. Posterior 2 provides less mutual information (MI) but a higher percentage of correct responses (pct) than Posterior 1.

This principle challenges the "whitening" myth in neuroscience. Classic theory suggests neurons should decorrelate (whiten) inputs to maximize efficiency. However, BEC shows that if a loss function penalizes large errors (like MSE), maintaining some correlation can be advantageous, especially in noisy environments, as it provides a form of error protection.

Re-interpreting Biological Systems

The authors applied BEC to re-analyze Simon Laughlin’s classic 1981 study of the blowfly visual system. Laughlin originally argued that Large Monopolar Cells (LMCs) maximize information by matching their response curves to the cumulative distribution function (CDF) of natural stimuli.

However, Park and Pillow found that the blowfly data is actually better explained by a BEC model that minimizes average square-root error ($p=0.5$ power loss) rather than one that maximizes information. This suggests that the fly's visual system is not just a general-purpose information transmitter but is specifically tuned to minimize certain types of estimation errors relevant to its survival.

Conclusion and Future Directions

Bayesian Efficient Coding provides a powerful normative framework for understanding sensory system design. By moving beyond simple information maximization, it allows researchers to investigate the "biological objectives" that drive neural evolution.

Future work remains to address the metabolic costs of the Bayesian computations themselves and to incorporate temporal dynamics. Furthermore, identifying the specific loss functions optimized by different biological systems remains a central challenge for the field.

Summary updated

BibTeX
@misc{park2017bayesian,
  author = {Il Memming Park and Jonathan W. Pillow},
  title = {{Bayesian Efficient Coding}},
  year = {2017},
  doi = {10.1101/178418},
  howpublished = {bioRxiv},
}
Figure