Efficient coding explains neural response homeostasis and stimulus-specific adaptation

Edward Young, Yashar Ahmadian

Abstract In the absence of adaptation, the average firing rate of neurons would rise or drop when changes in the environment make their preferred stimuli more or less prevalent. However, by adjusting the responsiveness of neurons, adaptation can yield firing rate homeostasis and stabilise the average rates of neurons at fixed levels, despite changes in stimulus statistics. In sensory cortex, adaptation is typically also stimulus specific, in that neurons reduce their responsiveness to over-represented stimuli, but maintain or even increase their responsiveness to stimuli far from over-represented ones. Here, we present a normative explanation of firing rate homeostasis grounded in the efficient coding principle. Specifically, we show that this homeostasis can arise when neurons adapt their responsiveness to optimally mitigate the effect of neural noise on population coding fidelity, at minimal metabolic cost. Unlike previous efficient coding theories, we formulate the problem in a computation-agnostic manner, enabling our framework to apply far from the sensory periphery. We then apply this general framework to Distributed Distributional Codes, a specific computational theory of neural representations serving Bayesian inference. We demonstrate how homeostatic coding, combined with such Bayesian neural representations, provides a normative explanation for stimulus-specific adaptation, widely observed across the brain, and how this coding scheme can be accomplished by divisive normalisation with adaptive weights. Further, we develop a model within this combined framework, and, by fitting it to previously published experimental data, quantitatively account for measures of stimulus-specific and homeostatic adaption in the primary visual cortex.

Introduction

In dynamic environments, the prevalence of specific stimuli can change significantly. Without adaptation, a neuron's average firing rate would fluctuate wildly, potentially leading to metabolic inefficiency or information loss. Biological systems, however, exhibit two fundamental properties: homeostasis—maintaining stable average firing rates—and stimulus-specific adaptation (SSA)—reducing responsiveness to common stimuli while remaining sensitive to rare ones. This paper provides a unifying mathematical framework, grounded in the efficient coding principle, to explain these phenomena as optimal solutions to the trade-off between coding fidelity and metabolic cost.

A Computation-Agnostic Framework for Efficient Coding

Traditional efficient coding theories often rely on specific assumptions about tuning curve shapes, often limiting their application to the sensory periphery. In contrast, this study proposes a framework that is "computation-agnostic," making it applicable to higher-order brain regions where neurons represent complex, high-dimensional features.

The framework models the transformation from environmental stimuli to neural responses through representational curves scaled by adaptive gains.

The core of the theory is an objective function $\mathcal{L}$ that the neural population seeks to maximize: $$\mathcal{L} = \text{Coding Fidelity (Information)} - \text{Metabolic Cost}$$ By treating the neural response as a noisy representation of a stimulus $s$, the authors derive how neurons should adjust their gain $g_i$ to maintain efficiency as the stimulus distribution $P(s)$ changes. This approach allows for arbitrary, high-dimensional tuning curves $\Omega_i(s)$.

Optimal Gain and the Emergence of Homeostasis

The researchers demonstrate that firing rate homeostasis is not merely a biological constraint or a "safety valve" to prevent over-firing; it is the mathematically optimal state for maximizing information per spike.

Optimization of neural gain. (a) Tuning curves $h(s)$ scale with gain $g$. (b) The objective function $\mathcal{L}$ reaches a maximum at an optimal gain $g_{opt}$, balancing coding fidelity $I$ and metabolic cost $E$.

When the signal-to-noise ratio (SNR) is high, the "zeroth-order" solution to the optimization problem predicts a constant average firing rate across different environments. This provides a normative explanation for why neurons across the brain maintain stable activity levels despite varying inputs. The homeostatic solution remains near-optimal even when complex noise correlations or non-Poisson firing patterns are introduced.

Stimulus-Specific Adaptation and Bayesian Coding

Applying this framework to Distributed Distributional Codes (DDCs)—a theory where neural populations represent entire probability distributions—reveals a deep link to Bayesian inference. The optimal adaptation strategy leads to a "Bayes-Ratio" code, where a neuron's response effectively represents the ratio of the current posterior probability (what the brain thinks is happening now) to the environmental prior (what it expected based on history).

This naturally produces stimulus-specific adaptation: neurons suppress their response to stimuli that are highly expected (over-represented) in the current environment, while maintaining sensitivity to rare ones. This explains the "repulsion" effect seen in experimental data, where tuning curves shift away from frequent stimuli.

Biological Implementation: Divisive Normalization

A key contribution of this work is linking high-level efficiency principles to low-level synaptic mechanisms. The authors prove that the required optimal gain control can be physically implemented through divisive normalization. This is a canonical neural operation where a neuron's activity is divided by the pooled activity of its neighbors. This suggests that the adaptive weights in divisive normalization circuits are precisely tuned to maintain the system's coding efficiency, providing a bridge between functional "why" and mechanistic "how."

Validation and Conclusion

The model was validated by fitting it to experimental data from the primary visual cortex (V1) of cats exposed to biased stimulus distributions (Benucci et al., 2013). The model quantitatively accounted for both stimulus-specific and homeostatic adaptation observed in the recordings.

While the current analytical solutions assume a high SNR and focus on steady-state adaptation, the framework provides a powerful foundation for understanding neural plasticity. Future work may explore the kinetics of these transitions—how the brain moves between optimal states in real-time—and apply the framework to other coding schemes like Probabilistic Population Codes (PPCs). Ultimately, this research suggests that the complex adaptive behaviors of neurons are precisely tuned to maximize information processing under metabolic constraints.

Summary updated

BibTeX
@misc{young2025efficient,
  author = {Edward Young and Yashar Ahmadian},
  title = {{Efficient coding explains neural response homeostasis and stimulus-specific adaptation}},
  year = {2025},
  doi = {10.7554/elife.104746.1},
}
Figure