Abstract: Neural responses in the cortex change over time both systematically, due to ongoing plasticity and learning, and seemingly randomly, due to various sources of noise and variability. Most previous work considered each of these processes, learning and variability, in isolation -- here we study neural networks exhibiting both and show that their interaction leads to the emergence of powerful computational properties. We trained neural networks on classical unsupervised learning tasks, in which the objective was to represent their inputs in an efficient, easily decodable form, with an additional cost for neural reliability which we derived from basic biophysical considerations. This cost on reliability introduced a tradeoff between energetically cheap but inaccurate representations and energetically costly but accurate ones. Despite the learning tasks being non-probabilistic, the networks solved this tradeoff by developing a probabilistic representation: neural variability represented samples from statistically appropriate posterior distributions that would result from performing probabilistic inference over their inputs. We provide an analytical understanding of this result by revealing a connection between the cost of reliability, and the objective for a state-of-the-art Bayesian inference strategy: variational autoencoders. We show that the same cost leads to the emergence of increasingly accurate probabilistic representations as networks become more complex, from single-layer feed-forward, through multi-layer feed-forward, to recurrent architectures. Our results provide insights into why neural responses in sensory areas show signatures of sampling-based probabilistic representations, and may inform future deep learning algorithms and their implementation in stochastic low-precision computing systems.
The Puzzle of Neural Noise
Cortical responses are notoriously "noisy." If a subject is shown the same visual stimulus twice, the neurons in the visual cortex will fire differently each time. Traditionally, researchers viewed this variability and the brain's ability to learn (plasticity) as separate phenomena. A central question in neuroscience is why this noise persists: if variability is detrimental to performance, why hasn't evolution or learning suppressed it entirely?
Existing "top-down" theories suggest the brain uses this noise to perform "sampling"—drawing samples from a probability distribution to handle uncertainty. However, these theories usually assume the brain intends to be Bayesian. This paper provides a "bottom-up" explanation, suggesting that Bayesian behavior emerges naturally because being reliable is energetically expensive.
A Biophysical Cost on Reliability
The authors trained various neural network architectures (feed-forward, multi-layer, and recurrent) on unsupervised learning tasks, such as reconstructing natural image patches or MNIST digits. The core of their approach is a modified objective function that balances reconstruction accuracy against metabolic constraints:
$$\text{Total Cost} = \text{Reconstruction Error} + \text{Sparseness Cost} + \text{Reliability Cost}$$
The Reliability Cost is the novel addition. Based on biophysical principles (e.g., the number of ion channels or vesicles needed to reduce variance), the authors derived that the cost of maintaining a specific level of reliability (variance $\sigma^2$) scales as $\text{Cost} \propto 1/\sigma^2$. By optimizing weights and noise levels simultaneously, the network must decide where to invest energy for precision and where to allow "cheap" noise.
Key Insights: The VAE Connection
A major theoretical contribution of this work is the analytical link between biological constraints and machine learning. The authors prove that the biophysical cost ($1/\sigma^2$) acts as an upper bound on the negative entropy term used in Variational Autoencoders (VAEs). This implies that a biological system attempting to save energy while learning is mathematically equivalent to a system performing variational inference.
Furthermore, the networks learned differential variability. They did not reduce noise uniformly; instead, they became highly reliable in directions critical for input reconstruction while remaining noisy in directions that were irrelevant to the task. This selective precision allows the "noise" to become a feature that represents the network's uncertainty about the input.
Validating the Sampling Hypothesis
To test if these networks truly performed probabilistic inference, the authors compared the emergent neural variability to the true mathematical posterior distributions of the underlying statistical models.
In tasks involving sparse coding (simulating V1) and hierarchical MNIST, the match was striking. As shown in the results, the correlation between the moments of the posterior distribution and the moments of the neural response distribution was near 1.0 for means and remained very high for variances. Even though the networks were never explicitly told to be probabilistic, the resulting variability perfectly matched the statistically appropriate posterior distributions.
Conclusion and Future Directions
This research suggests that the brain's pervasive noise is not a bug, but an optimized representation of probability born from metabolic efficiency. While the current models use some simplifications—such as linear activations in recurrent circuits for tractability—the results provide a robust framework for understanding how sampling-based inference emerges from learning.
Beyond neuroscience, these findings have implications for hardware design. By treating hardware-level noise as a resource rather than a nuisance, these principles could inform the development of stochastic, low-precision computing systems that mimic the brain's energy-efficient probabilistic processing.
Summary updated